[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 15/71] tests/libqos: introduce virtio_start_devi
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH 15/71] tests/libqos: introduce virtio_start_device |
Date: |
Fri, 7 Dec 2018 10:16:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 2018-12-03 16:32, Paolo Bonzini wrote:
> From: Emanuele Giuseppe Esposito <address@hidden>
>
> 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 <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> tests/libqos/virtio.c | 7 +++++++
> tests/libqos/virtio.h | 1 +
> tests/vhost-user-test.c | 4 +---
> tests/virtio-9p-test.c | 4 +---
> tests/virtio-blk-test.c | 10 +++-------
> tests/virtio-net-test.c | 4 +---
> tests/virtio-scsi-test.c | 4 +---
> 7 files changed, 15 insertions(+), 19 deletions(-)
[...]
> diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c
> index 04c6087..f97c158 100644
> --- a/tests/virtio-blk-test.c
> +++ b/tests/virtio-blk-test.c
> @@ -116,10 +116,7 @@ static QVirtioPCIDevice *virtio_blk_pci_init(QPCIBus
> *bus, int slot)
> g_assert_cmphex(dev->pdev->devfn, ==, ((slot << 3) | PCI_FN));
>
> qvirtio_pci_device_enable(dev);
> - qvirtio_reset(&dev->vdev);
> - qvirtio_set_acknowledge(&dev->vdev);
> - qvirtio_set_driver(&dev->vdev);
> -
> + qvirtio_start_device(&dev->vdev);
> return dev;
> }
>
> @@ -333,6 +330,7 @@ static void pci_indirect(void)
> qvirtio_set_features(&dev->vdev, features);
>
> vqpci = (QVirtQueuePCI *)qvirtqueue_setup(&dev->vdev, qs->alloc, 0);
> +
> qvirtio_set_driver_ok(&dev->vdev);
Unnecessary white-space change. Apart from that nit:
Reviewed-by: Thomas Huth <address@hidden>
- Re: [Qemu-devel] [PATCH 11/71] vhost-user-test: reduce usage of global_qtest, (continued)
- [Qemu-devel] [PATCH 12/71] vhost-user-test: create a main loop per TestServer, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 14/71] vhost-user-test: create a temporary directory per TestServer, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 17/71] tests: remove rule for nonexisting qdev-monitor-test, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 16/71] tests/libqos: rename qpci_init_pc and qpci_init_spapr functions, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 15/71] tests/libqos: introduce virtio_start_device, Paolo Bonzini, 2018/12/03
- Re: [Qemu-devel] [PATCH 15/71] tests/libqos: introduce virtio_start_device,
Thomas Huth <=
- [Qemu-devel] [PATCH 13/71] vhost-user-test: small changes to init_hugepagefs, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 18/71] tests/libqos: embed allocators instead of malloc-ing them, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 22/71] tests/libqos: sdhci driver and interface nodes, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 21/71] tests/libqos: x86_64/pc machine node, Paolo Bonzini, 2018/12/03
- [Qemu-devel] [PATCH 23/71] tests/libqos: arm/raspi2 machine node, Paolo Bonzini, 2018/12/03