[libvirt] [PATCH] Fix explicit usage of default video PCI slots

Jiri Denemark jdenemar at redhat.com
Thu Dec 19 17:18:02 UTC 2013


On Thu, Dec 19, 2013 at 17:43:33 +0100, Jano Tomko wrote:
> Don't set the PCI address of primary video to the default
> if it's already occupied by another device.
> 
> Without this, a primary video card that doesn't have an
> address gets the default one on the 1st pass of PCI address
> allocation, even if it's occupied. This address gets picked
> up by the second pass, and a conflict occurs:
> 
> XML error: Attempted double use of PCI slot 0000:00:02.0
> (may need "multifunction='on'" for device on function 0)
> 
> Also fix the test that was supposed to catch this.

And does it actually work after this patch? IIRC, the primary video card
is forced to be at 0000:00:02.0 by QEMU. That is, if this address is
occupied by another device, there should be no way to add a video card.

Jirka




More information about the libvir-list mailing list