The default graphics and input devices were built without their
resource types being set correctly. This has not hurted yet.
Future changes will however require that the device resource
type is matching the actual device type.
Signed-off-by: Viktor Mihajlovski <mihajlov(a)linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy(a)linux.vnet.ibm.com>
---
src/Virt_VirtualSystemManagementService.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/Virt_VirtualSystemManagementService.c
b/src/Virt_VirtualSystemManagementService.c
index 79dec73..6629b35 100644
--- a/src/Virt_VirtualSystemManagementService.c
+++ b/src/Virt_VirtualSystemManagementService.c
@@ -581,6 +581,7 @@ static bool default_graphics_device(struct domain *domain)
return false;
}
+ domain->dev_graphics->type = CIM_RES_TYPE_GRAPHICS;
domain->dev_graphics->dev.graphics.type = strdup("vnc");
domain->dev_graphics->dev.graphics.dev.vnc.port = strdup("-1");
domain->dev_graphics->dev.graphics.dev.vnc.host =
strdup("127.0.0.1");
@@ -609,6 +610,7 @@ static bool default_input_device(struct domain *domain)
return false;
}
+ domain->dev_input->type = CIM_RES_TYPE_INPUT;
domain->dev_input->dev.input.type = strdup("mouse");
if (domain->type == DOMAIN_XENPV) {
--
1.7.9.5