From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: usbdevice option and specifying a specific device Date: Tue, 30 Jul 2013 00:18:15 +0300 Message-ID: <20130729211815.GY2924@reaktio.net> References: <51F6BFDD.8070500@bobich.net> <51F6CA26.6060000@bobich.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <51F6CA26.6060000@bobich.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gordan Bobic Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, Jul 29, 2013 at 09:01:42PM +0100, Gordan Bobic wrote: > On 07/29/2013 08:17 PM, Gordan Bobic wrote: > >I'm trying to use usbdevice option in the config file (instead of > >passing USB PCI devices), and the documentation says to specify the > >device in the form host:xxxx:yyyy where xxxx:yyyy is the USB > >vendor:device ID. > > > >Except there is a problem with this - I have two identical keyboards and > >mice, one set of which I want to pass to the host, and the other set > >which I want to pass to the guest. Since the xxxx:yyyy will be the same > >for both devices of each type, how can I deterministically specify which > >I want to keep on the host and which I want to pass to the guest? > > > >Is there a way to use something like BusID:DeviceID instead in order to > >provide a more deterministic outcome? > > On a related note, the first device gets passed through > successfully, but the second fails with a warning in qemu-dm log: > > Warning: could not add USB device host:1532:002f > > My usbdevice list is: > > usbdevice = [ 'host:045e:00dd', 'host:1532:002f' ] > > I cannot see anything more explanator in any of the other logs - > what should I be looking for? > You forgot to mention all the needed basic info.. What Xen version? Are you using xl? -- Pasi