render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
404507
From 5b5832decc253ce95535c9a6cf1eee6b5ed475fc Mon Sep 17 00:00:00 2001
404507
Message-Id: <5b5832decc253ce95535c9a6cf1eee6b5ed475fc@dist-git>
404507
From: Andrea Bolognani <abologna@redhat.com>
404507
Date: Wed, 29 Nov 2017 16:23:19 +0100
404507
Subject: [PATCH] qemu: Add QEMU_CAPS_DEVICE_PL011
404507
404507
All serial devices shoule have an associated capability.
404507
404507
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
404507
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
404507
(cherry picked from commit a45ecb7bf6b43a863ef0980156e822d414975994)
404507
404507
 Conflicts:
404507
	tests/qemucapabilitiesdata/caps_2.10.0-gicv2.aarch64.xml
404507
	tests/qemucapabilitiesdata/caps_2.10.0-gicv3.aarch64.xml
404507
404507
	These caps do not exists in the current version.
404507
404507
https://bugzilla.redhat.com/show_bug.cgi?id=1512929
404507
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
404507
---
404507
 src/qemu/qemu_capabilities.c                            | 4 ++++
404507
 src/qemu/qemu_capabilities.h                            | 3 +++
404507
 tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml | 1 +
404507
 tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml | 1 +
404507
 4 files changed, 9 insertions(+)
404507
404507
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
404507
index 08c6653424..ae5448eaaa 100644
404507
--- a/src/qemu/qemu_capabilities.c
404507
+++ b/src/qemu/qemu_capabilities.c
404507
@@ -453,6 +453,9 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
404507
               "disk-share-rw",
404507
 
404507
               "isa-serial",
404507
+
404507
+              /* 280 */
404507
+              "pl011",
404507
     );
404507
 
404507
 
404507
@@ -1684,6 +1687,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
404507
     { "spapr-vty", QEMU_CAPS_DEVICE_SPAPR_VTY },
404507
     { "sclplmconsole", QEMU_CAPS_DEVICE_SCLPLMCONSOLE },
404507
     { "isa-serial", QEMU_CAPS_DEVICE_ISA_SERIAL },
404507
+    { "pl011", QEMU_CAPS_DEVICE_PL011 },
404507
 };
404507
 
404507
 static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBalloon[] = {
404507
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
404507
index f0bd88f897..c809f83404 100644
404507
--- a/src/qemu/qemu_capabilities.h
404507
+++ b/src/qemu/qemu_capabilities.h
404507
@@ -440,6 +440,9 @@ typedef enum {
404507
 
404507
     QEMU_CAPS_DEVICE_ISA_SERIAL, /* -device isa-serial */
404507
 
404507
+    /* 280 */
404507
+    QEMU_CAPS_DEVICE_PL011, /* -device pl011 (not user-instantiable) */
404507
+
404507
     QEMU_CAPS_LAST /* this must always be the last item */
404507
 } virQEMUCapsFlags;
404507
 
404507
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
404507
index e699bdbafd..d3e2e18faa 100644
404507
--- a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
404507
+++ b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
404507
@@ -173,6 +173,7 @@
404507
   <flag name='chardev-reconnect'/>
404507
   <flag name='virtio-gpu.max_outputs'/>
404507
   <flag name='isa-serial'/>
404507
+  <flag name='pl011'/>
404507
   <version>2006000</version>
404507
   <kvmVersion>0</kvmVersion>
404507
   <package></package>
404507
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
404507
index f4c1de7e1d..bc86d03537 100644
404507
--- a/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
404507
+++ b/tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
404507
@@ -173,6 +173,7 @@
404507
   <flag name='chardev-reconnect'/>
404507
   <flag name='virtio-gpu.max_outputs'/>
404507
   <flag name='isa-serial'/>
404507
+  <flag name='pl011'/>
404507
   <version>2006000</version>
404507
   <kvmVersion>0</kvmVersion>
404507
   <package></package>
404507
-- 
404507
2.15.1
404507