]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add a capability flag for -no-acpi
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 20 Dec 2011 01:08:29 +0000 (12:08 +1100)
committerEric Blake <eblake@redhat.com>
Tue, 20 Dec 2011 19:33:55 +0000 (12:33 -0700)
commit5abbe04d68c7dadd1d593fb009288001de82fc34
tree9e558c3b61a020b148412c9f15b764b46ee14492
parent9da9a3b04723cf8f3303255bb7191861540a3e21
qemu: Add a capability flag for -no-acpi

Currently non-x86 guests must have <acpi/> defined in <features> to
prevent libvirt from running qemu with -no-acpi. Although it works, it
is a hack.

Instead add a capability flag which indicates whether qemu understands
the -no-acpi option. Use it to control whether libvirt emits -no-acpi.

Current versions of qemu always display -no-acpi in their help output,
so this patch has no effect. However the development version of qemu
has been modified such that -no-acpi is only displayed when it is
actually supported.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemuhelptest.c
tests/qemuxml2argvtest.c
tests/qemuxmlnstest.c