um: virt-pci: set device ready in probe()
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 10 Jun 2022 15:12:03 +0000 (17:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 11 Jun 2022 00:38:06 +0000 (20:38 -0400)
commiteacea844594ff338db06437806707313210d4865
tree32e94e8fa481ec5e1589ba510ee8f40f2d76687f
parent00d1f546470d89e072dd3cda12b5c794341e7268
um: virt-pci: set device ready in probe()

Call virtio_device_ready() to make this driver work after commit
b4ec69d7e09 ("virtio: harden vring IRQ"), since the driver uses the
virtqueues in the probe function.  (The virtio core sets the device
ready when probe returns.)

Fixes: 8b4ec69d7e09 ("virtio: harden vring IRQ")
Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Message-Id: <20220610151203.3492541-1-vincent.whitchurch@axis.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
arch/um/drivers/virt-pci.c