render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c1c534
From 9c0e9d27d742f8150378cb228a64662d9c4984d4 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <9c0e9d27d742f8150378cb228a64662d9c4984d4@dist-git>
6d3351
From: Eric Blake <eblake@redhat.com>
6d3351
Date: Tue, 7 Oct 2014 17:06:17 -0600
6d3351
Subject: [PATCH] RHEL: qemu: support relative backing for RHEL 7.0.z qemu
6d3351
6d3351
RHEL-only: https://bugzilla.redhat.com/show_bug.cgi?id=1150322
6d3351
6d3351
qemu-kvm-rhev for RHEL 7.0.z backported enough code to allow
6d3351
relative backing file manipulations, but could not backport
6d3351
everything from upstream.  So, instead of providing the upstream
6d3351
'change-backing-file' QMP command, it added a downstream-only
6d3351
'__com.redhat_change-backing-file' as a witness that relative
6d3351
backing is supported, but not as full-featured.  Since libvirt
6d3351
from RHEL 7.1 may be driving an older qemu, we need to be able
6d3351
to recognize the alternate spelling.
6d3351
6d3351
* src/qemu/qemu_capabilities.c (virQEMUCapsCommands): Also
6d3351
recognize downstream spelling.
6d3351
6d3351
Signed-off-by: Eric Blake <eblake@redhat.com>
6d3351
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
6d3351
---
6d3351
 src/qemu/qemu_capabilities.c | 1 +
6d3351
 1 file changed, 1 insertion(+)
6d3351
6d3351
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
c1c534
index 7cb091056b..10ec0d4bb9 100644
6d3351
--- a/src/qemu/qemu_capabilities.c
6d3351
+++ b/src/qemu/qemu_capabilities.c
c1c534
@@ -1555,6 +1555,7 @@ struct virQEMUCapsStringFlags virQEMUCapsCommands[] = {
6d3351
     { "add-fd", QEMU_CAPS_ADD_FD },
6d3351
     { "nbd-server-start", QEMU_CAPS_NBD_SERVER },
6d3351
     { "change-backing-file", QEMU_CAPS_CHANGE_BACKING_FILE },
6d3351
+    { "__com.redhat_change-backing-file", QEMU_CAPS_CHANGE_BACKING_FILE },
6d3351
     { "rtc-reset-reinjection", QEMU_CAPS_RTC_RESET_REINJECTION },
6d3351
     { "migrate-incoming", QEMU_CAPS_INCOMING_DEFER },
6d3351
     { "query-hotpluggable-cpus", QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS },
6d3351
-- 
c1c534
2.14.3
6d3351