[Qemu-devel] GSoC intro: Emanuele working on Qtest Driver Framework

2018-05-04 Thread Emanuele Giuseppe Esposito
Hello, my name is Emanuele and I am one of the students selected to participate at the Google Summer of Code with QEMU. I'll work on the current test driver framework and will try to improve it (i.e. automatically detect devices and run tests based on the targeted architecture). More info can

[Qemu-devel] [PATCH] vhost-user-test: added proper TestServer *dest initialization in test_migrate()

2018-06-26 Thread Emanuele Giuseppe Esposito
e I modified pci-pc.c and pci-pc.h, modifying QPCIBusPC by adding another field before QPCIBus bus. Re-running the tests showed vhost-user-test failing. Signed-off-by: Emanuele Giuseppe Esposito --- tests/vhost-user-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/vhost-u

[Qemu-devel] [PATCH v2] qpci_free_pc: sdhci-test and vhost-user-test could free() NULL pointers.

2018-07-02 Thread Emanuele Giuseppe Esposito
tly freed. Same applies to s->pci.bus, since it is set depending on the architecture. Problem came out once I modified pci-pc.c and pci-pc.h, modifying QPCIBusPC by adding another field before QPCIBus bus. Re-running the tests showed vhost-user-test failing. Signed-off-by: Emanuele Giuseppe Es

[Qemu-devel] [PATCH v2 21/34] test/qgraph: virtio-serial test node

2018-08-06 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4 +--- tests/virtio-serial-test.c | 27 +-- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 6742f97058..f258a7778e 100644

[Qemu-devel] [PATCH v2 14/34] test/qgraph: virtio-pci driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
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 --- tests/Makefile.include| 2 +- tests/libqos/virtio-pci.c

[Qemu-devel] [PATCH v2 31/34] test/qgraph: virtio-net test node

2018-08-06 Thread Emanuele Giuseppe Esposito
does not allocate any virtio-net structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +- tests/virtio-net-test.c | 159 2 files changed, 49 insertions(+), 113 deletions

[Qemu-devel] [PATCH v2 33/34] test/qgraph: virtio-scsi test node

2018-08-06 Thread Emanuele Giuseppe Esposito
that this test does not allocate any virtio-scsi structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +- tests/virtio-scsi-test.c | 153 +++ 2 files changed, 75 insertions(+), 81

[Qemu-devel] [PATCH v2 03/34] tests/qgraph: pci-pc driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add pci-bus-pc node, move QPCIBusPC struct declaration in its header (since it will be needed by other drivers) and introduce a setter method for drivers that do not need to allocate but have to initialize QPCIBusPC. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4

[Qemu-devel] [PATCH v2 07/34] tests/qgraph: arm/raspi2 machine node

2018-08-06 Thread Emanuele Giuseppe Esposito
Add arm/raspi2 machine to the graph. This machine contains a generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include| 1 + tests/libqos/raspi2-machine.c | 82

[Qemu-devel] [PATCH v2 12/34] test/qgraph: e1000e-test node

2018-08-06 Thread Emanuele Giuseppe Esposito
Giuseppe Esposito --- tests/Makefile.include | 3 +- tests/e1000e-test.c| 354 + 2 files changed, 78 insertions(+), 279 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 66d6270ace..50f1af34be 100644 --- a/tests

[Qemu-devel] [PATCH v2 24/34] test/qgraph: virtio-balloon driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
file mode 100644 index 00..e97a9038fc --- /dev/null +++ b/tests/libqos/virtio-balloon.c @@ -0,0 +1,111 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms

[Qemu-devel] [PATCH v2 09/34] tests/qgraph: pci-spapr driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add pci-bus-spapr node, that produces pci-bus. Move QPCIBusSPAPR struct declaration in its header (since it will be needed by other drivers) and introduce a setter method for drivers that do not need to allocate but have to initialize QPCIBusSPAPR. Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH v2 01/34] tests: qgraph API for the qtest driver framework

