|
|
51d9a2 |
From d86f12106d012206eebeef6a9713da3a53a00eec Mon Sep 17 00:00:00 2001
|
|
|
51d9a2 |
Message-Id: <d86f12106d012206eebeef6a9713da3a53a00eec@dist-git>
|
|
|
51d9a2 |
From: Erik Skultety <eskultet@redhat.com>
|
|
|
51d9a2 |
Date: Thu, 19 Jul 2018 15:03:59 +0200
|
|
|
51d9a2 |
Subject: [PATCH] qemu: caps: Add vfio-pci.display capability
|
|
|
51d9a2 |
MIME-Version: 1.0
|
|
|
51d9a2 |
Content-Type: text/plain; charset=UTF-8
|
|
|
51d9a2 |
Content-Transfer-Encoding: 8bit
|
|
|
51d9a2 |
|
|
|
51d9a2 |
QEMU 2.12 introduced a new vfio-pci device option 'display=on/off/auto'.
|
|
|
51d9a2 |
This patch introduces the necessary capability.
|
|
|
51d9a2 |
|
|
|
51d9a2 |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
51d9a2 |
Reviewed-by: John Ferlan <jferlan@redhat.com>
|
|
|
51d9a2 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
51d9a2 |
(cherry picked from commit 11c7bdac6dbe8659c2f8bf7a35b97288b0acb207)
|
|
|
51d9a2 |
|
|
|
51d9a2 |
https://bugzilla.redhat.com/show_bug.cgi?id=1475770
|
|
|
51d9a2 |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
51d9a2 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
51d9a2 |
---
|
|
|
51d9a2 |
src/qemu/qemu_capabilities.c | 4 ++++
|
|
|
51d9a2 |
src/qemu/qemu_capabilities.h | 3 +++
|
|
|
51d9a2 |
tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml | 1 +
|
|
|
51d9a2 |
tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml | 1 +
|
|
|
51d9a2 |
tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml | 1 +
|
|
|
51d9a2 |
tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml | 1 +
|
|
|
51d9a2 |
tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml | 1 +
|
|
|
51d9a2 |
tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml | 1 +
|
|
|
51d9a2 |
8 files changed, 13 insertions(+)
|
|
|
51d9a2 |
|
|
|
51d9a2 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
51d9a2 |
index 05be8f1416..d1e4fafe7d 100644
|
|
|
51d9a2 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
51d9a2 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
51d9a2 |
@@ -504,6 +504,9 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|
|
51d9a2 |
"machine.pseries.cap-htm",
|
|
|
51d9a2 |
"usb-storage.werror",
|
|
|
51d9a2 |
"egl-headless",
|
|
|
51d9a2 |
+
|
|
|
51d9a2 |
+ /* 315 */
|
|
|
51d9a2 |
+ "vfio-pci.display",
|
|
|
51d9a2 |
);
|
|
|
51d9a2 |
|
|
|
51d9a2 |
|
|
|
51d9a2 |
@@ -1198,6 +1201,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsPCIAssign[] = {
|
|
|
51d9a2 |
|
|
|
51d9a2 |
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVfioPCI[] = {
|
|
|
51d9a2 |
{ "bootindex", QEMU_CAPS_VFIO_PCI_BOOTINDEX },
|
|
|
51d9a2 |
+ { "display", QEMU_CAPS_VFIO_PCI_DISPLAY },
|
|
|
51d9a2 |
};
|
|
|
51d9a2 |
|
|
|
51d9a2 |
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsSCSIDisk[] = {
|
|
|
51d9a2 |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
51d9a2 |
index 55221e7e57..9e8ad5f5c3 100644
|
|
|
51d9a2 |
--- a/src/qemu/qemu_capabilities.h
|
|
|
51d9a2 |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
51d9a2 |
@@ -489,6 +489,9 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|
|
51d9a2 |
QEMU_CAPS_USB_STORAGE_WERROR, /* -device usb-storage,werror=..,rerror=.. */
|
|
|
51d9a2 |
QEMU_CAPS_EGL_HEADLESS, /* -display egl-headless */
|
|
|
51d9a2 |
|
|
|
51d9a2 |
+ /* 315 */
|
|
|
51d9a2 |
+ QEMU_CAPS_VFIO_PCI_DISPLAY, /* -device vfio-pci.display */
|
|
|
51d9a2 |
+
|
|
|
51d9a2 |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
51d9a2 |
} virQEMUCapsFlags;
|
|
|
51d9a2 |
|
|
|
51d9a2 |
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml
|
|
|
51d9a2 |
index 80e7afec04..0cc6327573 100644
|
|
|
51d9a2 |
--- a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml
|
|
|
51d9a2 |
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml
|
|
|
51d9a2 |
@@ -170,6 +170,7 @@
|
|
|
51d9a2 |
<flag name='chardev-fd-pass'/>
|
|
|
51d9a2 |
<flag name='tpm-emulator'/>
|
|
|
51d9a2 |
<flag name='egl-headless'/>
|
|
|
51d9a2 |
+ <flag name='vfio-pci.display'/>
|
|
|
51d9a2 |
<version>2011090</version>
|
|
|
51d9a2 |
<kvmVersion>0</kvmVersion>
|
|
|
51d9a2 |
<microcodeVersion>347550</microcodeVersion>
|
|
|
51d9a2 |
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
|
|
|
51d9a2 |
index c4b09c0003..a88da6193e 100644
|
|
|
51d9a2 |
--- a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
|
|
|
51d9a2 |
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
|
|
|
51d9a2 |
@@ -168,6 +168,7 @@
|
|
|
51d9a2 |
<flag name='tpm-emulator'/>
|
|
|
51d9a2 |
<flag name='machine.pseries.cap-htm'/>
|
|
|
51d9a2 |
<flag name='egl-headless'/>
|
|
|
51d9a2 |
+ <flag name='vfio-pci.display'/>
|
|
|
51d9a2 |
<version>2011090</version>
|
|
|
51d9a2 |
<kvmVersion>0</kvmVersion>
|
|
|
51d9a2 |
<microcodeVersion>428334</microcodeVersion>
|
|
|
51d9a2 |
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
|
|
|
51d9a2 |
index 1ff2fe45e1..7121da27a0 100644
|
|
|
51d9a2 |
--- a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
|
|
|
51d9a2 |
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
|
|
|
51d9a2 |
@@ -134,6 +134,7 @@
|
|
|
51d9a2 |
<flag name='chardev-fd-pass'/>
|
|
|
51d9a2 |
<flag name='tpm-emulator'/>
|
|
|
51d9a2 |
<flag name='egl-headless'/>
|
|
|
51d9a2 |
+ <flag name='vfio-pci.display'/>
|
|
|
51d9a2 |
<version>2012000</version>
|
|
|
51d9a2 |
<kvmVersion>0</kvmVersion>
|
|
|
51d9a2 |
<microcodeVersion>375999</microcodeVersion>
|
|
|
51d9a2 |
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
|
|
|
51d9a2 |
index 37d17786cf..78889facce 100644
|
|
|
51d9a2 |
--- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
|
|
|
51d9a2 |
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
|
|
|
51d9a2 |
@@ -212,6 +212,7 @@
|
|
|
51d9a2 |
<flag name='mch.extended-tseg-mbytes'/>
|
|
|
51d9a2 |
<flag name='sev-guest'/>
|
|
|
51d9a2 |
<flag name='egl-headless'/>
|
|
|
51d9a2 |
+ <flag name='vfio-pci.display'/>
|
|
|
51d9a2 |
<version>2011090</version>
|
|
|
51d9a2 |
<kvmVersion>0</kvmVersion>
|
|
|
51d9a2 |
<microcodeVersion>416196</microcodeVersion>
|
|
|
51d9a2 |
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml
|
|
|
51d9a2 |
index 57bf5dba11..01bb968938 100644
|
|
|
51d9a2 |
--- a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml
|
|
|
51d9a2 |
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml
|
|
|
51d9a2 |
@@ -168,6 +168,7 @@
|
|
|
51d9a2 |
<flag name='machine.pseries.cap-hpt-max-page-size'/>
|
|
|
51d9a2 |
<flag name='machine.pseries.cap-htm'/>
|
|
|
51d9a2 |
<flag name='egl-headless'/>
|
|
|
51d9a2 |
+ <flag name='vfio-pci.display'/>
|
|
|
51d9a2 |
<version>2012050</version>
|
|
|
51d9a2 |
<kvmVersion>0</kvmVersion>
|
|
|
51d9a2 |
<microcodeVersion>446771</microcodeVersion>
|
|
|
51d9a2 |
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
|
|
|
51d9a2 |
index 431910a9e3..4bc7cfeebc 100644
|
|
|
51d9a2 |
--- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
|
|
|
51d9a2 |
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
|
|
|
51d9a2 |
@@ -215,6 +215,7 @@
|
|
|
51d9a2 |
<flag name='sev-guest'/>
|
|
|
51d9a2 |
<flag name='usb-storage.werror'/>
|
|
|
51d9a2 |
<flag name='egl-headless'/>
|
|
|
51d9a2 |
+ <flag name='vfio-pci.display'/>
|
|
|
51d9a2 |
<version>2012090</version>
|
|
|
51d9a2 |
<kvmVersion>0</kvmVersion>
|
|
|
51d9a2 |
<microcodeVersion>438109</microcodeVersion>
|
|
|
51d9a2 |
--
|
|
|
51d9a2 |
2.18.0
|
|
|
51d9a2 |
|