Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933913AbeAOKWq (ORCPT + 1 other); Mon, 15 Jan 2018 05:22:46 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60758 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933676AbeAOKV4 (ORCPT ); Mon, 15 Jan 2018 05:21:56 -0500 Subject: Re: [RFC PATCH 0/3] vfio: ccw: basic channel path event handling To: Cornelia Huck , Dong Jia Shi , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, qemu-s390x@nongnu.org, borntraeger@de.ibm.com, pasic@linux.vnet.ibm.com References: <20180111030421.31418-1-bjsdjshi@linux.vnet.ibm.com> <20180111115422.201987ee.cohuck@redhat.com> <20180115085741.GB12499@bjsdjshi@linux.vnet.ibm.com> From: Pierre Morel Date: Mon, 15 Jan 2018 11:21:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180115085741.GB12499@bjsdjshi@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18011510-0016-0000-0000-00000517CF99 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18011510-0017-0000-0000-000028543B5F Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-15_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801150150 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 15/01/2018 09:57, Dong Jia Shi wrote: > * Cornelia Huck [2018-01-11 11:54:22 +0100]: > >> On Thu, 11 Jan 2018 04:04:18 +0100 >> Dong Jia Shi wrote: >> >>> Hi Folks, >>> >>> Background >>> ========== >>> >>> Some days ago, we had a discussion on the topic of channel path virtualization. >>> Ref: >>> Subject: [PATCH 0/3] Channel Path realted CRW generation >>> Message-Id: <20170727015418.85407-1-bjsdjshi@linux.vnet.ibm.com> >>> URL: https://lists.nongnu.org/archive/html/qemu-devel/2017-07/msg08414.html >>> >>> Indeed that thread is not short and discussed many aspects in a >>> non-concentrated manner. The parts those are most valuable to me are: >>> 1. a re-modelling for channel path is surely the best offer, but is not >>> possible to have in the near future. >>> 2. to enhance the path related functionalities, using PNO and PNOM might >>> be something we can do for now. This may be something that I could improve >>> without model related arguments. >>> >>> So here I have this series targeting to add basic channel path event handling >>> for vfio-ccw -- no touch of the channel path modelling in both the kernel and >>> the QEMU side, but find a way to sync path status change to guest lazily using >>> SCSW_FLAGS_MASK_PNO and pmcw->pnom. In short, I want to enhance path related >>> stuff (to be more specific: sync up path status to the guest) on a best effort >>> basis, which means in a way that won't get us invloed to do channel path >>> re-modelling. >> The guest should also get the updated PIM/PAM/POM, shouldn't it? >> > Yes. The following values will be updated for the guest: > PMCW: > - PIM/PAM/POM > - PNOM > - CHPIDs > SCSW > - PNOM bit > > See vfio_ccw_update_schib in patch #4 of the QEMU series. > >>> What benifit can we get from this? The administrator of a virtual machine can >>> get uptodate (in some extent) status of the current using channel paths, so >>> he/she can monitor paths status and get path problem noticed timely (see the >>> example below). >>> >>> I think we can start a new round discussion based on this series. So reviewers >>> can give their comments based on some code, and then we can decide if this is >>> we want or not. >>> >>> As flagged with RFC, the intention of this series is to show what I have for >>> now, and what could the code look like in general. Thus I can get some early >>> feedbacks. I would expect to see opinions on: >>> - is the target (mentioned above) of this series welcomed or not. >> It certainly makes sense to have a way to get an updated schib. >> > :) I think so too, if the guest's administrator wants to be able to do something. But I would like to see something about path virtualization. Having more accurate information on hardware without virtualization is a big handicap for migration and hotplug. Regards, Pierre -- Pierre Morel Linux/KVM/QEMU in Böblingen - Germany