2018-08-06 Thread Emanuele Giuseppe Esposito
drivers/machines, discover the path and run tests. graph.h provides the public API to manage the graph nodes/edges graph_extra.h provides a more private API used successively by the gtest integration part qos-test.c provides the main executable Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH v2 16/34] test/qgraph: virtio-mmio driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add virtio-mmio node in qgraph framework. virtio-mmio produces virtio, the interface consumed by all virtio-*-device nodes. Being a memory-mapped device, it doesn't have to provide a constructor to qgraph, since it's always "contained" inside some other nodes. Signed-off-by: Emanuel

[Qemu-devel] [PATCH v2 25/34] test/qgraph: virtio-balloon test node

2018-08-06 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4 +--- tests/virtio-balloon-test.c | 22 +++--- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index a3d425918f..5b33ffbc57 100644

[Qemu-devel] [PATCH v2 27/34] test/qgraph: virtio-rng test node

2018-08-06 Thread Emanuele Giuseppe Esposito
does not allocate any virtio-rng structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/virtio-rng-test.c | 25 + 2 files changed, 10 insertions(+), 18 deletions(-) diff --git

[Qemu-devel] [PATCH v2 34/34] test/qgraph: temporarly commented vhost-user-test

2018-08-06 Thread Emanuele Giuseppe Esposito
vhost-user-test has not converted to qgraph yet, and since it uses virtio interface, it won't work, causing make check to fail. Commented out until it does not get converted to graph node. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 8 1 file changed, 4

[Qemu-devel] [PATCH v2 05/34] tests/qgraph: sdhci driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for sdhci-pci and generic-sdhci (memory mapped) drivers. Both drivers implement (produce) the same interface sdhci, that provides the readw - readq - writeq functions. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/sdhci.c | 163

[Qemu-devel] [PATCH v2 00/34] Qtest driver framework

2018-08-06 Thread Emanuele Giuseppe Esposito
ng example in qgraph.h - removed esplicit creation of interfaces Signed-off-by: Emanuele Giuseppe Esposito Emanuele Giuseppe Esposito (33): tests: qgraph API for the qtest driver framework tests/qgraph: rename qpci_init_pc functions tests/qgraph: pci-pc driver and interface nodes tests/qgraph: x

[Qemu-devel] [PATCH v2 02/34] tests/qgraph: rename qpci_init_pc functions

2018-08-06 Thread Emanuele Giuseppe Esposito
Rename qpci_init_pc in qpci_new_pc, since the function actually allocates a new QPCIBusPC and initialize it. Signed-off-by: Emanuele Giuseppe Esposito --- tests/e1000e-test.c | 2 +- tests/i440fx-test.c | 2 +- tests/ide-test.c | 2 +- tests/libqos/ahci.c | 2

[Qemu-devel] [PATCH v2 06/34] tests/qgraph: sdhci test node

2018-08-06 Thread Emanuele Giuseppe Esposito
Giuseppe Esposito --- tests/Makefile.include | 9 +- tests/sdhci-test.c | 222 - 2 files changed, 68 insertions(+), 163 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index be00fb71ec..fec6cf35bb 100644 --- a/tests

[Qemu-devel] [PATCH v2 20/34] test/qgraph: virtio-console test node

2018-08-06 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 5 +++-- tests/libqos/virtio.c | 1 + tests/virtio-console-test.c | 30 +++--- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/tests/Makefile.include b/tests

[Qemu-devel] [PATCH v2 10/34] tests/qgraph: ppc64/pseries machine node

2018-08-06 Thread Emanuele Giuseppe Esposito
Add pseries machine for the ppc64 QEMU binary. This machine contains a spapr-pci-host-bridge driver, that contains itself a pci-bus-spapr that produces the pci-bus interface. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/ppc64_pseries

[Qemu-devel] [PATCH v2 13/34] test/qgraph: virtio_start_device function

2018-08-06 Thread Emanuele Giuseppe Esposito
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 --- tests/libqos/virtio.c| 8 tests/libqos/virtio.h| 1 + tests/vhost-user-test.c

[Qemu-devel] [PATCH v2 23/34] test/qgraph: virtio-9p test node

