Skip to content

Commit a083078

Browse files
committed
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 <[email protected]>
1 parent 35fae10 commit a083078

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/um/drivers/virtio_pcidev.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,11 @@ static void virtio_pcidev_virtio_remove(struct virtio_device *vdev)
598598
kfree(dev);
599599
}
600600

601+
static void virtio_pcidev_virtio_shutdown(struct virtio_device *vdev)
602+
{
603+
/* nothing to do, we just don't want queue shutdown */
604+
}
605+
601606
static struct virtio_device_id id_table[] = {
602607
{ CONFIG_UML_PCI_OVER_VIRTIO_DEVICE_ID, VIRTIO_DEV_ANY_ID },
603608
{ 0 },
@@ -609,6 +614,7 @@ static struct virtio_driver virtio_pcidev_virtio_driver = {
609614
.id_table = id_table,
610615
.probe = virtio_pcidev_virtio_probe,
611616
.remove = virtio_pcidev_virtio_remove,
617+
.shutdown = virtio_pcidev_virtio_shutdown,
612618
};
613619

614620
static int __init virtio_pcidev_init(void)

0 commit comments

Comments
 (0)