[Libvirt-cim] [PATCH] [TEST]Set InstanceID of InputRASD to work for all virt types in rasd_init_list()

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Nov 26 18:27:10 UTC 2008


yunguol at cn.ibm.com wrote:
> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1227670060 28800
> # Node ID 37f619827b03342cd42e0a45855aa59e0b9cd09b
> # Parent  8807a94aa58a411d8596e717674c91c937881247
> [TEST]Set InstanceID of InputRASD to work for all virt types in rasd_init_list()
> 
> Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
> 
> diff -r 8807a94aa58a -r 37f619827b03 suites/libvirt-cim/lib/XenKvmLib/rasd.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Mon Nov 24 22:08:51 2008 -0800
> +++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Tue Nov 25 19:27:40 2008 -0800
> @@ -67,7 +67,10 @@
>          disk_path = vsxml.xml_get_disk_source()
>          if virt == 'LXC':
>             disk_path = '/tmp/lxc_files'
> -
> +        if virt == 'LXC' or virt == 'XenFV':
> +           point_device = "%s/%s" %(t_dom, "mouse:usb")
> +        else:
> +           point_device = "%s/%s" %(t_dom, "mouse:ps2")

You'll need a condition here for XenPV - it's mouse:xen.

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list