Skip to contentSkip to conversation

tests: virtio-9p: set DRIVER_OK before using the device

PATCH New Greg Kurz 1 participant 1 message Dec 16, 2017

lore
Share & tools
lore

Greg Kurz

author
#0 lore raw

PATCH 1/1 tests: virtio-9p: set DRIVER_OK before using the device

---
 tests/virtio-9p-test.c |    3 +++
 1 file changed, 3 insertions(+)
tests/virtio-9p-test.c +3 -0
index ebd24b20f657..00f00f7246e9 100644
@@ -75,6 +75,9 @@ static QVirtIO9P *qvirtio_9p_pci_start(void)
     qvirtio_set_driver(v9p->dev);
 
     v9p->vq = qvirtqueue_setup(v9p->dev, v9p->qs->alloc, 0);
+
+    qvirtio_set_driver_ok(v9p->dev);
+
     return v9p;
 }