|
|
6d3351 |
From be9562bdb0bef5b3e8db7dd22104631f13188f3a Mon Sep 17 00:00:00 2001
|
|
|
6d3351 |
Message-Id: <be9562bdb0bef5b3e8db7dd22104631f13188f3a@dist-git>
|
|
|
6d3351 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
6d3351 |
Date: Tue, 16 May 2017 10:44:53 +0200
|
|
|
6d3351 |
Subject: [PATCH] qemu: format kernel_irqchip on the command line
|
|
|
6d3351 |
MIME-Version: 1.0
|
|
|
6d3351 |
Content-Type: text/plain; charset=UTF-8
|
|
|
6d3351 |
Content-Transfer-Encoding: 8bit
|
|
|
6d3351 |
|
|
|
6d3351 |
Add kernel_irqchip=split/on to the QEMU command line
|
|
|
6d3351 |
and a capability that looks for it in query-command-line-options
|
|
|
6d3351 |
output. For the 'split' option, use a version check
|
|
|
6d3351 |
since it cannot be reasonably probed.
|
|
|
6d3351 |
|
|
|
6d3351 |
https://bugzilla.redhat.com/show_bug.cgi?id=1427005
|
|
|
6d3351 |
(cherry picked from commit 6b5c6314b2f7a3b54c94a591e6b0dcd13ef1c6ce)
|
|
|
6d3351 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
6d3351 |
|
|
|
6d3351 |
Conflicts:
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
|
|
|
6d3351 |
- downstream did not update the qemu version to 2.9.0
|
|
|
6d3351 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
6d3351 |
---
|
|
|
6d3351 |
src/qemu/qemu_capabilities.c | 8 +++++++
|
|
|
6d3351 |
src/qemu/qemu_capabilities.h | 4 ++++
|
|
|
6d3351 |
src/qemu/qemu_command.c | 25 ++++++++++++++++++++++
|
|
|
6d3351 |
src/qemu/qemu_domain.c | 19 ++++++++++++++++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml | 1 +
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml | 1 +
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml | 1 +
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml | 1 +
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml | 1 +
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml | 1 +
|
|
|
6d3351 |
.../caps_2.6.0-gicv2.aarch64.xml | 2 ++
|
|
|
6d3351 |
.../caps_2.6.0-gicv3.aarch64.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml | 2 ++
|
|
|
6d3351 |
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml | 2 ++
|
|
|
6d3351 |
.../qemuxml2argv-intel-iommu-ioapic.args | 19 ++++++++++++++++
|
|
|
6d3351 |
tests/qemuxml2argvtest.c | 5 +++++
|
|
|
6d3351 |
21 files changed, 104 insertions(+)
|
|
|
6d3351 |
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-ioapic.args
|
|
|
6d3351 |
|
|
|
6d3351 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
6d3351 |
index 49fb52e03..f27fe0a24 100644
|
|
|
6d3351 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
6d3351 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
6d3351 |
@@ -366,6 +366,9 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|
|
6d3351 |
"query-named-block-nodes",
|
|
|
6d3351 |
"cpu-cache",
|
|
|
6d3351 |
"qemu-xhci",
|
|
|
6d3351 |
+
|
|
|
6d3351 |
+ "kernel-irqchip", /* 255 */
|
|
|
6d3351 |
+ "kernel-irqchip.split",
|
|
|
6d3351 |
);
|
|
|
6d3351 |
|
|
|
6d3351 |
|
|
|
6d3351 |
@@ -3128,6 +3131,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
|
|
|
6d3351 |
{ "drive", "throttling.bps-total-max-length", QEMU_CAPS_DRIVE_IOTUNE_MAX_LENGTH },
|
|
|
6d3351 |
{ "drive", "throttling.group", QEMU_CAPS_DRIVE_IOTUNE_GROUP },
|
|
|
6d3351 |
{ "spice", "rendernode", QEMU_CAPS_SPICE_RENDERNODE },
|
|
|
6d3351 |
+ { "machine", "kernel_irqchip", QEMU_CAPS_MACHINE_KERNEL_IRQCHIP },
|
|
|
6d3351 |
};
|
|
|
6d3351 |
|
|
|
6d3351 |
static int
|
|
|
6d3351 |
@@ -4743,6 +4747,10 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps,
|
|
|
6d3351 |
if (qemuCaps->version >= 2004050)
|
|
|
6d3351 |
virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACH_VIRT_GIC_VERSION);
|
|
|
6d3351 |
|
|
|
6d3351 |
+ /* no way to query if -machine kernel_irqchip supports split */
|
|
|
6d3351 |
+ if (qemuCaps->version >= 2006000)
|
|
|
6d3351 |
+ virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT);
|
|
|
6d3351 |
+
|
|
|
6d3351 |
if (virQEMUCapsProbeQMPCommands(qemuCaps, mon) < 0)
|
|
|
6d3351 |
goto cleanup;
|
|
|
6d3351 |
|
|
|
6d3351 |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
6d3351 |
index 1cd3ec37d..a6cdf2c3d 100644
|
|
|
6d3351 |
--- a/src/qemu/qemu_capabilities.h
|
|
|
6d3351 |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
6d3351 |
@@ -404,6 +404,10 @@ typedef enum {
|
|
|
6d3351 |
QEMU_CAPS_CPU_CACHE, /* -cpu supports host-cache-info and l3-cache properties */
|
|
|
6d3351 |
QEMU_CAPS_DEVICE_QEMU_XHCI, /* -device qemu-xhci */
|
|
|
6d3351 |
|
|
|
6d3351 |
+ /* 255 */
|
|
|
6d3351 |
+ QEMU_CAPS_MACHINE_KERNEL_IRQCHIP, /* -machine kernel_irqchip */
|
|
|
6d3351 |
+ QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT, /* -machine kernel_irqchip=split */
|
|
|
6d3351 |
+
|
|
|
6d3351 |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
6d3351 |
} virQEMUCapsFlags;
|
|
|
6d3351 |
|
|
|
6d3351 |
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
|
|
|
6d3351 |
index b27b9f8ad..7151b1843 100644
|
|
|
6d3351 |
--- a/src/qemu/qemu_command.c
|
|
|
6d3351 |
+++ b/src/qemu/qemu_command.c
|
|
|
6d3351 |
@@ -7429,6 +7429,31 @@ qemuBuildMachineCommandLine(virCommandPtr cmd,
|
|
|
6d3351 |
}
|
|
|
6d3351 |
}
|
|
|
6d3351 |
|
|
|
6d3351 |
+ if (def->features[VIR_DOMAIN_FEATURE_IOAPIC] == VIR_TRISTATE_SWITCH_ON) {
|
|
|
6d3351 |
+ if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_KERNEL_IRQCHIP)) {
|
|
|
6d3351 |
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
|
|
6d3351 |
+ _("I/O APIC tuning is not supported by this "
|
|
|
6d3351 |
+ "QEMU binary"));
|
|
|
6d3351 |
+ goto cleanup;
|
|
|
6d3351 |
+ }
|
|
|
6d3351 |
+ switch (def->ioapic) {
|
|
|
6d3351 |
+ case VIR_DOMAIN_IOAPIC_QEMU:
|
|
|
6d3351 |
+ if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT)) {
|
|
|
6d3351 |
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
|
|
6d3351 |
+ _("split I/O APIC is not supported by this "
|
|
|
6d3351 |
+ "QEMU binary"));
|
|
|
6d3351 |
+ goto cleanup;
|
|
|
6d3351 |
+ }
|
|
|
6d3351 |
+ virBufferAddLit(&buf, ",kernel_irqchip=split");
|
|
|
6d3351 |
+ break;
|
|
|
6d3351 |
+ case VIR_DOMAIN_IOAPIC_KVM:
|
|
|
6d3351 |
+ virBufferAddLit(&buf, ",kernel_irqchip=on");
|
|
|
6d3351 |
+ break;
|
|
|
6d3351 |
+ case VIR_DOMAIN_IOAPIC_LAST:
|
|
|
6d3351 |
+ break;
|
|
|
6d3351 |
+ }
|
|
|
6d3351 |
+ }
|
|
|
6d3351 |
+
|
|
|
6d3351 |
virCommandAddArgBuffer(cmd, &buf;;
|
|
|
6d3351 |
}
|
|
|
6d3351 |
|
|
|
6d3351 |
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
|
|
|
6d3351 |
index 04d1b39db..a8a68aedd 100644
|
|
|
6d3351 |
--- a/src/qemu/qemu_domain.c
|
|
|
6d3351 |
+++ b/src/qemu/qemu_domain.c
|
|
|
6d3351 |
@@ -2776,6 +2776,22 @@ qemuDomainDefCPUPostParse(virDomainDefPtr def)
|
|
|
6d3351 |
|
|
|
6d3351 |
|
|
|
6d3351 |
static int
|
|
|
6d3351 |
+qemuDomainDefVerifyFeatures(const virDomainDef *def)
|
|
|
6d3351 |
+{
|
|
|
6d3351 |
+ if (def->features[VIR_DOMAIN_FEATURE_IOAPIC] == VIR_TRISTATE_SWITCH_ON &&
|
|
|
6d3351 |
+ !ARCH_IS_X86(def->os.arch)) {
|
|
|
6d3351 |
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
|
|
6d3351 |
+ _("I/O APIC tuning is not supported "
|
|
|
6d3351 |
+ "for '%s' architecture"),
|
|
|
6d3351 |
+ virArchToString(def->os.arch));
|
|
|
6d3351 |
+ return -1;
|
|
|
6d3351 |
+ }
|
|
|
6d3351 |
+
|
|
|
6d3351 |
+ return 0;
|
|
|
6d3351 |
+}
|
|
|
6d3351 |
+
|
|
|
6d3351 |
+
|
|
|
6d3351 |
+static int
|
|
|
6d3351 |
qemuDomainDefPostParse(virDomainDefPtr def,
|
|
|
6d3351 |
virCapsPtr caps,
|
|
|
6d3351 |
unsigned int parseFlags,
|
|
|
6d3351 |
@@ -2830,6 +2846,9 @@ qemuDomainDefPostParse(virDomainDefPtr def,
|
|
|
6d3351 |
|
|
|
6d3351 |
qemuDomainDefEnableDefaultFeatures(def, qemuCaps);
|
|
|
6d3351 |
|
|
|
6d3351 |
+ if (qemuDomainDefVerifyFeatures(def) < 0)
|
|
|
6d3351 |
+ goto cleanup;
|
|
|
6d3351 |
+
|
|
|
6d3351 |
if (qemuDomainRecheckInternalPaths(def, cfg, parseFlags) < 0)
|
|
|
6d3351 |
goto cleanup;
|
|
|
6d3351 |
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml b/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
|
|
|
6d3351 |
index a68c13bbd..14f34b277 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
|
|
|
6d3351 |
@@ -140,6 +140,7 @@
|
|
|
6d3351 |
<flag name='display'/>
|
|
|
6d3351 |
<flag name='vhost-scsi'/>
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
<version>1005003</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
|
|
|
6d3351 |
index 365b3a650..8fc23d6aa 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
|
|
|
6d3351 |
@@ -145,6 +145,7 @@
|
|
|
6d3351 |
<flag name='display'/>
|
|
|
6d3351 |
<flag name='vhost-scsi'/>
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
<version>1006000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
|
|
|
6d3351 |
index 689fbf82c..47c8956b4 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
|
|
|
6d3351 |
@@ -147,6 +147,7 @@
|
|
|
6d3351 |
<flag name='display'/>
|
|
|
6d3351 |
<flag name='vhost-scsi'/>
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
<version>1007000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
|
|
|
6d3351 |
index e092dd254..afe7d53ff 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
|
|
|
6d3351 |
@@ -163,6 +163,7 @@
|
|
|
6d3351 |
<flag name='vhost-scsi'/>
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
<version>2001001</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
|
|
|
6d3351 |
index ea03f2e66..5bdc1a2bd 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
|
|
|
6d3351 |
@@ -185,6 +185,7 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
<version>2004000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
|
|
|
6d3351 |
index 164605f20..36bc1342b 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
|
|
|
6d3351 |
@@ -191,6 +191,7 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
<version>2005000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
|
|
|
6d3351 |
index af3a8e7cb..33bc46208 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
|
|
|
6d3351 |
@@ -168,6 +168,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2006000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
|
|
|
6d3351 |
index 4402ffa6f..a8ce6b03b 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
|
|
|
6d3351 |
@@ -168,6 +168,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2006000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml b/tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml
|
|
|
6d3351 |
index 3f05169c8..425992f0d 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml
|
|
|
6d3351 |
@@ -162,6 +162,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2006000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
|
|
|
6d3351 |
index 1d823eac2..97e71ec4f 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
|
|
|
6d3351 |
@@ -200,6 +200,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2006000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
|
|
|
6d3351 |
index 38d36b3e6..70cce6417 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
|
|
|
6d3351 |
@@ -130,6 +130,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2007000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
|
|
|
6d3351 |
index 24d7cb438..6c2ea59c6 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
|
|
|
6d3351 |
@@ -202,6 +202,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2007000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package> (v2.7.0)</package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
|
|
|
6d3351 |
index 42c92c567..51be9bce4 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
|
|
|
6d3351 |
@@ -132,6 +132,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2007093</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package></package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
|
|
|
6d3351 |
index 0bc13683e..9c8c79ab0 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
|
|
|
6d3351 |
@@ -203,6 +203,8 @@
|
|
|
6d3351 |
<flag name='query-cpu-definitions'/>
|
|
|
6d3351 |
<flag name='block-write-threshold'/>
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2008000</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package> (v2.8.0)</package>
|
|
|
6d3351 |
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
|
|
|
6d3351 |
index 83ed0f1c6..e4cdca89a 100644
|
|
|
6d3351 |
--- a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
|
|
|
6d3351 |
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
|
|
|
6d3351 |
@@ -209,6 +209,8 @@
|
|
|
6d3351 |
<flag name='query-named-block-nodes'/>
|
|
|
6d3351 |
<flag name='cpu-cache'/>
|
|
|
6d3351 |
<flag name='qemu-xhci'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip'/>
|
|
|
6d3351 |
+ <flag name='kernel-irqchip.split'/>
|
|
|
6d3351 |
<version>2008090</version>
|
|
|
6d3351 |
<kvmVersion>0</kvmVersion>
|
|
|
6d3351 |
<package> (v2.9.0-rc0-142-g940a8ce)</package>
|
|
|
6d3351 |
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-ioapic.args b/tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-ioapic.args
|
|
|
6d3351 |
new file mode 100644
|
|
|
6d3351 |
index 000000000..43d71adfc
|
|
|
6d3351 |
--- /dev/null
|
|
|
6d3351 |
+++ b/tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-ioapic.args
|
|
|
6d3351 |
@@ -0,0 +1,19 @@
|
|
|
6d3351 |
+LC_ALL=C \
|
|
|
6d3351 |
+PATH=/bin \
|
|
|
6d3351 |
+HOME=/home/test \
|
|
|
6d3351 |
+USER=test \
|
|
|
6d3351 |
+LOGNAME=test \
|
|
|
6d3351 |
+QEMU_AUDIO_DRV=none \
|
|
|
6d3351 |
+/usr/bin/qemu-system-x86_64 \
|
|
|
6d3351 |
+-name QEMUGuest1 \
|
|
|
6d3351 |
+-S \
|
|
|
6d3351 |
+-machine q35,accel=kvm,kernel_irqchip=split \
|
|
|
6d3351 |
+-m 214 \
|
|
|
6d3351 |
+-smp 1,sockets=1,cores=1,threads=1 \
|
|
|
6d3351 |
+-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
|
|
6d3351 |
+-nographic \
|
|
|
6d3351 |
+-nodefaults \
|
|
|
6d3351 |
+-monitor unix:/tmp/lib/domain--1-QEMUGuest1/monitor.sock,server,nowait \
|
|
|
6d3351 |
+-no-acpi \
|
|
|
6d3351 |
+-boot c \
|
|
|
6d3351 |
+-device intel-iommu
|
|
|
6d3351 |
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
|
|
|
6d3351 |
index 406fbfea4..c7aad297c 100644
|
|
|
6d3351 |
--- a/tests/qemuxml2argvtest.c
|
|
|
6d3351 |
+++ b/tests/qemuxml2argvtest.c
|
|
|
6d3351 |
@@ -2517,6 +2517,11 @@ mymain(void)
|
|
|
6d3351 |
DO_TEST("intel-iommu-machine",
|
|
|
6d3351 |
QEMU_CAPS_MACHINE_OPT,
|
|
|
6d3351 |
QEMU_CAPS_MACHINE_IOMMU);
|
|
|
6d3351 |
+ DO_TEST("intel-iommu-ioapic",
|
|
|
6d3351 |
+ QEMU_CAPS_MACHINE_OPT,
|
|
|
6d3351 |
+ QEMU_CAPS_MACHINE_KERNEL_IRQCHIP,
|
|
|
6d3351 |
+ QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT,
|
|
|
6d3351 |
+ QEMU_CAPS_DEVICE_INTEL_IOMMU);
|
|
|
6d3351 |
|
|
|
6d3351 |
DO_TEST("cpu-hotplug-startup", QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS);
|
|
|
6d3351 |
|
|
|
6d3351 |
--
|
|
|
6d3351 |
2.13.0
|
|
|
6d3351 |
|