It will be used for the xtsup property of amd-iommu device.
Signed-off-by: Han Han <hhan(a)redhat.com>
---
src/qemu/qemu_capabilities.c | 2 ++
src/qemu/qemu_capabilities.h | 1 +
tests/qemucapabilitiesdata/caps_9.0.0_x86_64.xml | 1 +
tests/qemucapabilitiesdata/caps_9.1.0_x86_64.xml | 1 +
4 files changed, 5 insertions(+)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 750f01116c..a57b7eae2a 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -720,6 +720,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
"amd-iommu", /* QEMU_CAPS_DEVICE_AMD_IOMMU */
"amd-iommu.intremap", /* QEMU_CAPS_AMD_IOMMU_INTREMAP */
"amd-iommu.device-iotlb", /* QEMU_CAPS_AMD_IOMMU_DEVICE_IOTLB */
+ "amd-iommu.xtsup", /* QEMU_CAPS_AMD_IOMMU_XTSUP */
);
@@ -1551,6 +1552,7 @@ static struct virQEMUCapsDevicePropsFlags
virQEMUCapsDevicePropsVirtioIOMMU[] =
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsAmdIOMMU[] = {
{ "intremap", QEMU_CAPS_AMD_IOMMU_INTREMAP, NULL },
{ "device-iotlb", QEMU_CAPS_AMD_IOMMU_DEVICE_IOTLB, NULL },
+ { "xtsup", QEMU_CAPS_AMD_IOMMU_XTSUP, NULL },
};
/* see documentation for virQEMUQAPISchemaPathGet for the query format */
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
index 62b34bdb7c..c8bbe5d6f9 100644
--- a/src/qemu/qemu_capabilities.h
+++ b/src/qemu/qemu_capabilities.h
@@ -699,6 +699,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check
*/
QEMU_CAPS_DEVICE_AMD_IOMMU, /* -device amd-iommu */
QEMU_CAPS_AMD_IOMMU_INTREMAP, /* amd-iommu.intremap */
QEMU_CAPS_AMD_IOMMU_DEVICE_IOTLB, /* amd-iommu.device-iotlb */
+ QEMU_CAPS_AMD_IOMMU_XTSUP, /* amd-iommu.xtsup */
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;
diff --git a/tests/qemucapabilitiesdata/caps_9.0.0_x86_64.xml
b/tests/qemucapabilitiesdata/caps_9.0.0_x86_64.xml
index 5cbcc5f210..039b8adbc6 100644
--- a/tests/qemucapabilitiesdata/caps_9.0.0_x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_9.0.0_x86_64.xml
@@ -212,6 +212,7 @@
<flag name='amd-iommu'/>
<flag name='amd-iommu.intremap'/>
<flag name='amd-iommu.device-iotlb'/>
+ <flag name='amd-iommu.xtsup'/>
<version>9000000</version>
<microcodeVersion>43100245</microcodeVersion>
<package>v9.0.0</package>
diff --git a/tests/qemucapabilitiesdata/caps_9.1.0_x86_64.xml
b/tests/qemucapabilitiesdata/caps_9.1.0_x86_64.xml
index bda7a6d28d..cfb1e46b4b 100644
--- a/tests/qemucapabilitiesdata/caps_9.1.0_x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_9.1.0_x86_64.xml
@@ -210,6 +210,7 @@
<flag name='amd-iommu'/>
<flag name='amd-iommu.intremap'/>
<flag name='amd-iommu.device-iotlb'/>
+ <flag name='amd-iommu.xtsup'/>
<version>9001000</version>
<microcodeVersion>43100246</microcodeVersion>
<package>v9.1.0</package>
--
2.46.2