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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
..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
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
/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
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
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
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
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
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
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
+ *
+ * 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_
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
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
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
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
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
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
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
/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
..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
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
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
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
+ *
+ * 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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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 *
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
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
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
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
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
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
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
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
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
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 - 100 of 1535 matches
Mail list logo