]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Rearrange VGA/IDE controller address reservation
authorDaniel P. Berrange <dan@berrange.com>
Thu, 15 Jul 2010 13:44:18 +0000 (14:44 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 21 Jul 2010 10:30:26 +0000 (11:30 +0100)
commitccd2c82ee4564110d3a861ee65a1f9bc3f8ffb2d
tree4f59302c56cb47c272e090bf6f3013788cf7139f
parent021251bd7d2d6fa628f045daf73ac676331e39a4
Rearrange VGA/IDE controller address reservation

The first VGA and IDE devices need to have fixed PCI address
reservations. Currently this is handled inline with the other
non-primary VGA/IDE devices. The fixed virtio balloon device
at slot 3, ensures auto-assignment skips the slots 1/2. The
virtio address will shortly become configurable though. This
means the reservation of fixed slots needs to be done upfront
to ensure that they don't get re-used for other devices.

This is more or less reverting the previous changeset:

  commit 83acdeaf173b2a1206b755c1ab317cac36facd90
  Author: Daniel P. Berrange <berrange@redhat.com>
  Date:   Wed Feb 3 16:11:29 2010 +0000

  Fix restore of QEMU guests with PCI device reservation

The difference is that this time, instead of unconditionally
reserving the address, we only reserve the address if it was
initially type=none. Addresses of type=pci were handled
earlier in process by qemuDomainPCIAddressSetCreate(). This
ensures restore step doesn't have problems

* src/qemu/qemu_conf.c: Reserve first VGA + IDE address
  upfront
src/qemu/qemu_conf.c