Re: [PATCH v1 2/2] s390x/pv: Add support for asynchronous teardown for reboot

2023-01-03 Thread Thomas Huth
On 03/01/2023 12.48, Claudio Imbrenda wrote: On Tue, 3 Jan 2023 12:27:32 +0100 Thomas Huth wrote: On 22/12/2022 16.04, Claudio Imbrenda wrote: This patch adds support for the asynchronous teardown for reboot for protected VMs. [...] +bool s390_pv_vm_try_disable_async(void) +{ +char tnam

Re: [PATCH v1 2/2] s390x/pv: Add support for asynchronous teardown for reboot

2023-01-03 Thread Claudio Imbrenda
On Tue, 3 Jan 2023 12:27:32 +0100 Thomas Huth wrote: > On 22/12/2022 16.04, Claudio Imbrenda wrote: > > This patch adds support for the asynchronous teardown for reboot for > > protected VMs. > [...] > > +bool s390_pv_vm_try_disable_async(void) > > +{ > > +char tname[VCPU_THREAD_NAME_SIZE];

Re: [PATCH v1 2/2] s390x/pv: Add support for asynchronous teardown for reboot

2023-01-03 Thread Thomas Huth
On 22/12/2022 16.04, Claudio Imbrenda wrote: This patch adds support for the asynchronous teardown for reboot for protected VMs. [...] +bool s390_pv_vm_try_disable_async(void) +{ +char tname[VCPU_THREAD_NAME_SIZE]; +QemuThread *t; + +if (!kvm_check_extension(kvm_state, KVM_CAP_S390_

[PATCH v1 2/2] s390x/pv: Add support for asynchronous teardown for reboot

2022-12-22 Thread Claudio Imbrenda
This patch adds support for the asynchronous teardown for reboot for protected VMs. When attempting to tear down a protected VM, try to use the new asynchronous interface first. If that fails, fall back to the classic synchronous one. The asynchronous interface involves invoking the new KVM_PV_AS