]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't break domain with 0:0:2.0 assigned to anything but VGA
authorJiri Denemark <jdenemar@redhat.com>
Tue, 17 Jan 2012 15:21:38 +0000 (16:21 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Jan 2012 20:01:23 +0000 (21:01 +0100)
commit9619d8a62e75d3af891db81bf3ee254ef7bfcd0f
treebd142f238758903f7c552f424875c6daf40a3f6a
parentdccf45f376a11ae175267e4f68924ce713b639d8
qemu: Don't break domain with 0:0:2.0 assigned to anything but VGA

In the past we didn't reserve 0:0:2.0 PCI address if there was no video
device assigned to a domain, which made it impossible to add a video
device later on. So we fixed it (commit v0.9.0-37-g7b2cac1) by always
reserving that address. However, that breaks existing domains without
video devices that already have another device assigned to the
problematic address.

This patch reserves address 0:0:2.0 only in case it was not explicitly
assigned to another device, which means libvirt will try to keep this
address free and will not automatically assign it new devices. But
existing domains for which older libvirt already assigned the address to
a non-video device will keep working as they used to work before 0.9.1.
Moreover, users who want to create a domain without a video device and
use its address for another device may do so by explicitly configuring
the PCI address in domain XML.
src/qemu/qemu_command.c