Blame SOURCES/libvirt-cim-0.6.3-ee84e10f.patch

9c78f5
From ee84e10f3daba3050b17904c34b05db0765736d4 Mon Sep 17 00:00:00 2001
9c78f5
From: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
9c78f5
Date: Wed, 11 Sep 2013 16:45:35 +0200
9c78f5
Subject: [PATCH 15/60] VSMS: Set resource types for default devices
9c78f5
9c78f5
The default graphics and input devices were built without their
9c78f5
resource types being set correctly. This has not hurted yet.
9c78f5
Future changes will however require that the device resource
9c78f5
type is matching the actual device type.
9c78f5
9c78f5
Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
9c78f5
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
9c78f5
Signed-off-by: John Ferlan <jferlan@redhat.com>
9c78f5
---
9c78f5
 src/Virt_VirtualSystemManagementService.c | 2 ++
9c78f5
 1 file changed, 2 insertions(+)
9c78f5
9c78f5
diff --git a/src/Virt_VirtualSystemManagementService.c b/src/Virt_VirtualSystemManagementService.c
9c78f5
index 79dec73..6629b35 100644
9c78f5
--- a/src/Virt_VirtualSystemManagementService.c
9c78f5
+++ b/src/Virt_VirtualSystemManagementService.c
9c78f5
@@ -581,6 +581,7 @@ static bool default_graphics_device(struct domain *domain)
9c78f5
                 return false;
9c78f5
         }
9c78f5
 
9c78f5
+        domain->dev_graphics->type = CIM_RES_TYPE_GRAPHICS;
9c78f5
         domain->dev_graphics->dev.graphics.type = strdup("vnc");
9c78f5
         domain->dev_graphics->dev.graphics.dev.vnc.port = strdup("-1");
9c78f5
         domain->dev_graphics->dev.graphics.dev.vnc.host = strdup("127.0.0.1");
9c78f5
@@ -609,6 +610,7 @@ static bool default_input_device(struct domain *domain)
9c78f5
                 return false;
9c78f5
         }
9c78f5
 
9c78f5
+        domain->dev_input->type = CIM_RES_TYPE_INPUT;
9c78f5
         domain->dev_input->dev.input.type = strdup("mouse");
9c78f5
 
9c78f5
         if (domain->type == DOMAIN_XENPV) {
9c78f5
-- 
9c78f5
2.1.0
9c78f5