mirror of https://gitee.com/openkylin/qemu.git
tests: virtio-9p: set DRIVER_OK before using the device
Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
65b70fc7de
commit
d8803b1ad0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue