[libvirt] Re: [PATCH 02/12] Extend the virDomainDeviceAddress struture to allow USB addresses

Daniel P. Berrange berrange at redhat.com
Thu Dec 17 09:32:48 UTC 2009

On Thu, Dec 10, 2009 at 10:22:22PM +0000, Daniel P. Berrange wrote:
> Introduce a new structure
>       struct _virDomainDeviceUSBAddress {
>         unsigned int bus;
>         unsigned int dev;
>       };
> and plug that into virDomainDeviceAddress. Convert the
> host device USB config to use this new address struct.
> XML looks like
>     <address type='usb' bus='007' dev='003'/>

I think I  will remove this particular patch. After investigating a
little more, it appears that 'dev' is not something you can ever
assign from the host. The guest OS assigns 'dev' on the fly when
it activates the USB device. We might be able to assign 'bus' from
the host, but QEMU doesn't currently allow it. We can always re-add
this patch later when needed.

|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

More information about the libvir-list mailing list