This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


RE: [Xen-devel] usb passthrough

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] usb passthrough
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 2009 12:48:36 +1000
Delivery-date: Wed, 22 Jul 2009 19:49:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D016DDE00@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D016DDE00@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoLOmouLkFugtyVRXqBQmGGIxurkgABG7dg
Thread-topic: [Xen-devel] usb passthrough
> If I understand the docs
> upport-for-Xen-td22550607.html), I can't have a USB harddisk used by
> Dom0 and also pass through another USB harddisk to DomU, because Dom0
> will claim the device.
> Is this a fundamental issue that can't be solved without a lot of
> mucking around or is there an easier way around it?

I have found that I can do the following:

echo -n "1-7:1.0" >/sys/bus/usb/drivers/usb-storage/unbind
echo -n "1-7:1.0" >/sys/bus/usb/drivers/usbback/bind

which will cause usb-storage to unbind from the device and then get
usbback to bind to it. Not completely ideal but it should work for the
testing I want to do.

It would be nicer if we could do something like "echo -n '1-7:1.0'
>/sys/bus/usb/drivers/usb-storage/never_bind" or something to
permanently block a driver from binding to a specific device, but that's
a post for another list :)


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>