On 06.08.24 18:07, Juraj Marcin wrote:
Before, the virtio-mem device would unplug all the memory with any reset
of the device, including during the wake-up of the guest from a
suspended state. Due to this, the virtio-mem driver in the Linux kernel
disallowed suspend-to-ram requests in the guest when the
VIRTIO_MEM_F_PERSISTENT_SUSPEND feature is not exposed by QEMU.
This patch adds the code to skip the reset on wake-up and exposes
theVIRTIO_MEM_F_PERSISTENT_SUSPEND feature to the guest kernel driver
when suspending is possible in QEMU (currently only x86).
Signed-off-by: Juraj Marcin <jmar...@redhat.com>
---
All looks good and straight-forward to me. Will try finding time to play
with this this week!
Thanks!
Reviewed-by: David Hildenbrand <da...@redhat.com>
--
Cheers,
David / dhildenb