Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtio-mem: introduce VIRTIO_MEM_F_PERSISTENT_SUSPEND #207

Open
davidhildenbrand opened this issue Oct 9, 2024 · 1 comment
Open

virtio-mem: introduce VIRTIO_MEM_F_PERSISTENT_SUSPEND #207

davidhildenbrand opened this issue Oct 9, 2024 · 1 comment

Comments

@davidhildenbrand
Copy link
Contributor

virtio-mem in upstream QEMU and Linux support a new feature called VIRTIO_MEM_F_PERSISTENT_SUSPEND.

If provided by the device, the driver can safely allow the system to go into suspend mode (e.g., S5) without risking that the device will lose its state during the wakeup.

Quoting from the current proposal:

Before, the behavior while suspending to a deep sleep state and waking
up was not specified. For example, in x86 QEMU VM all devices receive a
reset request during wake-up. This would lead to unplugging of all the
plugged memory blocks. Due to this, suspending is disallowed in the
Linux Kernel, when plugged memory is present and
VIRTIO_MEM_F_PERSISTENT_SUSPEND feature flag is not advertised by the
virtio-mem device.

This new flag should signal to the guest driver, that the device can correctly suspend to a deep sleep state and then wake up without disrupting the plugged memory blocks.

Latest proposal: https://lkml.kernel.org/r/[email protected]

@mstsirkin
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants