* Default controller type for USB devices
@ 2016-07-29 13:00 Juergen Gross
2016-07-29 13:15 ` George Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Juergen Gross @ 2016-07-29 13:00 UTC (permalink / raw)
To: xen-devel, George.Dunlap@eu.citrix.com
When specifying no USB controller type for a usb device the default is
chosen in libxl__device_usbctrl_setdefault(). For a HVM guest this is
currently the not yet supported "LIBXL_USBCTRL_TYPE_DEVICEMODEL".
Wouldn't it make sense to handle HVM guests in the same way as PV guests
as long as emulated USB devices are not implemented in libxl? Or would
this create future incompatibilities which we don't want to run into?
I'd be happy to send a patch if this is the way to go.
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Default controller type for USB devices
2016-07-29 13:00 Default controller type for USB devices Juergen Gross
@ 2016-07-29 13:15 ` George Dunlap
2016-08-02 10:21 ` Wei Liu
0 siblings, 1 reply; 3+ messages in thread
From: George Dunlap @ 2016-07-29 13:15 UTC (permalink / raw)
To: Juergen Gross, xen-devel, George.Dunlap@eu.citrix.com, Wei Liu,
Ian Jackson
On 29/07/16 14:00, Juergen Gross wrote:
> When specifying no USB controller type for a usb device the default is
> chosen in libxl__device_usbctrl_setdefault(). For a HVM guest this is
> currently the not yet supported "LIBXL_USBCTRL_TYPE_DEVICEMODEL".
>
> Wouldn't it make sense to handle HVM guests in the same way as PV guests
> as long as emulated USB devices are not implemented in libxl? Or would
> this create future incompatibilities which we don't want to run into?
>
> I'd be happy to send a patch if this is the way to go.
I think the big thing is that we can pretty much expect a typical HVM
guest OS to have drivers for the emulated hardware; we *cannot* expect
an average HVM guest OS to have pvfront drivers. This will probably
always apply to Windows, but at the moment it even applies to Linux.
So what happens right now if a user simply asks for a usbctrl for an HVM
guest? They get an error on domain creation. This will hopefully
prompt them to look into either switching back to the old format, or
finding out about pvusb, at which point they can maybe find a pvusbfront
for their OS.
If we make the switch you propose, then the user will create a usb
controller, which will succeed; but if the guest OS doesn't have
pvusbfront drivers (which is likely), then they will mysteriously just
not see the controller and devices they've plugged in.
As a user, I would personally rather have an error message up front
which gives me a clue as to what's wrong, rather than have things
mysteriously not work and spend a lot of time going around trying to
figure out what's wrong.
So I think the current default is the best. Wei / Ian, any thoughts?
-George
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Default controller type for USB devices
2016-07-29 13:15 ` George Dunlap
@ 2016-08-02 10:21 ` Wei Liu
0 siblings, 0 replies; 3+ messages in thread
From: Wei Liu @ 2016-08-02 10:21 UTC (permalink / raw)
To: George Dunlap
Cc: Juergen Gross, xen-devel, Wei Liu, George.Dunlap@eu.citrix.com,
Ian Jackson
On Fri, Jul 29, 2016 at 02:15:24PM +0100, George Dunlap wrote:
> On 29/07/16 14:00, Juergen Gross wrote:
> > When specifying no USB controller type for a usb device the default is
> > chosen in libxl__device_usbctrl_setdefault(). For a HVM guest this is
> > currently the not yet supported "LIBXL_USBCTRL_TYPE_DEVICEMODEL".
> >
> > Wouldn't it make sense to handle HVM guests in the same way as PV guests
> > as long as emulated USB devices are not implemented in libxl? Or would
> > this create future incompatibilities which we don't want to run into?
> >
> > I'd be happy to send a patch if this is the way to go.
>
> I think the big thing is that we can pretty much expect a typical HVM
> guest OS to have drivers for the emulated hardware; we *cannot* expect
> an average HVM guest OS to have pvfront drivers. This will probably
> always apply to Windows, but at the moment it even applies to Linux.
>
> So what happens right now if a user simply asks for a usbctrl for an HVM
> guest? They get an error on domain creation. This will hopefully
> prompt them to look into either switching back to the old format, or
> finding out about pvusb, at which point they can maybe find a pvusbfront
> for their OS.
>
> If we make the switch you propose, then the user will create a usb
> controller, which will succeed; but if the guest OS doesn't have
> pvusbfront drivers (which is likely), then they will mysteriously just
> not see the controller and devices they've plugged in.
>
> As a user, I would personally rather have an error message up front
> which gives me a clue as to what's wrong, rather than have things
> mysteriously not work and spend a lot of time going around trying to
> figure out what's wrong.
>
> So I think the current default is the best. Wei / Ian, any thoughts?
>
Note that I haven't been following closely the HVM/PV USB development,
but I think your analysis makes sense.
Wei.
> -George
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-02 10:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-29 13:00 Default controller type for USB devices Juergen Gross
2016-07-29 13:15 ` George Dunlap
2016-08-02 10:21 ` Wei Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.