2018-08-06 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-9p-pci and virtio-9p-device. Both nodes produce virtio-9p, but virtio-9p-pci receives a pci-bus and uses virtio-pci QOSGraphObject and functions, while virtio-9p-device receives a virtio and implements its own functions Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH v2 18/34] tests: virtio: separate ccw tests from libqos

2018-08-06 Thread Emanuele Giuseppe Esposito
, it simplifies maintenance and makes sure that all virtio devices are tested. Signed-off-by: Paolo Bonzini Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 5 +- tests/virtio-ccw-test.c | 121 2 files changed, 123 insertions(+), 3

[Qemu-devel] [PATCH v2 22/34] test/qgraph: virtio-9p driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
..88437d58af --- /dev/null +++ b/tests/libqos/virtio-9p.c @@ -0,0 +1,164 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License

[Qemu-devel] [PATCH v2 29/34] test/qgraph: virtio-blk test node

2018-08-06 Thread Emanuele Giuseppe Esposito
does not allocate any virtio-blk structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4 +- tests/virtio-blk-test.c | 459 2 files changed, 186 insertions(+), 277 deletions

[Qemu-devel] [PATCH v2 32/34] test/qgraph: virtio-scsi driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
/virtio-scsi.c new file mode 100644 index 00..e751ef639d --- /dev/null +++ b/tests/libqos/virtio-scsi.c @@ -0,0 +1,117 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify

[Qemu-devel] [PATCH v2 28/34] test/qgraph: virtio-blk driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-blk-pci and virtio-blk-device. Both nodes produce virtio-blk, but virtio-blk-pci receives a pci-bus and uses virtio-pci QOSGraphObject and functions, while virtio-blk-device receives a virtio and implements its own functions Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH v2 17/34] test/qgraph: arm/virt machine node

2018-08-06 Thread Emanuele Giuseppe Esposito
Add arm/virt machine to the graph. This machine contains virtio-mmio, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/virt-machine.c | 90 + 2

[Qemu-devel] [PATCH v2 08/34] tests/qgraph: rename qpci_init_spapr functions

2018-08-06 Thread Emanuele Giuseppe Esposito
Rename qpci_init_spapr in qpci_new_spapr, since the function actually allocates a new QPCIBusSPAPR and initialize it. Signed-off-by: Emanuele Giuseppe Esposito --- tests/libqos/libqos-spapr.c | 2 +- tests/libqos/pci-spapr.c| 2 +- tests/libqos/pci-spapr.h| 2 +- 3 files changed, 3

[Qemu-devel] [PATCH v2 04/34] tests/qgraph: x86_64/pc machine node

2018-08-06 Thread Emanuele Giuseppe Esposito
Add pc machine for the x86_64 QEMU binary. This machine contains an i440FX-pcihost driver, that contains itself a pci-bus-pc that produces the pci-bus interface. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 + tests/libqos/x86_64_pc-machine.c | 110

[Qemu-devel] [PATCH v2 15/34] tests/qgraph: rename qvirtio_mmio_init_device functions

2018-08-06 Thread Emanuele Giuseppe Esposito
Rename qvirtio_mmio_init_device in qvirtio_mmio_device_new, since the function actually allocates a new QVirtioMMIODevice and initialize it. Signed-off-by: Emanuele Giuseppe Esposito --- tests/libqos/virtio-mmio.c | 2 +- tests/libqos/virtio-mmio.h | 2 +- tests/virtio-blk-test.c| 2 +- 3

[Qemu-devel] [PATCH v2 11/34] test/qgraph: e1000e driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-e1000e. It consumes a pci-bus, and it's directly used by tests (e1000e is pci based). Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/e1000e.c | 262 + tests/libqos/e1000e.h | 53

[Qemu-devel] [PATCH v2 19/34] test/qgraph: virtio-serial driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
+ * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2 as published by the Free Software Foundation. + * + * This library is distributed in the hope

[Qemu-devel] [PATCH v2 26/34] test/qgraph: virtio-rng driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-rng-pci and virtio-rng-device. Both nodes produce virtio-rng, but virtio-rng-pci receives a pci-bus and uses virtio-pci QOSGraphObject and functions, while virtio-rng-device receives a virtio and implements its own functions Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH v2 30/34] test/qgraph: virtio-net driver and interface nodes

