Messages in this thread | | | Subject | Re: [PATCH v10 15/19] KVM: s390: pv: asynchronous destroy for reboot | From | Nico Boehr <> | Date | Mon, 30 May 2022 11:46:26 +0200 |
| |
On Thu, 2022-04-14 at 10:03 +0200, Claudio Imbrenda wrote: [...] > diff --git a/arch/s390/kvm/pv.c b/arch/s390/kvm/pv.c > index b20f2cbd43d9..36bc107bbd7d 100644 > --- a/arch/s390/kvm/pv.c > +++ b/arch/s390/kvm/pv.c [...] > +/** > + * kvm_s390_pv_deinit_vm_async - Perform an asynchronous teardown of > a > + * protected VM. > + * @kvm the VM previously associated with the protected VM > + * @rc return value for the RC field of the UVCB > + * @rrc return value for the RRC field of the UVCB > + * > + * Tear down the protected VM that had previously been set aside > using > + * kvm_s390_pv_deinit_vm_async_prepare. > + * > + * Context: kvm->lock needs to be held
...and will be released...
> + * > + * Return: 0 in case of success, -EINVAL if no protected VM had been > + * prepared for asynchronous teardowm, -EIO in case of other errors. > + */ > +int kvm_s390_pv_deinit_vm_async(struct kvm *kvm, u16 *rc, u16 *rrc)
Do you also want to set rc and rrc as in kvm_s390_pv_deinit_vm_async_prepare()?
| |