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