2018-08-06 Thread Emanuele Giuseppe Esposito
new file mode 100644 index 00..12eb6e0530 --- /dev/null +++ b/tests/libqos/virtio-net.c @@ -0,0 +1,177 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms

[Qemu-devel] [PATCH 05/33] tests/qgraph: sdhci driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for sdhci-pci and generic-sdhci (memory mapped) drivers. Both drivers implement (produce) the same interface sdhci, that provides the readw - readq - writeq functions. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/sdhci.c | 163

[Qemu-devel] [PATCH 06/33] tests/qgraph: sdhci test node

2018-08-13 Thread Emanuele Giuseppe Esposito
Giuseppe Esposito --- tests/Makefile.include | 9 +- tests/sdhci-test.c | 222 - 2 files changed, 68 insertions(+), 163 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 90a74854b8..c4c7c8d56a 100644 --- a/tests

[Qemu-devel] [PATCH 10/33] tests/qgraph: has_buggy_msi flag

2018-08-13 Thread Emanuele Giuseppe Esposito
The Qgraph framework makes any test using pci bus run the same function using pci-pci and pci-spapr bus. However, some tests are not ready to use the spapr bus, due to a MSI bug. Until it does not get fixed, this flag allows them to skip the test Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 13/33] tests/qgraph: virtio_start_device function

2018-08-13 Thread Emanuele Giuseppe Esposito
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 --- tests/libqos/virtio.c| 7 +++ tests/libqos/virtio.h| 1 + tests/vhost-user-test.c

[Qemu-devel] [PATCH 16/33] tests/qgraph: arm/virt machine node

2018-08-13 Thread Emanuele Giuseppe Esposito
Add arm/virt machine to the graph. This machine contains virtio-mmio, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/virt-machine.c | 90 + 2

[Qemu-devel] [PATCH 01/33] tests: qgraph API for the qtest driver framework

2018-08-13 Thread Emanuele Giuseppe Esposito
drivers/machines, discover the path and run tests. graph.h provides the public API to manage the graph nodes/edges graph_extra.h provides a more private API used successively by the gtest integration part qos-test.c provides the main executable Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 08/33] tests/qgraph: pci-spapr driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
Add pci-bus-spapr node, that produces pci-bus. Move QPCIBusSPAPR struct declaration in its header (since it will be needed by other drivers) and introduce a setter method for drivers that do not need to allocate but have to initialize QPCIBusSPAPR. Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 28/33] tests/qgraph: virtio-blk test node

2018-08-13 Thread Emanuele Giuseppe Esposito
does not allocate any virtio-blk structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4 +- tests/virtio-blk-test.c | 468 2 files changed, 190 insertions(+), 282 deletions

[Qemu-devel] [PATCH 12/33] tests/qgraph: e1000e-test node

2018-08-13 Thread Emanuele Giuseppe Esposito
Giuseppe Esposito --- tests/Makefile.include | 3 +- tests/e1000e-test.c| 354 + 2 files changed, 78 insertions(+), 279 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 9f0d64f4ae..e18796d8d8 100644 --- a/tests

[Qemu-devel] [PATCH 22/33] tests/qgraph: virtio-9p test node

2018-08-13 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-9p-pci and virtio-9p-device. Both nodes produce virtio-9p, but virtio-9p-pci receives a pci-bus and uses virtio-pci QOSGraphObject and functions, while virtio-9p-device receives a virtio and implements its own functions Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 32/33] tests/qgraph: virtio-scsi test node

2018-08-13 Thread Emanuele Giuseppe Esposito
that this test does not allocate any virtio-scsi structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +- tests/virtio-scsi-test.c | 153 +++ 2 files changed, 75 insertions(+), 81

[Qemu-devel] [PATCH 30/33] tests/qgraph: virtio-net test node

2018-08-13 Thread Emanuele Giuseppe Esposito
does not allocate any virtio-net structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +- tests/virtio-net-test.c | 161 2 files changed, 49 insertions(+), 115 deletions

