From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= 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:54:31 +0300 Message-ID: <20130425075431.GM11427@reaktio.net> References: <1366387166-21197-1-git-send-email-george.dunlap@eu.citrix.com> <1366807135.20256.328.camel@zakaz.uk.xensource.com> <5177DF05.50907@eu.citrix.com> <1366811466.20256.363.camel@zakaz.uk.xensource.com> <5177FE14.4010800@eu.citrix.com> <1366818706.20256.376.camel@zakaz.uk.xensource.com> <20130424174910.GF11427@reaktio.net> <1366875898.20256.398.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1366875898.20256.398.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: George Dunlap , Ian Jackson , "xen-devel@lists.xen.org" , "sstanisi@cbnco.com" , Anthony Perard , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Thu, Apr 25, 2013 at 08:44:58AM +0100, Ian Campbell wrote: > On Wed, 2013-04-24 at 18:49 +0100, Pasi K=E4rkk=E4inen 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 f= rom 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 P= V 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 y= ou = > > > > care about, and the way the guest talks to it is either via PV or q= emu. = > > > > "Protocol" may not be the very best option, but at least it gives y= ou = > > > > the idea of a conduit. > > > = > > > It's more like a "method" then? > > > = > > = > > "protocol" reminded me about something.. when using devicemodel/qemu me= thod, > > 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. > I think you're able to set the (virtual) usb controller for each device on = the qemu cmdline, but dunno if qemu has any built-in logic to decide which virtual usb contro= ller to attach to if none is specified.. = like automatically attach usb3 device from the host to virtual usb3/xhci co= ntroller? = -- Pasi =