diff options
author | Johannes Berg <johannes.berg@intel.com> | 2025-08-27 21:35:35 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-09-10 14:23:35 +0200 |
commit | a0830785e89da3019a815b51b2073d00bf06e8c1 (patch) | |
tree | c6fe3671aeca08b9ea634b9a780adddc676f4e49 | |
parent | 35fae10aaf080c2de06a80463e1129e588600db8 (diff) |
um: virtio-pci: implement .shutdown()
We don't want queues stopped since the shutdown can still
be doing things with PCI devices, so implement .shutdown()
to avoid the generic virtio shutdown.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | arch/um/drivers/virtio_pcidev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/drivers/virtio_pcidev.c b/arch/um/drivers/virtio_pcidev.c index e9e23cc3f357..f9b4b6f7582c 100644 --- a/arch/um/drivers/virtio_pcidev.c +++ b/arch/um/drivers/virtio_pcidev.c @@ -598,6 +598,11 @@ static void virtio_pcidev_virtio_remove(struct virtio_device *vdev) kfree(dev); } +static void virtio_pcidev_virtio_shutdown(struct virtio_device *vdev) +{ + /* nothing to do, we just don't want queue shutdown */ +} + static struct virtio_device_id id_table[] = { { CONFIG_UML_PCI_OVER_VIRTIO_DEVICE_ID, VIRTIO_DEV_ANY_ID }, { 0 }, @@ -609,6 +614,7 @@ static struct virtio_driver virtio_pcidev_virtio_driver = { .id_table = id_table, .probe = virtio_pcidev_virtio_probe, .remove = virtio_pcidev_virtio_remove, + .shutdown = virtio_pcidev_virtio_shutdown, }; static int __init virtio_pcidev_init(void) |