mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
tests/libqos: introduce virtio_start_device
This function is intended to group all the qvirtio_* functions that start the qvirtio devices. Applied in all tests using this combination of functions. Signed-off-by: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5b774fe550
commit
34c977489d
7 changed files with 14 additions and 19 deletions
|
@ -204,9 +204,7 @@ static void init_virtio_dev(QTestState *qts, TestServer *s, uint32_t features_ma
|
|||
g_assert_nonnull(s->dev);
|
||||
|
||||
qvirtio_pci_device_enable(s->dev);
|
||||
qvirtio_reset(&s->dev->vdev);
|
||||
qvirtio_set_acknowledge(&s->dev->vdev);
|
||||
qvirtio_set_driver(&s->dev->vdev);
|
||||
qvirtio_start_device(&s->dev->vdev);
|
||||
|
||||
s->alloc = pc_alloc_init(qts);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue