qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Qemu-devel] Bus number and address changes after usb_add?


From: Lonnie Mendez
Subject: RE: [Qemu-devel] Bus number and address changes after usb_add?
Date: Thu, 07 Dec 2006 00:22:45 -0600

On Thu, 2006-12-07 at 14:11 +0800, Yu, Xiaoyang wrote:
> I see. Guest OS will assign the USB device an address later. Is it possible 
> to store this new address in host OS? Then when the USB device is unplugged, 
> host OS can send "usb_del" command to QEMU to automatically delete the device.

It's possible (on linux host) to register a signal with the kernel that
will trigger when the device is disconnected from the host system.  From
the signal handler the device can then be removed from the guest.  See
USBDEVFS_DISCSIGNAL ioctl in usbdevice_fs.h.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]