You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
395 lines
17 KiB
395 lines
17 KiB
From d07415461c5105075aca563fdc4595df8443a9e1 Mon Sep 17 00:00:00 2001
|
|
Message-ID: <d07415461c5105075aca563fdc4595df8443a9e1.1786713644.git.jdenemar@redhat.com>
|
|
From: Nathan Chen <nathanc@nvidia.com>
|
|
Date: Wed, 5 Aug 2026 15:13:01 -0700
|
|
Subject: [PATCH] tests: qemuxmlconfdata: provide HW-accel smmuv3 sample XML
|
|
and CLI args
|
|
|
|
Provide sample XML and CLI args for the HW-accel smmuv3 XML schema
|
|
for virt machine types.
|
|
|
|
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Signed-off-by: Nathan Chen <nathanc@nvidia.com>
|
|
(cherry picked from commit 6fcebd5bbbc7c31b732b8fe4c8019ced78fce0de)
|
|
|
|
Conflicts:
|
|
tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.args
|
|
tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.args
|
|
- missing upstream commit d071782577a83fcd5a8c6730838e853699439f1a
|
|
|
|
Resolves: https://redhat.atlassian.net/browse/RHEL-138901
|
|
---
|
|
...uv3-pci-bus-accel-auto.aarch64-latest.args | 38 +++++++++++
|
|
...muv3-pci-bus-accel-auto.aarch64-latest.xml | 63 +++++++++++++++++++
|
|
.../iommu-smmuv3-pci-bus-accel-auto.xml | 53 ++++++++++++++++
|
|
...u-smmuv3-pci-bus-accel.aarch64-latest.args | 38 +++++++++++
|
|
...mu-smmuv3-pci-bus-accel.aarch64-latest.xml | 63 +++++++++++++++++++
|
|
.../iommu-smmuv3-pci-bus-accel.xml | 53 ++++++++++++++++
|
|
tests/qemuxmlconftest.c | 2 +
|
|
7 files changed, 310 insertions(+)
|
|
create mode 100644 tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.args
|
|
create mode 100644 tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.xml
|
|
create mode 100644 tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.xml
|
|
create mode 100644 tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.args
|
|
create mode 100644 tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.xml
|
|
create mode 100644 tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.xml
|
|
|
|
diff --git a/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.args b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.args
|
|
new file mode 100644
|
|
index 0000000000..40423e505d
|
|
--- /dev/null
|
|
+++ b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.args
|
|
@@ -0,0 +1,38 @@
|
|
+LC_ALL=C \
|
|
+PATH=/bin \
|
|
+HOME=/var/lib/libvirt/qemu/domain--1-guest \
|
|
+USER=test \
|
|
+LOGNAME=test \
|
|
+XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-guest/.local/share \
|
|
+XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-guest/.cache \
|
|
+XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-guest/.config \
|
|
+/usr/bin/qemu-system-aarch64 \
|
|
+-name guest=guest,debug-threads=on \
|
|
+-S \
|
|
+-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-guest/master-key.aes"}' \
|
|
+-machine virt,usb=off,gic-version=2,dump-guest-core=off,memory-backend=mach-virt.ram,acpi=off \
|
|
+-accel tcg \
|
|
+-m size=1048576k \
|
|
+-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":1073741824}' \
|
|
+-overcommit mem-lock=off \
|
|
+-smp 1,sockets=1,cores=1,threads=1 \
|
|
+-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \
|
|
+-display none \
|
|
+-no-user-config \
|
|
+-nodefaults \
|
|
+-chardev socket,id=charmonitor,fd=@mon-fd@,server=on,wait=off \
|
|
+-mon chardev=charmonitor,id=monitor,mode=control \
|
|
+-rtc base=utc \
|
|
+-no-shutdown \
|
|
+-boot strict=on \
|
|
+-device '{"driver":"pxb-pcie","bus_nr":252,"id":"pci.1","bus":"pcie.0","addr":"0x1"}' \
|
|
+-device '{"driver":"pxb-pcie","bus_nr":248,"id":"pci.2","bus":"pcie.0","addr":"0x2"}' \
|
|
+-device '{"driver":"pcie-root-port","port":0,"chassis":21,"id":"pci.3","bus":"pci.1","addr":"0x0"}' \
|
|
+-device '{"driver":"pcie-root-port","port":168,"chassis":22,"id":"pci.4","bus":"pci.2","addr":"0x0"}' \
|
|
+-device '{"driver":"arm-smmuv3","primary-bus":"pci.1","id":"iommu0","accel":true}' \
|
|
+-device '{"driver":"arm-smmuv3","primary-bus":"pci.2","id":"iommu1","accel":true}' \
|
|
+-audiodev '{"id":"audio1","driver":"none"}' \
|
|
+-device '{"driver":"vfio-pci","host":"0000:06:00.0","id":"hostdev0","bus":"pci.3","addr":"0x0"}' \
|
|
+-device '{"driver":"vfio-pci","host":"0000:06:01.0","id":"hostdev1","bus":"pci.4","addr":"0x0"}' \
|
|
+-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
|
+-msg timestamp=on
|
|
diff --git a/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.xml b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.xml
|
|
new file mode 100644
|
|
index 0000000000..08fb17fb6f
|
|
--- /dev/null
|
|
+++ b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.aarch64-latest.xml
|
|
@@ -0,0 +1,63 @@
|
|
+<domain type='qemu'>
|
|
+ <name>guest</name>
|
|
+ <uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
|
+ <memory unit='KiB'>1048576</memory>
|
|
+ <currentMemory unit='KiB'>1048576</currentMemory>
|
|
+ <vcpu placement='static'>1</vcpu>
|
|
+ <os>
|
|
+ <type arch='aarch64' machine='virt'>hvm</type>
|
|
+ <boot dev='hd'/>
|
|
+ </os>
|
|
+ <features>
|
|
+ <gic version='2'/>
|
|
+ </features>
|
|
+ <clock offset='utc'/>
|
|
+ <on_poweroff>destroy</on_poweroff>
|
|
+ <on_reboot>restart</on_reboot>
|
|
+ <on_crash>destroy</on_crash>
|
|
+ <devices>
|
|
+ <emulator>/usr/bin/qemu-system-aarch64</emulator>
|
|
+ <controller type='usb' index='0' model='none'/>
|
|
+ <controller type='pci' index='0' model='pcie-root'/>
|
|
+ <controller type='pci' index='1' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='252'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='2' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='248'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='3' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='21' port='0x0'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='4' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='22' port='0xa8'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <audio id='1' type='none'/>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x01' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <memballoon model='none'/>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='1' accel='on'/>
|
|
+ </iommu>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='2' accel='on'/>
|
|
+ </iommu>
|
|
+ </devices>
|
|
+</domain>
|
|
diff --git a/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.xml b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.xml
|
|
new file mode 100644
|
|
index 0000000000..abbc22e291
|
|
--- /dev/null
|
|
+++ b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel-auto.xml
|
|
@@ -0,0 +1,53 @@
|
|
+<domain type='qemu'>
|
|
+ <name>guest</name>
|
|
+ <uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
|
+ <memory unit='KiB'>1048576</memory>
|
|
+ <vcpu placement='static'>1</vcpu>
|
|
+ <os>
|
|
+ <type arch='aarch64' machine='virt'>hvm</type>
|
|
+ </os>
|
|
+ <devices>
|
|
+ <emulator>/usr/bin/qemu-system-aarch64</emulator>
|
|
+ <controller type='usb' model='none'/>
|
|
+ <memballoon model='none'/>
|
|
+ <controller type='pci' index='0' model='pcie-root'/>
|
|
+ <controller type='pci' index='1' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='252'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='2' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='248'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='3' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='21' port='0x0'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='4' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='22' port='0xa8'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x01' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='1' accel='on'/>
|
|
+ </iommu>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='2' accel='on'/>
|
|
+ </iommu>
|
|
+ </devices>
|
|
+</domain>
|
|
diff --git a/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.args b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.args
|
|
new file mode 100644
|
|
index 0000000000..69ec53784e
|
|
--- /dev/null
|
|
+++ b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.args
|
|
@@ -0,0 +1,38 @@
|
|
+LC_ALL=C \
|
|
+PATH=/bin \
|
|
+HOME=/var/lib/libvirt/qemu/domain--1-guest \
|
|
+USER=test \
|
|
+LOGNAME=test \
|
|
+XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-guest/.local/share \
|
|
+XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-guest/.cache \
|
|
+XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-guest/.config \
|
|
+/usr/bin/qemu-system-aarch64 \
|
|
+-name guest=guest,debug-threads=on \
|
|
+-S \
|
|
+-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-guest/master-key.aes"}' \
|
|
+-machine virt,usb=off,gic-version=2,dump-guest-core=off,memory-backend=mach-virt.ram,acpi=off \
|
|
+-accel tcg \
|
|
+-m size=1048576k \
|
|
+-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":1073741824}' \
|
|
+-overcommit mem-lock=off \
|
|
+-smp 1,sockets=1,cores=1,threads=1 \
|
|
+-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \
|
|
+-display none \
|
|
+-no-user-config \
|
|
+-nodefaults \
|
|
+-chardev socket,id=charmonitor,fd=@mon-fd@,server=on,wait=off \
|
|
+-mon chardev=charmonitor,id=monitor,mode=control \
|
|
+-rtc base=utc \
|
|
+-no-shutdown \
|
|
+-boot strict=on \
|
|
+-device '{"driver":"pxb-pcie","bus_nr":252,"id":"pci.1","bus":"pcie.0","addr":"0x1"}' \
|
|
+-device '{"driver":"pxb-pcie","bus_nr":248,"id":"pci.2","bus":"pcie.0","addr":"0x2"}' \
|
|
+-device '{"driver":"pcie-root-port","port":0,"chassis":21,"id":"pci.3","bus":"pci.1","addr":"0x0"}' \
|
|
+-device '{"driver":"pcie-root-port","port":168,"chassis":22,"id":"pci.4","bus":"pci.2","addr":"0x0"}' \
|
|
+-device '{"driver":"arm-smmuv3","primary-bus":"pci.1","id":"iommu0","accel":true,"ats":"on","ril":"off","ssidsize":"20","oas":"44"}' \
|
|
+-device '{"driver":"arm-smmuv3","primary-bus":"pci.2","id":"iommu1","accel":true,"ats":"on","ril":"off","ssidsize":"20","oas":"44"}' \
|
|
+-audiodev '{"id":"audio1","driver":"none"}' \
|
|
+-device '{"driver":"vfio-pci","host":"0000:06:00.0","id":"hostdev0","bus":"pci.3","addr":"0x0"}' \
|
|
+-device '{"driver":"vfio-pci","host":"0000:06:01.0","id":"hostdev1","bus":"pci.4","addr":"0x0"}' \
|
|
+-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
|
+-msg timestamp=on
|
|
diff --git a/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.xml b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.xml
|
|
new file mode 100644
|
|
index 0000000000..221a4185e5
|
|
--- /dev/null
|
|
+++ b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.aarch64-latest.xml
|
|
@@ -0,0 +1,63 @@
|
|
+<domain type='qemu'>
|
|
+ <name>guest</name>
|
|
+ <uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
|
+ <memory unit='KiB'>1048576</memory>
|
|
+ <currentMemory unit='KiB'>1048576</currentMemory>
|
|
+ <vcpu placement='static'>1</vcpu>
|
|
+ <os>
|
|
+ <type arch='aarch64' machine='virt'>hvm</type>
|
|
+ <boot dev='hd'/>
|
|
+ </os>
|
|
+ <features>
|
|
+ <gic version='2'/>
|
|
+ </features>
|
|
+ <clock offset='utc'/>
|
|
+ <on_poweroff>destroy</on_poweroff>
|
|
+ <on_reboot>restart</on_reboot>
|
|
+ <on_crash>destroy</on_crash>
|
|
+ <devices>
|
|
+ <emulator>/usr/bin/qemu-system-aarch64</emulator>
|
|
+ <controller type='usb' index='0' model='none'/>
|
|
+ <controller type='pci' index='0' model='pcie-root'/>
|
|
+ <controller type='pci' index='1' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='252'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='2' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='248'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='3' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='21' port='0x0'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='4' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='22' port='0xa8'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <audio id='1' type='none'/>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x01' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <memballoon model='none'/>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='1' accel='on' ats='on' ril='off' ssidsize='20' oas='44'/>
|
|
+ </iommu>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='2' accel='on' ats='on' ril='off' ssidsize='20' oas='44'/>
|
|
+ </iommu>
|
|
+ </devices>
|
|
+</domain>
|
|
diff --git a/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.xml b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.xml
|
|
new file mode 100644
|
|
index 0000000000..8dbae00540
|
|
--- /dev/null
|
|
+++ b/tests/qemuxmlconfdata/iommu-smmuv3-pci-bus-accel.xml
|
|
@@ -0,0 +1,53 @@
|
|
+<domain type='qemu'>
|
|
+ <name>guest</name>
|
|
+ <uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
|
+ <memory unit='KiB'>1048576</memory>
|
|
+ <vcpu placement='static'>1</vcpu>
|
|
+ <os>
|
|
+ <type arch='aarch64' machine='virt'>hvm</type>
|
|
+ </os>
|
|
+ <devices>
|
|
+ <emulator>/usr/bin/qemu-system-aarch64</emulator>
|
|
+ <controller type='usb' model='none'/>
|
|
+ <memballoon model='none'/>
|
|
+ <controller type='pci' index='0' model='pcie-root'/>
|
|
+ <controller type='pci' index='1' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='252'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='2' model='pcie-expander-bus'>
|
|
+ <model name='pxb-pcie'/>
|
|
+ <target busNr='248'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='3' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='21' port='0x0'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <controller type='pci' index='4' model='pcie-root-port'>
|
|
+ <model name='pcie-root-port'/>
|
|
+ <target chassis='22' port='0xa8'/>
|
|
+ <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
|
|
+ </controller>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <hostdev mode='subsystem' type='pci' managed='no'>
|
|
+ <source>
|
|
+ <address domain='0x0000' bus='0x06' slot='0x01' function='0x0'/>
|
|
+ </source>
|
|
+ <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
|
|
+ </hostdev>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='1' accel='on' ats='on' ril='off' ssidsize='20' oas='44'/>
|
|
+ </iommu>
|
|
+ <iommu model='smmuv3'>
|
|
+ <driver pciBus='2' accel='on' ats='on' ril='off' ssidsize='20' oas='44'/>
|
|
+ </iommu>
|
|
+ </devices>
|
|
+</domain>
|
|
diff --git a/tests/qemuxmlconftest.c b/tests/qemuxmlconftest.c
|
|
index a1389775b9..99925e6241 100644
|
|
--- a/tests/qemuxmlconftest.c
|
|
+++ b/tests/qemuxmlconftest.c
|
|
@@ -2988,6 +2988,8 @@ mymain(void)
|
|
DO_TEST_CAPS_ARCH_LATEST("iommu-smmuv3", "aarch64");
|
|
DO_TEST_CAPS_ARCH_LATEST("iommu-smmuv3-pci-bus", "aarch64");
|
|
DO_TEST_CAPS_ARCH_LATEST("iommu-smmuv3-pci-bus-single", "aarch64");
|
|
+ DO_TEST_CAPS_ARCH_LATEST("iommu-smmuv3-pci-bus-accel", "aarch64");
|
|
+ DO_TEST_CAPS_ARCH_LATEST("iommu-smmuv3-pci-bus-accel-auto", "aarch64");
|
|
DO_TEST_CAPS_LATEST("virtio-iommu-x86_64");
|
|
DO_TEST_CAPS_ARCH_LATEST("virtio-iommu-aarch64", "aarch64");
|
|
DO_TEST_CAPS_LATEST_PARSE_ERROR("virtio-iommu-wrong-machine");
|
|
--
|
|
2.55.0
|
|
|