diff options
author | Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com> | 2018-07-18 16:02:41 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-07 17:28:26 +0100 |
commit | 1ce66ecec0f26ea6a3b450c66bde6fe171471f1c (patch) | |
tree | c368bf4cf1b2fde100eef1433d5d4db1705b3e5e /tests/virtio-blk-test.c | |
parent | b026393c34779578106d3cc889271b1757b8d287 (diff) |
tests/libqos: virtio-pci driver and interface nodes
Add QOSGraphObject to QVirtioPCIDevice structure, with a basic
constructor. virtio-pci is not present in qgraph, since it
will be used as starting point by its subclasses (virtio-*-pci)
Signed-off-by: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/virtio-blk-test.c')
-rw-r--r-- | tests/virtio-blk-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c index b449970d01..8f8ef19eb6 100644 --- a/tests/virtio-blk-test.c +++ b/tests/virtio-blk-test.c @@ -412,6 +412,7 @@ static void pci_basic(void) qvirtqueue_cleanup(dev->vdev.bus, &vqpci->vq, &qs->alloc); qvirtio_pci_device_disable(dev); qvirtio_pci_device_free(dev); + g_free(dev); qtest_shutdown(qs); } @@ -505,6 +506,7 @@ static void pci_indirect(void) qvirtqueue_cleanup(dev->vdev.bus, &vqpci->vq, &qs->alloc); qvirtio_pci_device_disable(dev); qvirtio_pci_device_free(dev); + g_free(dev); qtest_shutdown(qs); } @@ -534,6 +536,7 @@ static void pci_config(void) qvirtio_pci_device_disable(dev); qvirtio_pci_device_free(dev); + g_free(dev); qtest_shutdown(qs); } @@ -642,6 +645,7 @@ static void pci_msix(void) qpci_msix_disable(dev->pdev); qvirtio_pci_device_disable(dev); qvirtio_pci_device_free(dev); + g_free(dev); qtest_shutdown(qs); } @@ -765,6 +769,7 @@ static void pci_idx(void) qpci_msix_disable(dev->pdev); qvirtio_pci_device_disable(dev); qvirtio_pci_device_free(dev); + g_free(dev); qtest_shutdown(qs); } @@ -785,6 +790,7 @@ static void pci_hotplug(void) g_assert(dev); qvirtio_pci_device_disable(dev); qvirtio_pci_device_free(dev); + g_free(dev); /* unplug secondary disk */ if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { |