render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
edecca
From 393120dca767f8a8dc5b60a46dd2c6124208e4df Mon Sep 17 00:00:00 2001
edecca
Message-Id: <393120dca767f8a8dc5b60a46dd2c6124208e4df@dist-git>
edecca
From: Boris Fiuczynski <fiuczy@linux.ibm.com>
edecca
Date: Fri, 30 Nov 2018 15:49:23 +0100
edecca
Subject: [PATCH] qemu: add vfio-ap capability
edecca
edecca
Introduce vfio-ap capability.
edecca
edecca
Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
edecca
Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com>
edecca
Reviewed-by: Thomas Huth <thuth@redhat.com>
edecca
Reviewed-by: Chris Venteicher <cventeic@redhat.com>
edecca
(cherry picked from commit dc788d254017d51c6a3ccb5e5c9663ce82a4683b)
edecca
edecca
https://bugzilla.redhat.com/show_bug.cgi?id=1508146
edecca
edecca
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
edecca
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
edecca
---
edecca
 src/qemu/qemu_capabilities.c | 2 ++
edecca
 src/qemu/qemu_capabilities.h | 1 +
edecca
 2 files changed, 3 insertions(+)
edecca
edecca
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
edecca
index 5fd10c2d40..feef102874 100644
edecca
--- a/src/qemu/qemu_capabilities.c
edecca
+++ b/src/qemu/qemu_capabilities.c
edecca
@@ -507,6 +507,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
edecca
 
edecca
               /* 315 */
edecca
               "vfio-pci.display",
edecca
+              "vfio-ap",
edecca
     );
edecca
 
edecca
 
edecca
@@ -1145,6 +1146,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
edecca
     { "vhost-vsock-device", QEMU_CAPS_DEVICE_VHOST_VSOCK },
edecca
     { "mch", QEMU_CAPS_DEVICE_MCH },
edecca
     { "sev-guest", QEMU_CAPS_SEV_GUEST },
edecca
+    { "vfio-ap", QEMU_CAPS_DEVICE_VFIO_AP },
edecca
 };
edecca
 
edecca
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[] = {
edecca
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
edecca
index 6acd9fe825..1a9e5386a8 100644
edecca
--- a/src/qemu/qemu_capabilities.h
edecca
+++ b/src/qemu/qemu_capabilities.h
edecca
@@ -491,6 +491,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
edecca
 
edecca
     /* 315 */
edecca
     QEMU_CAPS_VFIO_PCI_DISPLAY, /* -device vfio-pci.display */
edecca
+    QEMU_CAPS_DEVICE_VFIO_AP, /* -device vfio-ap */
edecca
 
edecca
     QEMU_CAPS_LAST /* this must always be the last item */
edecca
 } virQEMUCapsFlags;
edecca
-- 
edecca
2.19.2
edecca