aboutsummaryrefslogtreecommitdiff
path: root/tests/virtio-9p-test.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-01-08 11:18:23 +0100
committerGreg Kurz <groug@kaod.org>2018-01-08 11:18:23 +0100
commitd8803b1ad06734d36878645328011dc86108af9f (patch)
treeb7317ab7721bdd1ab24fa5de1330b9a0a662c0d1 /tests/virtio-9p-test.c
parent65b70fc7dee3ec24afd606946ee7e093105c4875 (diff)
downloadqemu-d8803b1ad06734d36878645328011dc86108af9f.zip
qemu-d8803b1ad06734d36878645328011dc86108af9f.tar.gz
qemu-d8803b1ad06734d36878645328011dc86108af9f.tar.bz2
tests: virtio-9p: set DRIVER_OK before using the device
Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'tests/virtio-9p-test.c')
-rw-r--r--tests/virtio-9p-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/virtio-9p-test.c b/tests/virtio-9p-test.c
index ebd24b2..00f00f7 100644
--- a/tests/virtio-9p-test.c
+++ b/tests/virtio-9p-test.c
@@ -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;
}