render / rpms / libvirt

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