[Qemu-devel] [PATCH 33/33] tests/qgraph: temporarly commented vhost-user-test

2018-08-13 Thread Emanuele Giuseppe Esposito
vhost-user-test has not converted to qgraph yet, and since it uses virtio interface, it won't work, causing make check to fail. Commented out until it does not get converted to graph node. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 8 1 file changed, 4

[Qemu-devel] [PATCH 00/33] Qtest driver framework

2018-08-13 Thread Emanuele Giuseppe Esposito
ct can be found at: https://wiki.qemu.org/Features/qtest_driver_framework v3: - Minor fixes regarding memory leaks and naming Signed-off-by: Emanuele Giuseppe Esposito Emanuele Giuseppe Esposito (32): tests: qgraph API for the qtest driver framework tests/qgraph: rename qpci_init_pc and qpci_

[Qemu-devel] [PATCH 04/33] tests/qgraph: x86_64/pc machine node

2018-08-13 Thread Emanuele Giuseppe Esposito
Add pc machine for the x86_64 QEMU binary. This machine contains an i440FX-pcihost driver, that contains itself a pci-bus-pc that produces the pci-bus interface. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 + tests/libqos/x86_64_pc-machine.c | 110

[Qemu-devel] [PATCH 02/33] tests/qgraph: rename qpci_init_pc and qpci_init_spapr functions

2018-08-13 Thread Emanuele Giuseppe Esposito
Rename qpci_init_pc in qpci_pc_new and qpci_init_spapr in qpci_spapr_new, since theese function actually allocate a new pci struct and initialize it. Changed QOSOps field name from qpci_init to qpci_new. Signed-off-by: Emanuele Giuseppe Esposito --- tests/e1000e-test.c | 2 +- tests

[Qemu-devel] [PATCH 07/33] tests/qgraph: arm/raspi2 machine node

2018-08-13 Thread Emanuele Giuseppe Esposito
Add arm/raspi2 machine to the graph. This machine contains a generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include| 1 + tests/libqos/raspi2-machine.c | 82

[Qemu-devel] [PATCH 14/33] tests/qgraph: virtio-pci driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
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 --- tests/Makefile.include| 2 +- tests/libqos/virtio-pci.c

[Qemu-devel] [PATCH 09/33] tests/qgraph: ppc64/pseries machine node

2018-08-13 Thread Emanuele Giuseppe Esposito
Add pseries machine for the ppc64 QEMU binary. This machine contains a spapr-pci-host-bridge driver, that contains itself a pci-bus-spapr that produces the pci-bus interface. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/ppc64_pseries

[Qemu-devel] [PATCH 20/33] tests/qgraph: virtio-serial test node

2018-08-13 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4 +--- tests/virtio-serial-test.c | 27 +-- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index a160059758..eafceefc12 100644

[Qemu-devel] [PATCH 29/33] tests/qgraph: virtio-net driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
new file mode 100644 index 00..332d121486 --- /dev/null +++ b/tests/libqos/virtio-net.c @@ -0,0 +1,179 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms

[Qemu-devel] [PATCH 31/33] tests/qgraph: virtio-scsi driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
/virtio-scsi.c new file mode 100644 index 00..8f13c0bfaf --- /dev/null +++ b/tests/libqos/virtio-scsi.c @@ -0,0 +1,117 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify

[Qemu-devel] [PATCH 21/33] tests/qgraph: virtio-9p driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
..df60db8f39 --- /dev/null +++ b/tests/libqos/virtio-9p.c @@ -0,0 +1,165 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License

