Re: [PATCH] qemu: don't assign a PCI address to 'none' USB controller

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

 



On 04/26/2013 11:04 AM, Ján Tomko wrote:
> ---
>  src/qemu/qemu_command.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index 9737609..126cced 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -1925,6 +1925,11 @@ qemuAssignDevicePCISlots(virDomainDefPtr def,
>          if (def->controllers[i]->type == VIR_DOMAIN_CONTROLLER_TYPE_PCI)
>              continue;
>  
> +        /* USB controller model 'none' doesn't need a PCI address */
> +        if (def->controllers[i]->type == VIR_DOMAIN_CONTROLLER_TYPE_USB &&
> +            def->controllers[i]->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE)
> +            continue;

ACK - something that isn't there can't use an address :)

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]