]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: virtio-pci: implement .shutdown()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Aug 2025 19:35:35 +0000 (21:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Sep 2025 12:23:35 +0000 (14:23 +0200)
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>
arch/um/drivers/virtio_pcidev.c

index e9e23cc3f3575e9042e7be587954190dc8d81ab4..f9b4b6f7582c3be48738894b56f8ce78db3830f0 100644 (file)
@@ -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)