Skip to content

s390x/pv: Fix spurious warning with asynchronous teardown

Claudio Imbrenda qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 2 repliesIn review
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

* Use 2GiB as threshold, the same as the kernel [thomas]
* Pass the machine state to s390_pv_vm_try_disable_async instead of using qdev_get_machine() [thomas]
* Update and improve patch description and comments

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1s390x/pv: Fix spurious warning with asynchronous teardownhw/s390x/pv.c hw/s390x/s390-virtio-ccw.c include/hw/s390x/pv.h+10 -42 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchThomas Huth
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] s390x/pv: Fix spurious warning with asynchronous teardown

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.

v1->v2:
* Use 2GiB as threshold, the same as the kernel [thomas]
* Pass the machine state to s390_pv_vm_try_disable_async instead of using qdev_get_machine() [thomas]
* Update and improve patch description and comments

Claudio Imbrenda (1):
s390x/pv: Fix spurious warning with asynchronous teardown

 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(-)
Signature · 1 line
2.40.1