]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use '-machine hpet=off' instead of '-no-hpet'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jan 2023 09:03:06 +0000 (10:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jan 2023 15:44:09 +0000 (16:44 +0100)
commit24cc9cda82693fede5a421f0812e118a575a722f
tree0a2cd189bd78d06c3409cc8a530167929bb385cf
parent3c508e7d4310aeb8c65076017c90569cc4b9ea55
qemu: Use '-machine hpet=off' instead of '-no-hpet'

qemu is about to deprecate the '-no-hpet' option in favor of configuring
the timer via '-machine'.

Use the QEMU_CAPS_MACHINE_HPET capability to switch to the new syntax
and mask out the old QEMU_CAPS_NO_HPET capability at the same time to
prevent using the old syntax.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_command.c
tests/qemucapabilitiesdata/caps_8.0.0.x86_64.xml
tests/qemuxml2argvdata/q35-virt-manager-basic.x86_64-latest.args
tests/qemuxml2argvdata/x86_64-pc-graphics.x86_64-latest.args
tests/qemuxml2argvdata/x86_64-pc-headless.x86_64-latest.args
tests/qemuxml2argvdata/x86_64-q35-graphics.x86_64-latest.args
tests/qemuxml2argvdata/x86_64-q35-headless.x86_64-latest.args