]> git.ipfire.org Git - thirdparty/libvirt.git/commit
S390: Enhance memballoon handling for virtio-s390
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 11 Jan 2013 15:30:07 +0000 (16:30 +0100)
committerEric Blake <eblake@redhat.com>
Wed, 23 Jan 2013 22:08:07 +0000 (15:08 -0700)
commit053e813a302e2c1ba72939252821347f28936b74
treeab6e85be3ddbd94a523417b28fd8b6bc1791eacd
parent7b3a9f754ee26c6f60addb77e6ab2ac6bdcb64a6
S390: Enhance memballoon handling for virtio-s390

The way in that memory balloon suppression was handled for S390
is flawed for a number or reasons.
1. Just preventing the default balloon to be created in the case
   of VIR_ARCH_S390[X] is not sufficient. An explicit memballoon
   element in the guest definition will still be honored, resulting
   both in a -balloon option and the allocation of a PCI bus address,
   neither being supported.
2. Prohibiting balloon for S390 altogether at a domain_conf level
   is no good solution either as there's work in progress on the QEMU
   side to implement a virtio-balloon device, although in
   conjunction with a new machine type. Suppressing the balloon
   should therefore be done at the QEMU driver level depending
   on the present capabilities.

Therefore we remove the conditional suppression of the default
balloon in domain_conf.c.
Further, we are claiming the memballoon device for virtio-s390
during device address assignment to prevent it from being considered
as a PCI device.
Finally, we suppress the generation of the balloon command line option
if this is a virtio-s390 machine.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_command.c