]> xenbits.xensource.com Git - libvirt.git/commit
allow memballoon type of none to desactivate it
authorDaniel Veillard <veillard@redhat.com>
Wed, 11 Aug 2010 09:28:17 +0000 (11:28 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 11 Aug 2010 09:28:17 +0000 (11:28 +0200)
commit79c27a620a129dc77bb91a61c208d0a325fd7c3f
tree1e8aecae3f3197e9552b538a0b884d333ebd919a
parent0495fe59ad0b761681b7227db91d8ee2d212efe1
allow memballoon type of none to desactivate it

  The balloon device is automatically added to qemu guests if supported,
but it may be useful to desactivate it. The simplest to not change the
existing behaviour is to allow
  <memballoon type="none"/>
as an extra option to desactivate it (it is automatically added if the
memballoon construct is missing for the domain).
The following simple patch just adds the extra option and does not
change the default behaviour but avoid creating a balloon device if
type="none" is used.

* docs/schemas/domain.rng: add the extra type attribute value
* src/conf/domain_conf.c src/conf/domain_conf.h: add the extra enum
  value
* src/qemu/qemu_conf.c: if enum is NONE, don't activate the device,
  i.e. don't pass the args to qemu/kvm
docs/schemas/domain.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_conf.c