From: Lonnie Mendez <lmendez19@austin.rr.com>
To: qemu-devel@nongnu.org
Subject: RE: [Qemu-devel] Bus number and address changes after usb_add?
Date: Thu, 07 Dec 2006 00:22:45 -0600 [thread overview]
Message-ID: <1165472565.19968.16.camel@vaio> (raw)
In-Reply-To: <A3C277AA6499944188602D8A7168B9A701332D0F@bjsmsx401>
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.
next prev parent reply other threads:[~2006-12-07 6:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 6:11 [Qemu-devel] Bus number and address changes after usb_add? Yu, Xiaoyang
2006-12-07 6:22 ` Lonnie Mendez [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-07 6:43 Yu, Xiaoyang
2006-12-07 7:04 ` Lonnie Mendez
2006-12-07 4:20 Yu, Xiaoyang
2006-12-07 4:18 Yu, Xiaoyang
2006-12-07 4:25 ` Lonnie Mendez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165472565.19968.16.camel@vaio \
--to=lmendez19@austin.rr.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).