From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com ([205.139.110.61]:35919 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727782AbgAHPgJ (ORCPT ); Wed, 8 Jan 2020 10:36:09 -0500 Date: Wed, 8 Jan 2020 16:36:00 +0100 From: Cornelia Huck Subject: Re: [PATCH v3] KVM: s390: Add new reset vcpu API Message-ID: <20200108163600.54981741.cohuck@redhat.com> In-Reply-To: References: <20191205120956.50930-1-frankja@linux.ibm.com> <3ddb7aa6-96d4-246f-a8ba-fdf2408a4ff0@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-s390-owner@vger.kernel.org List-ID: To: Thomas Huth Cc: Christian Borntraeger , Janosch Frank , kvm@vger.kernel.org, linux-s390@vger.kernel.org On Wed, 8 Jan 2020 15:44:57 +0100 Thomas Huth wrote: > On 08/01/2020 15.38, Christian Borntraeger wrote: > > > > > > On 08.01.20 15:35, Janosch Frank wrote: > >> On 1/8/20 3:28 PM, Christian Borntraeger wrote: > >>> > >>> > >>> On 05.12.19 13:09, Janosch Frank wrote: > >>> [...] > >>>> +4.123 KVM_S390_CLEAR_RESET > >>>> + > >>>> +Capability: KVM_CAP_S390_VCPU_RESETS > >>>> +Architectures: s390 > >>>> +Type: vcpu ioctl > >>>> +Parameters: none > >>>> +Returns: 0 > >>>> + > >>>> +This ioctl resets VCPU registers and control structures that QEMU > >>>> +can't access via the kvm_run structure. The clear reset is a superset > >>>> +of the initial reset and additionally clears general, access, floating > >>>> +and vector registers. > >>> > >>> As Thomas outlined, make it more obvious that userspace does the remaining > >>> parts. I do not think that we want the kernel to do the things (unless it > >>> helps you in some way for the ultravisor guests) > >> > >> Ok, will do > > > > I changed my mind (see my other mail) but I would like Thomas, Conny or David > > to ack/nack. > > I don't mind too much as long as it is properly documented, but I also > slightly prefer to be consistent here, i.e. let the kernel clear the > rest here, too, just like we do it already with the initial reset. I definitely agree with the 'properly documented' part :) It's probably enough to just state that the kernel resets the stuff, no need to go into details (and we also don't need to update this for later versions.) Q: Are we sure that we will always be able to reset everything from the kernel?