[PATCH 0 of 5] #4 Add input device and corresponding RASD.

Patches "Add input device support to device_parsing and Virt_Device" and "Add support for input devices to Virt_RASD.c" updated.

# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1224692656 25200 # Node ID 010da4fc9cdcb1452cfb21de6d7c9e18037a10d9 # Parent e862bf5afda43b86e2f7548ef299fb65179060fd Add PointingDevice schema and input device type. PointingDevice will represent the input device. Using resource type 13 ("I/O Device") as the device type. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r e862bf5afda4 -r 010da4fc9cdc Makefile.am --- a/Makefile.am Wed Nov 05 15:13:38 2008 -0800 +++ b/Makefile.am Wed Oct 22 09:24:16 2008 -0700 @@ -47,7 +47,8 @@ schema/ConsoleRedirectionServiceCapabilities.mof \ schema/ServiceAffectsElement.mof \ schema/KVMRedirectionSAP.mof \ - schema/DisplayController.mof + schema/DisplayController.mof \ + schema/PointingDevice.mof INTEROP_MOFS = \ schema/ComputerSystem.mof \ @@ -105,7 +106,8 @@ schema/ConsoleRedirectionServiceCapabilities.registration \ schema/ServiceAffectsElement.registration \ schema/KVMRedirectionSAP.registration \ - schema/DisplayController.registration + schema/DisplayController.registration \ + schema/PointingDevice.registration INTEROP_REGS = \ schema/RegisteredProfile.registration \ diff -r e862bf5afda4 -r 010da4fc9cdc schema/PointingDevice.mof --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/PointingDevice.mof Wed Oct 22 09:24:16 2008 -0700 @@ -0,0 +1,17 @@ +// Copyright IBM Corp. 2007 + +[ Provider("cmpi::Virt_Device") ] +class Xen_PointingDevice : CIM_PointingDevice +{ +}; + +[ Provider("cmpi::Virt_Device") ] +class KVM_PointingDevice : CIM_PointingDevice +{ +}; + +[ Provider("cmpi::Virt_Device") ] +class LXC_PointingDevice : CIM_PointingDevice +{ +}; + diff -r e862bf5afda4 -r 010da4fc9cdc schema/PointingDevice.registration --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/PointingDevice.registration Wed Oct 22 09:24:16 2008 -0700 @@ -0,0 +1,5 @@ +# Copyright IBM Corp. 2008 +# Classname Namespace ProviderName ProviderModule ProviderTypes +Xen_PointingDevice root/virt Virt_Device Virt_Device instance +KVM_PointingDevice root/virt Virt_Device Virt_Device instance +LXC_PointingDevice root/virt Virt_Device Virt_Device instance diff -r e862bf5afda4 -r 010da4fc9cdc src/svpc_types.h --- a/src/svpc_types.h Wed Nov 05 15:13:38 2008 -0800 +++ b/src/svpc_types.h Wed Oct 22 09:24:16 2008 -0700 @@ -29,15 +29,17 @@ #define CIM_RES_TYPE_DISK 17 #define CIM_RES_TYPE_EMU 1 #define CIM_RES_TYPE_GRAPHICS 24 +#define CIM_RES_TYPE_INPUT 13 #define CIM_RES_TYPE_UNKNOWN 1000 -#define CIM_RES_TYPE_COUNT 5 +#define CIM_RES_TYPE_COUNT 6 const static int cim_res_types[CIM_RES_TYPE_COUNT] = {CIM_RES_TYPE_NET, CIM_RES_TYPE_DISK, CIM_RES_TYPE_MEM, CIM_RES_TYPE_PROC, CIM_RES_TYPE_GRAPHICS, + CIM_RES_TYPE_INPUT, }; #define CIM_VSSD_RECOVERY_NONE 2

# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1224692656 25200 # Node ID 060658b608bf91bb8495690c693e05d34ac8a028 # Parent 010da4fc9cdcb1452cfb21de6d7c9e18037a10d9 (#3) Add input device support to device_parsing and Virt_Device. Updates from 2 to 3: -Set tablet devices to have mouse device type -Set vdev->id directly using asprintf() Updates from 1 to 2: -Add a count value for input devcies -Change ID value from "input" to "device type:bus type" Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 010da4fc9cdc -r 060658b608bf libxkutil/device_parsing.c --- a/libxkutil/device_parsing.c Wed Oct 22 09:24:16 2008 -0700 +++ b/libxkutil/device_parsing.c Wed Oct 22 09:24:16 2008 -0700 @@ -44,6 +44,7 @@ #define EMU_XPATH (xmlChar *)"/domain/devices/emulator" #define MEM_XPATH (xmlChar *)"/domain/memory | /domain/currentMemory" #define GRAPHICS_XPATH (xmlChar *)"/domain/devices/graphics" +#define INPUT_XPATH (xmlChar *)"/domain/devices/input" #define DEFAULT_BRIDGE "xenbr0" #define DEFAULT_NETWORK "default" @@ -80,6 +81,12 @@ free(dev->keymap); } +static void cleanup_input_device(struct input_device *dev) +{ + free(dev->type); + free(dev->bus); +} + void cleanup_virt_device(struct virt_device *dev) { if (dev == NULL) @@ -93,6 +100,8 @@ cleanup_emu_device(&dev->dev.emu); else if (dev->type == CIM_RES_TYPE_GRAPHICS) cleanup_graphics_device(&dev->dev.graphics); + else if (dev->type == CIM_RES_TYPE_INPUT) + cleanup_input_device(&dev->dev.input); free(dev->id); @@ -467,6 +476,42 @@ return 0; } +static int parse_input_device(xmlNode *node, struct virt_device **vdevs) +{ + struct virt_device *vdev = NULL; + struct input_device *idev = NULL; + int ret; + + vdev = calloc(1, sizeof(*vdev)); + if (vdev == NULL) + goto err; + + idev = &(vdev->dev.input); + + idev->type = get_attr_value(node, "type"); + idev->bus = get_attr_value(node, "bus"); + + if ((idev->type == NULL) || (idev->bus == NULL)) + goto err; + + vdev->type = CIM_RES_TYPE_INPUT; + + ret = asprintf(&vdev->id, "%s:%s", idev->type, idev->bus); + if (ret == -1) { + CU_DEBUG("Failed to create input id string"); + goto err; + } + + *vdevs = vdev; + + return 1; + err: + cleanup_input_device(idev); + free(vdev); + + return 0; +} + static bool resize_devlist(struct virt_device **list, int newsize) { struct virt_device *_list; @@ -502,6 +547,8 @@ do_real_parse = parse_mem_device; else if (type == CIM_RES_TYPE_GRAPHICS) do_real_parse = parse_graphics_device; + else if (type == CIM_RES_TYPE_INPUT) + do_real_parse = parse_input_device; else goto out; @@ -570,6 +617,8 @@ xpathstr = MEM_XPATH; else if (type == CIM_RES_TYPE_GRAPHICS) xpathstr = GRAPHICS_XPATH; + else if (type == CIM_RES_TYPE_INPUT) + xpathstr = INPUT_XPATH; else goto err1; @@ -638,6 +687,9 @@ DUP_FIELD(dev, _dev, dev.graphics.port); DUP_FIELD(dev, _dev, dev.graphics.host); DUP_FIELD(dev, _dev, dev.graphics.keymap); + } else if (dev->type == CIM_RES_TYPE_INPUT) { + DUP_FIELD(dev, _dev, dev.input.type); + DUP_FIELD(dev, _dev, dev.input.bus); } return dev; @@ -893,6 +945,9 @@ parse_devices(xml, &(*dominfo)->dev_emu, CIM_RES_TYPE_EMU); parse_devices(xml, &(*dominfo)->dev_graphics, CIM_RES_TYPE_GRAPHICS); + (*dominfo)->dev_input_ct = parse_devices(xml, + &(*dominfo)->dev_input, + CIM_RES_TYPE_INPUT); (*dominfo)->dev_mem_ct = _get_mem_device(xml, &(*dominfo)->dev_mem); (*dominfo)->dev_net_ct = parse_devices(xml, &(*dominfo)->dev_net, @@ -962,6 +1017,7 @@ cleanup_virt_devices(&dom->dev_net, dom->dev_net_ct); cleanup_virt_devices(&dom->dev_disk, dom->dev_disk_ct); cleanup_virt_devices(&dom->dev_vcpu, dom->dev_vcpu_ct); + cleanup_virt_devices(&dom->dev_input, dom->dev_input_ct); free(dom); diff -r 010da4fc9cdc -r 060658b608bf libxkutil/device_parsing.h --- a/libxkutil/device_parsing.h Wed Oct 22 09:24:16 2008 -0700 +++ b/libxkutil/device_parsing.h Wed Oct 22 09:24:16 2008 -0700 @@ -69,6 +69,11 @@ char *keymap; }; +struct input_device { + char *type; + char *bus; +}; + struct virt_device { uint16_t type; union { @@ -78,6 +83,7 @@ struct vcpu_device vcpu; struct emu_device emu; struct graphics_device graphics; + struct input_device input; } dev; char *id; }; @@ -120,6 +126,9 @@ struct virt_device *dev_graphics; struct virt_device *dev_emu; + + struct virt_device *dev_input; + int dev_input_ct; struct virt_device *dev_mem; int dev_mem_ct; diff -r 010da4fc9cdc -r 060658b608bf src/Virt_Device.c --- a/src/Virt_Device.c Wed Oct 22 09:24:16 2008 -0700 +++ b/src/Virt_Device.c Wed Oct 22 09:24:16 2008 -0700 @@ -39,6 +39,9 @@ #define CIM_NET_UNKNOWN 0 #define CIM_NET_ETHERNET 2 + +#define CIM_INPUT_UNKNOWN 2 +#define CIM_INPUT_MOUSE 3 const static CMPIBroker *_BROKER; const static uint64_t XEN_MEM_BLOCKSIZE = 4096; @@ -214,6 +217,85 @@ return inst; } +int get_input_dev_caption(const char *type, + const char *bus, + char **cap) +{ + int ret; + const char *type_str; + const char *bus_str; + + if (STREQC(type, "mouse")) + type_str = "Mouse"; + else if (STREQC(type, "tablet")) + type_str = "Tablet"; + else + type_str = "Unknown device type"; + + if (STREQC(bus, "usb")) + bus_str = "USB"; + else if (STREQC(bus, "ps2")) + bus_str = "PS2"; + else + bus_str = "Unknown bus"; + + ret = asprintf(cap, "%s %s", bus_str, type_str); + if (ret == -1) { + CU_DEBUG("Failed to create input id string"); + return 0; + } + + return 1; +} + +static int input_set_attr(CMPIInstance *instance, + struct input_device *dev) +{ + uint16_t cim_type; + char *cap; + int rc; + + if ((STREQC(dev->type, "mouse")) || (STREQC(dev->type, "tablet"))) + cim_type = CIM_INPUT_MOUSE; + else + cim_type = CIM_INPUT_UNKNOWN; + + rc = get_input_dev_caption(dev->type, dev->bus, &cap); + if (rc != 1) { + free(cap); + return 0; + } + + CMSetProperty(instance, "PointingType", + (CMPIValue *)&cim_type, CMPI_uint16); + + CMSetProperty(instance, "Caption", (CMPIValue *)cap, CMPI_chars); + + free(cap); + + return 1; +} + +static CMPIInstance *input_instance(const CMPIBroker *broker, + struct input_device *dev, + const virDomainPtr dom, + const char *ns) +{ + CMPIInstance *inst; + virConnectPtr conn; + + conn = virDomainGetConnect(dom); + inst = get_typed_instance(broker, + pfx_from_conn(conn), + "PointingDevice", + ns); + + if (!input_set_attr(inst, dev)) + return NULL; + + return inst; +} + static int device_set_devid(CMPIInstance *instance, struct virt_device *dev, const virDomainPtr dom) @@ -358,6 +440,11 @@ &dev->dev.graphics, dom, ns); + else if (dev->type == CIM_RES_TYPE_INPUT) + instance = input_instance(broker, + &dev->dev.input, + dom, + ns); else return false; @@ -392,6 +479,8 @@ return CIM_RES_TYPE_PROC; else if (strstr(classname, "DisplayController")) return CIM_RES_TYPE_GRAPHICS; + else if (strstr(classname, "PointingDevice")) + return CIM_RES_TYPE_INPUT; else return CIM_RES_TYPE_UNKNOWN; } diff -r 010da4fc9cdc -r 060658b608bf src/Virt_Device.h --- a/src/Virt_Device.h Wed Oct 22 09:24:16 2008 -0700 +++ b/src/Virt_Device.h Wed Oct 22 09:24:16 2008 -0700 @@ -71,6 +71,10 @@ uint16_t res_type_from_device_classname(const char *classname); +int get_input_dev_caption(const char *type, + const char *bus, + char **cap); + #endif /*

# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1226528568 28800 # Node ID f08e0fd04dc6689eff62b64f903178e05d440521 # Parent 060658b608bf91bb8495690c693e05d34ac8a028 Update SystemDevice to support input devices. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 060658b608bf -r f08e0fd04dc6 src/Virt_SystemDevice.c --- a/src/Virt_SystemDevice.c Wed Oct 22 09:24:16 2008 -0700 +++ b/src/Virt_SystemDevice.c Wed Nov 12 14:22:48 2008 -0800 @@ -135,16 +135,19 @@ "Xen_NetworkPort", "Xen_LogicalDisk", "Xen_DisplayController", + "Xen_PointingDevice", "KVM_Processor", "KVM_Memory", "KVM_NetworkPort", "KVM_LogicalDisk", "KVM_DisplayController", + "KVM_PointingDevice", "LXC_Processor", "LXC_Memory", "LXC_NetworkPort", "LXC_LogicalDisk", "LXC_DisplayController", + "LXC_PointingDevice", NULL };

# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1225839014 28800 # Node ID a3eb89f3e9af9f236fcba51edce1682bc0831056 # Parent f08e0fd04dc6689eff62b64f903178e05d440521 (#2) Add support for input devices to Virt_RASD.c Updates: -Set ResourceSubType with input type -Set Caption with bus type Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r f08e0fd04dc6 -r a3eb89f3e9af schema/ResourceAllocationSettingData.mof --- a/schema/ResourceAllocationSettingData.mof Wed Nov 12 14:22:48 2008 -0800 +++ b/schema/ResourceAllocationSettingData.mof Tue Nov 04 14:50:14 2008 -0800 @@ -145,3 +145,24 @@ { }; +[Description ("Xen virtual input device"), + Provider("cmpi::Virt_RASD") +] +class Xen_InputResourceAllocationSettingData : Xen_ResourceAllocationSettingData +{ +}; + +[Description ("KVM virtual input device"), + Provider("cmpi::Virt_RASD") +] +class KVM_InputResourceAllocationSettingData : KVM_ResourceAllocationSettingData +{ +}; + +[Description ("LXC virtual input device"), + Provider("cmpi::Virt_RASD") +] +class LXC_InputResourceAllocationSettingData : LXC_ResourceAllocationSettingData +{ +}; + diff -r f08e0fd04dc6 -r a3eb89f3e9af schema/ResourceAllocationSettingData.registration --- a/schema/ResourceAllocationSettingData.registration Wed Nov 12 14:22:48 2008 -0800 +++ b/schema/ResourceAllocationSettingData.registration Tue Nov 04 14:50:14 2008 -0800 @@ -5,12 +5,15 @@ Xen_ProcResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance Xen_MemResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance Xen_GraphicsResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance +Xen_InputResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance KVM_DiskResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance KVM_NetResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance KVM_ProcResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance KVM_MemResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance KVM_GraphicsResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance +KVM_InputResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance LXC_MemResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance LXC_DiskResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance LXC_ProcResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance LXC_GraphicsResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance +LXC_InputResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance diff -r f08e0fd04dc6 -r a3eb89f3e9af src/Makefile.am --- a/src/Makefile.am Wed Nov 12 14:22:48 2008 -0800 +++ b/src/Makefile.am Tue Nov 04 14:50:14 2008 -0800 @@ -150,7 +150,9 @@ libVirt_HostedResourcePool_la_SOURCES = Virt_HostedResourcePool.c libVirt_HostedResourcePool_la_LIBADD = -lVirt_DevicePool -lVirt_HostSystem +libVirt_RASD_la_DEPENDENCIES = libVirt_Device.la libVirt_RASD_la_SOURCES = Virt_RASD.c +libVirt_RASD_la_LIBADD = -lVirt_Device libVirt_ResourcePoolConfigurationService_la_DEPENDENCIES = libVirt_HostSystem.la libVirt_ResourcePoolConfigurationService_la_SOURCES = Virt_ResourcePoolConfigurationService.c diff -r f08e0fd04dc6 -r a3eb89f3e9af src/Virt_RASD.c --- a/src/Virt_RASD.c Wed Nov 12 14:22:48 2008 -0800 +++ b/src/Virt_RASD.c Tue Nov 04 14:50:14 2008 -0800 @@ -37,6 +37,7 @@ #include "Virt_RASD.h" #include "svpc_types.h" +#include "Virt_Device.h" const static CMPIBroker *_BROKER; @@ -285,6 +286,34 @@ return s; } +static CMPIStatus set_input_rasd_params(const struct virt_device *dev, + CMPIInstance *inst) +{ + CMPIStatus s = {CMPI_RC_OK, NULL}; + char *cap; + int ret; + + ret = get_input_dev_caption(dev->dev.input.type, + dev->dev.input.bus, + &cap); + if (ret != 1) { + free(cap); + cu_statusf(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + "Unable to build input caption"); + return s; + } + + CMSetProperty(inst, "ResourceSubType", + (CMPIValue *)dev->dev.input.type, CMPI_chars); + + CMSetProperty(inst, "Caption", (CMPIValue *)cap, CMPI_chars); + + free(cap); + + return s; +} + static CMPIInstance *rasd_from_vdev(const CMPIBroker *broker, struct virt_device *dev, const char *host, @@ -313,6 +342,9 @@ } else if (dev->type == CIM_RES_TYPE_GRAPHICS) { type = CIM_RES_TYPE_GRAPHICS; base = "GraphicsResourceAllocationSettingData"; + } else if (dev->type == CIM_RES_TYPE_INPUT) { + type = CIM_RES_TYPE_INPUT; + base = "InputResourceAllocationSettingData"; } else { return NULL; } @@ -363,6 +395,8 @@ set_proc_rasd_params(broker, ref, dev, host, inst); } else if (dev->type == CIM_RES_TYPE_GRAPHICS) { s = set_graphics_rasd_params(dev, inst); + } else if (dev->type == CIM_RES_TYPE_INPUT) { + s = set_input_rasd_params(dev, inst); } /* FIXME: Put the HostResource in place */ @@ -486,6 +520,8 @@ *type = CIM_RES_TYPE_MEM; else if (STREQ(base, "GraphicsResourceAllocationSettingData")) *type = CIM_RES_TYPE_GRAPHICS; + else if (STREQ(base, "InputResourceAllocationSettingData")) + *type = CIM_RES_TYPE_INPUT; else goto out; @@ -516,6 +552,9 @@ break; case CIM_RES_TYPE_GRAPHICS: *classname = "GraphicsResourceAllocationSettingData"; + break; + case CIM_RES_TYPE_INPUT: + *classname = "InputResourceAllocationSettingData"; break; default: rc = CMPI_RC_ERR_FAILED;

# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1226528570 28800 # Node ID d93d3f13c62f5cfd83a312549365ce209fc8d926 # Parent a3eb89f3e9af9f236fcba51edce1682bc0831056 Updated associations to support input device RASD. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r a3eb89f3e9af -r d93d3f13c62f src/Virt_ElementSettingData.c --- a/src/Virt_ElementSettingData.c Tue Nov 04 14:50:14 2008 -0800 +++ b/src/Virt_ElementSettingData.c Wed Nov 12 14:22:50 2008 -0800 @@ -128,16 +128,19 @@ "Xen_NetResourceAllocationSettingData", "Xen_ProcResourceAllocationSettingData", "Xen_GraphicsResourceAllocationSettingData", + "Xen_InputResourceAllocationSettingData", "KVM_DiskResourceAllocationSettingData", "KVM_MemResourceAllocationSettingData", "KVM_NetResourceAllocationSettingData", "KVM_ProcResourceAllocationSettingData", "KVM_GraphicsResourceAllocationSettingData", + "KVM_InputResourceAllocationSettingData", "LXC_DiskResourceAllocationSettingData", "LXC_MemResourceAllocationSettingData", "LXC_NetResourceAllocationSettingData", "LXC_ProcResourceAllocationSettingData", "LXC_GraphicsResourceAllocationSettingData", + "LXC_InputResourceAllocationSettingData", NULL }; diff -r a3eb89f3e9af -r d93d3f13c62f src/Virt_SettingsDefineState.c --- a/src/Virt_SettingsDefineState.c Tue Nov 04 14:50:14 2008 -0800 +++ b/src/Virt_SettingsDefineState.c Wed Nov 12 14:22:50 2008 -0800 @@ -327,16 +327,19 @@ "Xen_NetworkPort", "Xen_LogicalDisk", "Xen_DisplayController", + "Xen_PointingDevice", "KVM_Processor", "KVM_Memory", "KVM_NetworkPort", "KVM_LogicalDisk", "KVM_DisplayController", + "KVM_PointingDevice", "LXC_Processor", "LXC_Memory", "LXC_NetworkPort", "LXC_LogicalDisk", "LXC_DisplayController", + "LXC_PointingDevice", NULL }; @@ -346,16 +349,19 @@ "Xen_NetResourceAllocationSettingData", "Xen_ProcResourceAllocationSettingData", "Xen_GraphicsResourceAllocationSettingData", + "Xen_InputResourceAllocationSettingData", "KVM_DiskResourceAllocationSettingData", "KVM_MemResourceAllocationSettingData", "KVM_NetResourceAllocationSettingData", "KVM_ProcResourceAllocationSettingData", "KVM_GraphicsResourceAllocationSettingData", + "KVM_InputResourceAllocationSettingData", "LXC_DiskResourceAllocationSettingData", "LXC_MemResourceAllocationSettingData", "LXC_NetResourceAllocationSettingData", "LXC_ProcResourceAllocationSettingData", "LXC_GraphicsResourceAllocationSettingData", + "LXC_InputResourceAllocationSettingData", NULL }; diff -r a3eb89f3e9af -r d93d3f13c62f src/Virt_VSSDComponent.c --- a/src/Virt_VSSDComponent.c Tue Nov 04 14:50:14 2008 -0800 +++ b/src/Virt_VSSDComponent.c Wed Nov 12 14:22:50 2008 -0800 @@ -132,16 +132,19 @@ "Xen_NetResourceAllocationSettingData", "Xen_ProcResourceAllocationSettingData", "Xen_GraphicsResourceAllocationSettingData", + "Xen_InputResourceAllocationSettingData", "KVM_DiskResourceAllocationSettingData", "KVM_MemResourceAllocationSettingData", "KVM_NetResourceAllocationSettingData", "KVM_ProcResourceAllocationSettingData", "KVM_GraphicsResourceAllocationSettingData", + "KVM_InputResourceAllocationSettingData", "LXC_DiskResourceAllocationSettingData", "LXC_MemResourceAllocationSettingData", "LXC_NetResourceAllocationSettingData", "LXC_ProcResourceAllocationSettingData", "LXC_GraphicsResourceAllocationSettingData", + "LXC_InputResourceAllocationSettingData", NULL };

KR> Patches "Add input device support to device_parsing and KR> Virt_Device" and "Add support for input devices to Virt_RASD.c" KR> updated. I think these look pretty good now. Just to be clear, there is still work to be done to be able to specify this information during a DefineSystem() call, right? -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

Dan Smith wrote:
KR> Patches "Add input device support to device_parsing and KR> Virt_Device" and "Add support for input devices to Virt_RASD.c" KR> updated.
I think these look pretty good now. Just to be clear, there is still work to be done to be able to specify this information during a DefineSystem() call, right?
Yes. I've got some patches I'm working on that all the user to define a graphics device. I have a little bit more work there, but they should be ready soon. I might also add input devices in the same patchset, depending on how big the changes are. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (2)
-
Dan Smith
-
Kaitlin Rupert