From: Ian Campbell <ian.campbell@citrix.com>
To: George Dunlap <george.dunlap@eu.citrix.com>
Cc: Lars Kurth <lars.kurth@citrix.com>,
Ian Jackson <ian.jackson@citrix.com>,
Simon Cao <caobosimon@gmail.com>, Chunyan Liu <cyliu@suse.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH RFC V2 3/5] libxl: add pvusb API
Date: Mon, 9 Mar 2015 10:41:35 +0000 [thread overview]
Message-ID: <1425897695.21353.10.camel@citrix.com> (raw)
In-Reply-To: <54FD7356.1050501@eu.citrix.com>
On Mon, 2015-03-09 at 10:17 +0000, George Dunlap wrote:
> On 03/09/2015 09:39 AM, Ian Campbell wrote:
> > On Fri, 2015-03-06 at 16:50 +0000, George Dunlap wrote:
> >>> +libxl_device_usb *
> >>> +libxl_device_usb_assignable_list(libxl_ctx *ctx, int *num)
> >>
> >> I'm a bit ambivalent about this one. For people using xl, "lsusb"
> >> should be just fine. Is anyone building a toolstack on top of libxl
> >> directly going to need this functionality? Would libvirt use this
> >> functionality, for instance, or would it use libusb? Or just leave
> >> that to the caller?
> >
> > Do USB devices not need to be bound to some sort of placeholder driver
> > (a la xen-pciback) or at least unbound from their actual driver before
> > they can be assigned to a guest?
> >
> > If so then I would expect a function such as this to list the subset of
> > devices which have been correctly configured for USB passthrough, which
> > would be a subset of the output of lsusb I think.
>
> Are you saying you think this is what the function *should* do, or are
> you saying that you think it should be renamed because that's what the
> name would lead you to expect it did?
I was saying that's what I would have expected, but also asking how USB
passthru worked because I didn't know.
> This code, following xend's lead, seems to do the plugging stuff
> automatically; similar to the "seize=1" flag I added for PCI devices. I
> think this is probably the best interface here; the reason it's not
> enabled by default in the PCI case is that it's so dangerous (you might
> yank out your own hard disk by accident).
>
> Given this "auto-seize" is what xend did, and what qemu does (and what
> VirtualBox does, and what presumably every other virtualization-related
> software does), I think adding the "make assignable" step would be
> unnecessary and confusing.
I agree, given non-optional auto-seize I'm not sure having a function to
enumerate the USB devices is all that useful, unless we happen to need
it internally and it is convenient to expose it.
However, it might be the sort of thing we could put in libxlutil, since
it is the sort of thing every toolstack would have to write for itself
otherwise.
Ian.
next prev parent reply other threads:[~2015-03-09 10:41 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 8:28 [PATCH RFC V2 0/5] pvusb toolstack work Chunyan Liu
2015-01-19 8:28 ` [PATCH RFC V2 1/5] libxl: add pvusb definitions Chunyan Liu
2015-03-03 11:10 ` Ian Campbell
2015-03-03 16:45 ` George Dunlap
2015-03-04 7:26 ` Chun Yan Liu
2015-03-04 10:00 ` Ian Campbell
2015-03-04 12:26 ` George Dunlap
2015-03-04 12:33 ` Ian Campbell
2015-03-05 5:04 ` Chun Yan Liu
2015-03-03 17:15 ` George Dunlap
2015-03-04 8:28 ` Chun Yan Liu
2015-03-04 14:41 ` George Dunlap
2015-03-05 6:07 ` Chun Yan Liu
2015-01-19 8:28 ` [PATCH RFC V2 2/5] libxl: export some functions for pvusb use Chunyan Liu
2015-03-03 11:10 ` Ian Campbell
2015-01-19 8:28 ` [PATCH RFC V2 3/5] libxl: add pvusb API Chunyan Liu
2015-01-28 15:54 ` Ian Campbell
2015-01-29 3:24 ` Chun Yan Liu
2015-02-10 10:08 ` Jürgen Groß
2015-02-10 16:01 ` Jürgen Groß
2015-03-03 11:38 ` Ian Campbell
2015-03-04 7:47 ` Chun Yan Liu
2015-03-06 16:50 ` George Dunlap
2015-03-09 9:39 ` Ian Campbell
2015-03-09 10:17 ` George Dunlap
2015-03-09 10:41 ` Ian Campbell [this message]
2015-03-20 9:37 ` Chun Yan Liu
2015-03-17 14:03 ` Juergen Gross
2015-01-19 8:28 ` [PATCH RFC V2 4/5] xl: add pvusb commands Chunyan Liu
2015-02-10 6:25 ` Jürgen Groß
2015-03-03 11:43 ` Ian Campbell
2015-03-04 7:48 ` Chun Yan Liu
2015-03-06 17:25 ` George Dunlap
2015-03-20 9:02 ` Chun Yan Liu
2015-01-19 8:28 ` [PATCH RFC V2 5/5] domcreate: support pvusb in configuration file Chunyan Liu
2015-03-03 11:44 ` Ian Campbell
2015-01-28 15:51 ` [PATCH RFC V2 0/5] pvusb toolstack work Ian Campbell
2015-01-28 16:07 ` Pasi Kärkkäinen
2015-01-28 16:17 ` Ian Campbell
2015-01-29 3:22 ` Chun Yan Liu
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=1425897695.21353.10.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=caobosimon@gmail.com \
--cc=cyliu@suse.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@citrix.com \
--cc=lars.kurth@citrix.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 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.