From 9de7fded51482f79b7b09e2fafbbf5cf98089959 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Tue, 16 Jan 2024 17:08:49 +0100 Subject: [PATCH] tests: Add devices to pseries-phb-simple MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to make sure that not only the controllers themselves are added correctly, but also that devices attached to them get assigned the expected bus value. In order to do that add some devices, one per controller. Signed-off-by: Andrea Bolognani Reviewed-by: Peter Krempa Reviewed-by: Ján Tomko --- .../pseries-phb-simple.ppc64-latest.args | 5 ++++- tests/qemuxml2argvdata/pseries-phb-simple.xml | 11 ++++++++++- .../pseries-phb-simple.ppc64-latest.xml | 14 ++++++++++---- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/tests/qemuxml2argvdata/pseries-phb-simple.ppc64-latest.args b/tests/qemuxml2argvdata/pseries-phb-simple.ppc64-latest.args index c2c28bd198..b6c0ecae8e 100644 --- a/tests/qemuxml2argvdata/pseries-phb-simple.ppc64-latest.args +++ b/tests/qemuxml2argvdata/pseries-phb-simple.ppc64-latest.args @@ -27,7 +27,10 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ -no-shutdown \ -boot strict=on \ -device '{"driver":"spapr-pci-host-bridge","index":1,"id":"pci.1"}' \ --device '{"driver":"spapr-pci-host-bridge","index":2,"id":"pci.2"}' \ +-netdev user,id=hostnet0 \ +-device '{"driver":"virtio-net-pci","netdev":"hostnet0","id":"net0","mac":"52:54:00:a2:44:92","bus":"pci.0","addr":"0x1"}' \ +-netdev user,id=hostnet1 \ +-device '{"driver":"virtio-net-pci","netdev":"hostnet1","id":"net1","mac":"52:54:00:a2:44:93","bus":"pci.1.0","addr":"0x1"}' \ -audiodev '{"id":"audio1","driver":"none"}' \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/pseries-phb-simple.xml b/tests/qemuxml2argvdata/pseries-phb-simple.xml index b1c6ff3006..ae9e78b95b 100644 --- a/tests/qemuxml2argvdata/pseries-phb-simple.xml +++ b/tests/qemuxml2argvdata/pseries-phb-simple.xml @@ -10,7 +10,16 @@ /usr/bin/qemu-system-ppc64 - + + + +
+ + + + +
+ diff --git a/tests/qemuxml2xmloutdata/pseries-phb-simple.ppc64-latest.xml b/tests/qemuxml2xmloutdata/pseries-phb-simple.ppc64-latest.xml index 80231e3dd7..936db5df2b 100644 --- a/tests/qemuxml2xmloutdata/pseries-phb-simple.ppc64-latest.xml +++ b/tests/qemuxml2xmloutdata/pseries-phb-simple.ppc64-latest.xml @@ -25,11 +25,17 @@ - - - - + + + +
+ + + + +
+