libxl: domcreate: support pvusb in configuration file
authorChunyan Liu <cyliu@suse.com>
Wed, 9 Mar 2016 02:10:13 +0000 (10:10 +0800)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Mar 2016 12:17:22 +0000 (12:17 +0000)
commitfa08b8783043df5194815b5617c70dcf6c8c3fef
treec0cc3c6770df7ed486723914eb6b3f997b7505e1
parentbf7628f087b212052a0e9f024044b2790c33f820
libxl: domcreate: support pvusb in configuration file

Add code to support pvusb in domain config file. One could specify
usbctrl and usb in domain's configuration file and create domain,
then usb controllers will be created and usb device would be attached
to guest automatically.

One could specify usb controllers and usb devices in config file
like this:
usbctrl=['version=2,ports=4', 'version=1, ports=4', ]
usbdev=['hostbus=2, hostaddr=1, controller=0,port=1', ]

Signed-off-by: Chunyan Liu <cyliu@suse.com>
Signed-off-by: Simon Cao <caobosimon@gmail.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
docs/man/xl.cfg.pod.5
tools/libxl/libxl_create.c
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h
tools/libxl/xl_cmdimpl.c