[PATCH v2 0/1] virtio: Add suspend support
From: David Stevens
Date: Mon Apr 22 2024 - 03:01:48 EST
This series implements support for the virtio device suspend feature
that is under discussion. Unfortunately, the virtio mailing list is
currently being migrated, so recent discussion of the proposal is not
archived anywhere. There current version of the proposal is a
combination of [1] and [2].
[1] https://lore.kernel.org/all/20230906081637.32185-3-lingshan.zhu@xxxxxxxxx/
[2] https://lists.oasis-open.org/archives/virtio-comment/202402/msg00088.html
v1 -> v2:
- Check for device removal while waiting for suspend bit.
- Don't try to suspend uninitialized deivces.
- Use msleep instead of mdelay.
David Stevens (1):
virtio: Add support for the virtio suspend feature
drivers/virtio/virtio.c | 60 ++++++++++++++++++++++++++++++
drivers/virtio/virtio_pci_common.c | 34 ++++++++---------
drivers/virtio/virtio_pci_modern.c | 19 ++++++++++
include/linux/virtio.h | 8 ++++
include/uapi/linux/virtio_config.h | 10 ++++-
5 files changed, 112 insertions(+), 19 deletions(-)
base-commit: e8f897f4afef0031fe618a8e94127a0934896aba
--
2.44.0.769.g3c40516874-goog