From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH V7 6/7] xl: add usb-assignable-list command Date: Wed, 7 Oct 2015 15:35:23 +0100 Message-ID: References: <1443147102-6471-1-git-send-email-cyliu@suse.com> <1443147102-6471-7-git-send-email-cyliu@suse.com> <5613FCE7.5080002@citrix.com> <1444207207.5302.269.camel@citrix.com> <1444216188.5302.333.camel@citrix.com> <5614FFF1.20304@citrix.com> <56150132.1040305@suse.com> <1444217988.1410.15.camel@citrix.com> <561506C5.6050205@suse.com> <1444218902.1410.25.camel@citrix.com> <56150A6C.2080101@suse.com> <56151C3E.4000504@citrix.com> <5615241B.5@suse.com> <1444226703.1410.55.camel@citrix.com> <56152BA4.4080806@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <56152BA4.4080806@suse.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: Juergen Gross Cc: Wei Liu , Ian Campbell , Ian Jackson , Chunyan Liu , George Dunlap , Jim Fehlig , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, Oct 7, 2015 at 3:26 PM, Juergen Gross wrote: > On 10/07/2015 04:05 PM, Ian Campbell wrote: >> >> On Wed, 2015-10-07 at 15:54 +0200, Juergen Gross wrote: >> >>> Hmm, technically all unassigned USB-devices are usable from Dom0. So why >>> not list them there. >> >> >> I think you'd at least want to distinguish USB devices available to dom0 >> as >> via a PCI host controller from those which are available via pvusb. > > > Yeah, the non-pvusb devices should be listed as "assignable" if they > are handled by a driver domain. > >> This also doesn't quite work when driver domains are in the picture. > > > --host does? > > TBH: driver domains seem to be a reason to not support the --host > option. So the options are --all or no special option. I'm still > fine with both. I think the idea is that --host doesn't pretend to. But yes, if we made it clear which devices were *assigned* to dom0 from another VM, and which were *available from* dom0 to be assigned, then actually that could be extended at some point in the future to include devices available *from* driver domains. Alternately, perhaps we should just have # xl usb-available [domain] Which will tell you the usb devices available to be assigned from that domain; or all available usb devices from all driver domains. And of course for the time being it only works on domain 0, but future functionality could implement it for driver domains as well. > BTW: Do Xen concepts allow to assign a USB-device via pvUSB from a > driver domain to Dom0? Sure, why not? -George