On Saturday 05 November 2005 11:10 am, Fabrice Bellard wrote:
1) The host OS must not use the USB device. It means in particular that
no host OS driver must be present for that device. The solution I am
using is to rename the host kernel module "usb-storage.o" to
"usb-storage.o.disabled" so that it is not loaded by Linux. Then QEMU
can exclusively access to the corresponding host storage USB device. The
same apply to every other type of USB devices.
usb devfs has a disconnect ioctl (USBDEVFS_DISCONNECT) which
allows you to disconnect a single device from a driver.
A suggestion is to hook the interface up to qemu monitor. Then you would
be able to list usb devices and then claim only the ones you want to use.