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

2006-12-06 Thread Lonnie Mendez
On Thu, 2006-12-07 at 14:43 +0800, Yu, Xiaoyang wrote: > Thanks a lot! So we need to use "usb_del bus.addr" to remove the device from > the guest. So I must get the bus.addr information for the device first. But I > cannot do so by just add code into usb_device_add() function, because the > bus.

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

2006-12-06 Thread Yu, Xiaoyang
EMU source code suitable for logging the bus.addr information? Thanks Xiaoyang -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lonnie Mendez Sent: 2006年12月7日 14:23 To: qemu-devel@nongnu.org Subject: RE: [Qemu-devel] Bus number and address changes after us

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

2006-12-06 Thread Lonnie Mendez
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'

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

2006-12-06 Thread Yu, Xiaoyang
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lonnie Mendez Sent: 2006年12月7日 12:25 To: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Bus number and address changes after usb_add? On Thu, 2006-12-07 at 12:18 +0800, Yu, Xiaoyang wrote: > After add a USB device by “usb_add”, I can view it

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

2006-12-06 Thread Lonnie Mendez
On Thu, 2006-12-07 at 12:18 +0800, Yu, Xiaoyang wrote: > After add a USB device by “usb_add”, I can view it by “info usb”. It > shows the bus number and address. > > > > As shown in vl.c, it seems that usb_info() is called when issue “info > usb”, and usb_device_add() is called when issue “usb_

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

2006-12-06 Thread Yu, Xiaoyang
After add a USB device by "usb_add", I can view it by "info usb". It shows the bus number and address. As shown in vl.c, it seems that usb_info() is called when issue "info usb", and usb_device_add() is called when issue "usb_add". But if I add call to usb_info() in the end of usb_device_a

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

2006-12-06 Thread Yu, Xiaoyang
After add a USB device by "usb_add", I can view it by "info usb". It shows the bus number and address. As shown in vl.c, it seems that usb_info() is called when issue "info usb", and usb_device_add() is called when issue "usb_add". But if I add call to usb_info() in the end of usb_device_a