On 10/05/2023 12.55, Claudio Imbrenda wrote:
Kernel commit 292a7d6fca33 ("KVM: s390: pv: fix asynchronous teardown
for small VMs") causes the KVM_PV_ASYNC_CLEANUP_PREPARE ioctl to fail
if the VM is not larger than 2GiB. QEMU would attempt it and fail,
print an error message, and then proceed with a normal teardown.

Avoid attempting to use asynchronous teardown altogether when the VM is
not larger than 2 GiB. This will avoid triggering the error message and
also avoid pointless overhead; normal teardown is fast enough for small
VMs.

Reported-by: Marc Hartmayer <[email protected]>
Fixes: c3a073c610 ("s390x/pv: Add support for asynchronous teardown for reboot")
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Claudio Imbrenda <[email protected]>
---
  hw/s390x/pv.c              | 10 ++++++++--
  hw/s390x/s390-virtio-ccw.c |  2 +-
  include/hw/s390x/pv.h      |  2 +-
  3 files changed, 10 insertions(+), 4 deletions(-)

Reviewed-by: Thomas Huth <[email protected]>


Reply via email to