render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
127bba
From 4ee594e8126c8187e933c10f1a24d28df3fd1090 Mon Sep 17 00:00:00 2001
127bba
Message-Id: <4ee594e8126c8187e933c10f1a24d28df3fd1090@dist-git>
127bba
From: Martin Kletzander <mkletzan@redhat.com>
127bba
Date: Fri, 4 Nov 2016 10:29:34 +0100
127bba
Subject: [PATCH] conf: Allow copying of shmem defs
127bba
127bba
This way we'll be able to hotplug with both --live and --config in one
127bba
API call.
127bba
127bba
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
127bba
(cherry picked from commit 921ec15fdbf215e74f0898b0b8cf879db63ccb4b)
127bba
127bba
https://bugzilla.redhat.com/show_bug.cgi?id=1392031
127bba
127bba
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
127bba
---
127bba
 src/conf/domain_conf.c | 5 ++++-
127bba
 1 file changed, 4 insertions(+), 1 deletion(-)
127bba
127bba
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
127bba
index caa9ce0..415ab1c 100644
127bba
--- a/src/conf/domain_conf.c
127bba
+++ b/src/conf/domain_conf.c
127bba
@@ -25026,11 +25026,14 @@ virDomainDeviceDefCopy(virDomainDeviceDefPtr src,
127bba
     case VIR_DOMAIN_DEVICE_MEMORY:
127bba
         rc = virDomainMemoryDefFormat(&buf, src->data.memory, flags);
127bba
         break;
127bba
+    case VIR_DOMAIN_DEVICE_SHMEM:
127bba
+        rc = virDomainShmemDefFormat(&buf, src->data.shmem, flags);
127bba
+        break;
127bba
+
127bba
     case VIR_DOMAIN_DEVICE_NONE:
127bba
     case VIR_DOMAIN_DEVICE_SMARTCARD:
127bba
     case VIR_DOMAIN_DEVICE_MEMBALLOON:
127bba
     case VIR_DOMAIN_DEVICE_NVRAM:
127bba
-    case VIR_DOMAIN_DEVICE_SHMEM:
127bba
     case VIR_DOMAIN_DEVICE_IOMMU:
127bba
     case VIR_DOMAIN_DEVICE_LAST:
127bba
         virReportError(VIR_ERR_INTERNAL_ERROR,
127bba
-- 
127bba
2.10.2
127bba