From: George Dunlap <george.dunlap@eu.citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"sstanisi@cbnco.com" <sstanisi@cbnco.com>,
Anthony Perard <anthony.perard@citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v6 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
Date: Thu, 25 Apr 2013 10:56:14 +0100 [thread overview]
Message-ID: <5178FDBE.20509@eu.citrix.com> (raw)
In-Reply-To: <1366875898.20256.398.camel@zakaz.uk.xensource.com>
On 04/25/2013 08:44 AM, Ian Campbell wrote:
> On Wed, 2013-04-24 at 18:49 +0100, Pasi Kärkkäinen wrote:
>> On Wed, Apr 24, 2013 at 04:51:46PM +0100, Ian Campbell wrote:
>>> On Wed, 2013-04-24 at 16:45 +0100, George Dunlap wrote:
>>>> On 24/04/13 14:51, Ian Campbell wrote:
>>>>> On Wed, 2013-04-24 at 14:32 +0100, George Dunlap wrote:
>>>>>
>>>>>> There's also the translation of "AUTO" protocol into PV or HVM, and
>>>>> This made me wonder, how is libxl_device_usb_protocol different from the
>>>>> type of the domain? Can you (or is the intention) use PV with an HVM
>>>>> domain? I suppose DEVICEMODEL is HVM only?
>>>>
>>>> The intention is to allow HVM guests to use either DEVICEMODEL or PV as
>>>> protocols.
>>>>
>>>>> Is "protocol" really the right word for this? I'd half expect it to mean
>>>>> USB 1.0 vs 2.0 vs 3.0. For NICS we call this Enum libxl_nic_type. FWIW
>>>>
>>>> But we're already using 'type' for the device type. :-)
>>>>
>>>> I think for nics it makes sense to call it a 'type', as for NICs we
>>>> refer to the *emulated device* as a NIC, or the PV device as a NIC,
>>>> which is then (virtually) plugged into a bridge somewhere. But in this
>>>> case I don't think it makes sense, as it's the actual host device you
>>>> care about, and the way the guest talks to it is either via PV or qemu.
>>>> "Protocol" may not be the very best option, but at least it gives you
>>>> the idea of a conduit.
>>>
>>> It's more like a "method" then?
>>>
>>
>> "protocol" reminded me about something.. when using devicemodel/qemu method,
>> do we currently allow specifying if the usb device should be connected to
>> usb2 (ehci) or usb3 (xhci) virtual controller?
>
> Perhaps EMU_USB2 and EMU_USB3 would be preferable names to DEVICEMODEL?
>
> Not sure which the current devicemodel mode uses, the code doesn't
> appear to ask qemu for one or the other explicitly, I'd imagine the
> default would be USB2? The qmeu manpage only mentions UHCI.
The purpose qemu's manpage / online docs appear mainly to be to distract
and mislead unbelievers, making sure that only the truly worthy learn
its secrets. A more useful document is hidden inside qemu's source
tree: docs/qdev-device-use.txt. It sort of hints at the idea of being
able to attach a USB device to a specific bus, but doesn't go into
detail about how it might actually be done.
But in any case, we now seem to be getting back into "exposing too much
of qemu's internals to the user". Suppose you switch from having only a
USB2 controller to a USB3 controller -- do you really want to have the
user or the toolstack keep track of which is which?
If you just tell qemu to plug stuff in, it will manage the topology
automatically (apparently including things like adding a USB hub
on-the-fly). That is I think the only functionality the vast majority
of users will want to have. If we ever get to the point of needing to
specify that kind of topology, I think we should just add new flags /
features at that time.
-George
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-04-25 9:56 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 15:59 [PATCH v6 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest George Dunlap
2013-04-19 15:59 ` [PATCH v6 2/2] xl: Add commands for usb hot-plug George Dunlap
2013-04-24 12:45 ` Ian Campbell
2013-04-25 10:16 ` George Dunlap
2013-04-25 11:38 ` Ian Campbell
2013-04-25 11:57 ` George Dunlap
2013-04-25 12:04 ` George Dunlap
2013-04-25 12:08 ` Ian Campbell
2013-04-25 12:14 ` George Dunlap
2013-04-25 12:21 ` George Dunlap
2013-04-25 12:45 ` Ian Campbell
2013-04-25 12:47 ` Ian Campbell
2013-04-25 13:42 ` Pasi Kärkkäinen
2013-04-25 13:48 ` George Dunlap
2013-04-24 11:56 ` [PATCH v6 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest Ian Campbell
2013-04-24 12:48 ` George Dunlap
2013-04-24 12:53 ` Ian Campbell
2013-04-24 13:37 ` George Dunlap
2013-04-24 13:53 ` Ian Campbell
2013-04-24 12:38 ` Ian Campbell
2013-04-24 13:32 ` George Dunlap
2013-04-24 13:47 ` Ian Campbell
2013-04-24 13:51 ` Ian Campbell
2013-04-24 15:45 ` George Dunlap
2013-04-24 15:51 ` Ian Campbell
2013-04-24 17:49 ` Pasi Kärkkäinen
2013-04-25 7:44 ` Ian Campbell
2013-04-25 7:54 ` Pasi Kärkkäinen
2013-04-25 9:56 ` George Dunlap [this message]
2013-04-25 10:17 ` Pasi Kärkkäinen
2013-04-25 14:19 ` Anthony PERARD
2013-04-25 14:31 ` George Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5178FDBE.20509@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=roger.pau@citrix.com \
--cc=sstanisi@cbnco.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).