Re: [Xen-devel] [PATCH V8 7/7] domcreate: support pvusb in configuration file

2015-11-12 Thread Chun Yan Liu


>>> On 11/13/2015 at 12:10 AM, in message
, George
Dunlap  wrote: 
> On Wed, Oct 21, 2015 at 10:08 AM, Chunyan Liu  wrote: 
> > 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  
> > Signed-off-by: Simon Cao  
> > 
> > --- 
> > changes: 
> >   - change parse_usb_config and parse_usbctrl_config, following 
> > parse_nic_config way, and move to previous patch 
> >   - update user interface to specify hostbus, hostaddr instead of 
> > hostbus.hostaddr for future extension 
> > 
> >  docs/man/xl.cfg.pod.5| 81  
>  
> >  tools/libxl/libxl_create.c   | 73 +-- 
> >  tools/libxl/libxl_device.c   |  4 +++ 
> >  tools/libxl/libxl_internal.h |  8 + 
> >  tools/libxl/xl_cmdimpl.c | 54 - 
> >  5 files changed, 216 insertions(+), 4 deletions(-) 
> > 
> > diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 
> > index b63846a..f24c008 100644 
> > --- a/docs/man/xl.cfg.pod.5 
> > +++ b/docs/man/xl.cfg.pod.5 
> > @@ -722,6 +722,87 @@ Note this may be overridden by rdm_policy option in 
> > PCI  
> device configuration. 
> > 
> >  =back 
> > 
> > +=item 

Re: [Xen-devel] [PATCH V8 7/7] domcreate: support pvusb in configuration file

2015-11-12 Thread George Dunlap
On Wed, Oct 21, 2015 at 10:08 AM, Chunyan Liu  wrote:
> 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 
> Signed-off-by: Simon Cao 
>
> ---
> changes:
>   - change parse_usb_config and parse_usbctrl_config, following
> parse_nic_config way, and move to previous patch
>   - update user interface to specify hostbus, hostaddr instead of
> hostbus.hostaddr for future extension
>
>  docs/man/xl.cfg.pod.5| 81 
> 
>  tools/libxl/libxl_create.c   | 73 +--
>  tools/libxl/libxl_device.c   |  4 +++
>  tools/libxl/libxl_internal.h |  8 +
>  tools/libxl/xl_cmdimpl.c | 54 -
>  5 files changed, 216 insertions(+), 4 deletions(-)
>
> diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5
> index b63846a..f24c008 100644
> --- a/docs/man/xl.cfg.pod.5
> +++ b/docs/man/xl.cfg.pod.5
> @@ -722,6 +722,87 @@ Note this may be overridden by rdm_policy option in PCI 
> device configuration.
>
>  =back
>
> +=item 

Re: [Xen-devel] [PATCH V8 7/7] domcreate: support pvusb in configuration file

2015-10-27 Thread Juergen Gross

On 10/21/2015 11:08 AM, Chunyan Liu wrote:

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 
Signed-off-by: Simon Cao 


Acked-by: Juergen Gross 


Juergen


___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


[Xen-devel] [PATCH V8 7/7] domcreate: support pvusb in configuration file

2015-10-21 Thread Chunyan Liu
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 
Signed-off-by: Simon Cao 

---
changes:
  - change parse_usb_config and parse_usbctrl_config, following
parse_nic_config way, and move to previous patch
  - update user interface to specify hostbus, hostaddr instead of
hostbus.hostaddr for future extension

 docs/man/xl.cfg.pod.5| 81 
 tools/libxl/libxl_create.c   | 73 +--
 tools/libxl/libxl_device.c   |  4 +++
 tools/libxl/libxl_internal.h |  8 +
 tools/libxl/xl_cmdimpl.c | 54 -
 5 files changed, 216 insertions(+), 4 deletions(-)

diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5
index b63846a..f24c008 100644
--- a/docs/man/xl.cfg.pod.5
+++ b/docs/man/xl.cfg.pod.5
@@ -722,6 +722,87 @@ Note this may be overridden by rdm_policy option in PCI 
device configuration.
 
 =back
 
+=item