[Qemu-devel] [PATCH 27/33] tests/qgraph: virtio-blk driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-blk-pci and virtio-blk-device. Both nodes produce virtio-blk, but virtio-blk-pci receives a pci-bus and uses virtio-pci QOSGraphObject and functions, while virtio-blk-device receives a virtio and implements its own functions Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 23/33] tests/qgraph: virtio-balloon driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
file mode 100644 index 00..98d2548ffe --- /dev/null +++ b/tests/libqos/virtio-balloon.c @@ -0,0 +1,111 @@ +/* + * libqos driver framework + * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms

[Qemu-devel] [PATCH 03/33] tests/qgraph: pci-pc driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
Add pci-bus-pc node, move QPCIBusPC struct declaration in its header (since it will be needed by other drivers) and introduce a setter method for drivers that do not need to allocate but have to initialize QPCIBusPC. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 2

[Qemu-devel] [PATCH 18/33] tests/qgraph: virtio-serial driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
+ * + * Copyright (c) 2018 Emanuele Giuseppe Esposito + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2 as published by the Free Software Foundation. + * + * This library is distributed in the hope

[Qemu-devel] [PATCH 19/33] tests/qgraph: virtio-console test node

2018-08-13 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 5 +++-- tests/libqos/virtio.c | 1 + tests/virtio-console-test.c | 30 +++--- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/tests/Makefile.include b/tests

[Qemu-devel] [PATCH 24/33] tests/qgraph: virtio-balloon test node

2018-08-13 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 4 +--- tests/virtio-balloon-test.c | 22 +++--- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 362d9ec4b2..b23597972d 100644

[Qemu-devel] [PATCH 11/33] tests/qgraph: e1000e driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-e1000e. It consumes a pci-bus, and it's directly used by tests (e1000e is pci based). Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/e1000e.c | 262 + tests/libqos/e1000e.h | 53

[Qemu-devel] [PATCH 25/33] tests/qgraph: virtio-rng driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for virtio-rng-pci and virtio-rng-device. Both nodes produce virtio-rng, but virtio-rng-pci receives a pci-bus and uses virtio-pci QOSGraphObject and functions, while virtio-rng-device receives a virtio and implements its own functions Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 15/33] tests/qgraph: virtio-mmio driver and interface nodes

2018-08-13 Thread Emanuele Giuseppe Esposito
lso rename qvirtio_mmio_init_device in qvirtio_mmio_device_new, since the function actually allocates a new QVirtioMMIODevice and initialize it. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Laurent Vivier --- tests/libqos/virtio-mmio.c | 66 ++ tests/libqos/virtio-m

[Qemu-devel] [PATCH 17/33] tests: virtio: separate ccw tests from libqos

2018-08-13 Thread Emanuele Giuseppe Esposito
From: Paolo Bonzini Because qtest does not support s390 channel I/O, s390 only performs smoke tests on those few devices that do not have any functional tests. Therefore, every time we add functional tests for a virtio device, the choice is between removing those tests from the s390 suite (so

[Qemu-devel] [PATCH 26/33] tests/qgraph: virtio-rng test node

2018-08-13 Thread Emanuele Giuseppe Esposito
does not allocate any virtio-rng structure, it's all done by the qtest walking graph mechanism Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/virtio-rng-test.c | 25 + 2 files changed, 10 insertions(+), 18 deletions(-) diff --git

[Qemu-devel] [PATCH 04/16] test/qgraph: aarch64/xlnx-zcu102 machine node

2018-08-20 Thread Emanuele Giuseppe Esposito
Add xlnx-zcu102 machine to the graph. This machine contains generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/xlnx-zcu102-machine.c | 83

[Qemu-devel] [PATCH 03/16] test/qgraph: arm/xlinx-zynq-a9 machine node

2018-08-20 Thread Emanuele Giuseppe Esposito
Add xlinx-zynq-a9 machine to the graph. This machine contains generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include| 1 + tests/libqos/xilinx-zynq-a9-machine.c | 84

[Qemu-devel] [PATCH 07/16] test/qgraph: ipoctal232 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/ipoctal232-test in qgraph test node, ipoctal232-test. Since it's a nop test, node creation and initialization is made in the same file. This test creates a tpci200 node that produces an interface ipack consumed by the ipoctal232 device. Signed-off-by: Emanuele Giuseppe Esposito

[Qemu-devel] [PATCH 16/16] test/qgraph: e1000 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/e1000-test in qgraph test nodes, e1000-test. Since it's a nop test, node creation and initialization is made in the same file. In addition, all nodes share the same constructor and destructor. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests

[Qemu-devel] [PATCH 01/16] test/qgraph: arm/smdkc210 machine node

2018-08-20 Thread Emanuele Giuseppe Esposito
Add arm/smdkc210 machine machine to the graph. This machine contains generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 9 ++-- tests/libqos/smdkc210-machine.c | 82

[Qemu-devel] [PATCH 00/16] qtest: converted sdhci-test and most nop test to qgraph framework

2018-08-20 Thread Emanuele Giuseppe Esposito
-by: Emanuele Giuseppe Esposito Emanuele Giuseppe Esposito (16): test/qgraph: arm/smdkc210 machine node test/qgraph: arm/sabrelite machine node test/qgraph: arm/xlinx-zynq-a9 machine node test/qgraph: aarch64/xlnx-zcu102 machine node test/qgraph: ac97 test node test/qgraph: tpci200 test

[Qemu-devel] [PATCH 09/16] test/qgraph: nvme test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/nvme-test in qgraph test node, nvme-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/nvme-test.c | 43 -- 2

[Qemu-devel] [PATCH 06/16] test/qgraph: tpci200 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/tpci200-test in qgraph test node, tpci200-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 2 +- tests/tpci200-test.c | 60 +++--- 2

[Qemu-devel] [PATCH 02/16] test/qgraph: arm/sabrelite machine node

2018-08-20 Thread Emanuele Giuseppe Esposito
Add arm/sabrelite machine to the graph. This machine contains generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/sabrelite-machine.c | 82

[Qemu-devel] [PATCH 10/16] test/qgraph: pcnet test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/pcnet-test in qgraph test node, pcnet-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/pcnet-test.c | 39 ++- 2 files

[Qemu-devel] [PATCH 13/16] test/qgraph: vmxnet3 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/vmxnet3-test in qgraph test node, vmxnet3-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/vmxnet3-test.c | 39 ++- 2

[Qemu-devel] [PATCH 05/16] test/qgraph: ac97 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/ac97-test in qgraph test node, ac97-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/ac97-test.c | 39 ++- 2 files

[Qemu-devel] [PATCH 12/16] test/qgraph: usb-hcd-ohci test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/usb-hcd-ohci-test in qgraph test node, usb-hcd-ohci-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include| 4 +--- tests/usb-hcd-ohci-test.c | 46

[Qemu-devel] [PATCH 15/16] test/qgraph: eepro100 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/eepro100-test in qgraph test nodes, eepro100-test. Since it's a nop test, node creation and initialization is made in the same file. In addition, all nodes share the same constructor and destructor. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3

[Qemu-devel] [PATCH 08/16] test/qgraph: ne2k_pci test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/ne2000-test in qgraph test node, ne2000-test. Since it's a nop test, node creation and initialization is made in the same file. The actual device consumed by the test is ne2k_pci. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/ne2000-test.c

[Qemu-devel] [PATCH 14/16] test/qgraph: es1370 test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/es1370-test in qgraph test node, es1370-test. Since it's a nop test, node creation and initialization is made in the same file. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/es1370-test.c| 39 ++- 2

[Qemu-devel] [PATCH 11/16] test/qgraph: spapr-phb test node

2018-08-20 Thread Emanuele Giuseppe Esposito
Convert tests/spapr-phb-test in qgraph test node, spapr-phb-test. This test adds another spapr-pci-host-bridge device in the ppc64/pseries machine Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 +-- tests/spapr-phb-test.c | 28 +++- 2 files

[Qemu-devel] [PATCH] pci-pc: add NULL check for qpci_free_pc

2018-07-23 Thread Emanuele Giuseppe Esposito
ele Giuseppe Esposito --- tests/libqos/pci-pc.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/libqos/pci-pc.c b/tests/libqos/pci-pc.c index a7803308b7..bb062bee5a 100644 --- a/tests/libqos/pci-pc.c +++ b/tests/libqos/pci-pc.c @@ -152,6 +152,10 @@ QPCIBus *qpci_init_pc(QTestState *

[Qemu-devel] [PATCH 2/7] tests/qgraph: pci-pc driver and interface nodes

2018-07-09 Thread Emanuele Giuseppe Esposito
Add pci-bus-pc node and pci-bus interface, moved QPCIBusPC struct declaration in its header (since it will be needed by other drivers) and introduced a setter method for drivers that do not need to allocate but have to initialize QPCIBusPC. Signed-off-by: Emanuele Giuseppe Esposito --- tests

[Qemu-devel] [PATCH 3/7] tests/qgraph: sdhci driver and interface nodes

2018-07-09 Thread Emanuele Giuseppe Esposito
Add qgraph nodes for sdhci-pci and generic-sdhci (memory mapped) drivers. Both drivers implement (produce) the same interface sdhci, that provides the readw - readq - writeq functions. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 1 + tests/libqos/sdhci.c | 142

[Qemu-devel] [PATCH 6/7] tests/qgraph: gtest integration

2018-07-09 Thread Emanuele Giuseppe Esposito
Add main executable that takes care of starting the framework, create the nodes, set the available drivers/machines, discover the path and run tests. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 3 + tests/qos-test.c | 310

[Qemu-devel] [PATCH 5/7] tests/qgraph: x86_64/pc machine node

2018-07-09 Thread Emanuele Giuseppe Esposito
Add pc machine for the x86_64 QEMU binary. This machine contains an i440FX-pcihost driver, that contains itself a pci-bus-pc that produces the pci-bus interface. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include | 2 +- tests/libqos/x86_64_pc-machine.c | 93

[Qemu-devel] [PATCH 1/7] tests: qgraph API for the qtest driver framework

2018-07-09 Thread Emanuele Giuseppe Esposito
successively by the gtest integration part Signed-off-by: Emanuele Giuseppe Esposito --- configure | 2 +- include/qemu/module.h | 2 + tests/Makefile.include | 5 + tests/libqos/qgraph.c | 676 tests/libqos/qgraph.h

[Qemu-devel] [PATCH 4/7] tests/qgraph: arm/raspi2 machine node

2018-07-09 Thread Emanuele Giuseppe Esposito
Add arm/raspi2 machine to the graph. This machine contains a generic-sdhci, so its constructor must take care of setting it properly when called. Signed-off-by: Emanuele Giuseppe Esposito --- tests/Makefile.include| 3 +- tests/libqos/raspi2-machine.c | 68

[Qemu-devel] [PATCH 0/7] Qtest driver framework

2018-07-09 Thread Emanuele Giuseppe Esposito
ct can be found at: https://wiki.qemu.org/Features/qtest_driver_framework Emanuele Giuseppe Esposito (7): tests: qgraph API for the qtest driver framework tests/qgraph: pci-pc driver and interface nodes tests/qgraph: sdhci driver and interface nodes tests/qgraph: arm/raspi2 machine node t

[Qemu-devel] [PATCH 7/7] tests/qgraph: sdhci test node

2018-07-09 Thread Emanuele Giuseppe Esposito
Giuseppe Esposito --- tests/Makefile.include | 8 +- tests/sdhci-test.c | 222 - 2 files changed, 67 insertions(+), 163 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index e2db3e9d09..790abe8c6e 100644 --- a/tests

Re: [PATCH v1 1/5] contrib/gitdm: add more entries individuals and academics

2019-10-14 Thread Emanuele Giuseppe Esposito
Hello Alex, I confirm my email address, I worked on qemu during the 2018 Google Summer of Code. Thanks, Emanuele On 14/10/2019 15:59, Alex Bennée wrote: Again this is guess work based on public websites. Please confirm. Signed-off-by: Alex Bennée Cc: Emanuele Giuseppe Esposito Cc

Re: [PATCH v1 1/5] contrib/gitdm: add more entries individuals and academics

2019-10-14 Thread Emanuele Giuseppe Esposito
On 14/10/2019 16:55, Alex Bennée wrote: Emanuele Giuseppe Esposito writes: Hello Alex, I confirm my email address, I worked on qemu during the 2018 Google Summer of Code. Is that an Acked-by: then? Yes, sorry. Acked-by: Emanuele Giuseppe Esposito Thanks, Emanuele On 14/10/2019 15

  1   2   3   4   5   6   7   8   9   10   >