]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Replace caps check for QEMU_CAPS_MACH_VIRT_GIC_VERSION by arch check
authorPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 15:11:38 +0000 (16:11 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Mar 2023 11:26:32 +0000 (12:26 +0100)
commitd81db7f7b29cc7d1de367590cc7ba0efc8b49e3e
tree7997a6421c4c3de6e5596d36dfa0332108eee879
parentf2212f4c2af9bbeea4d77247615dd53203442345
qemu: command: Replace caps check for QEMU_CAPS_MACH_VIRT_GIC_VERSION by arch check

QEMU_CAPS_MACH_VIRT_GIC_VERSION is always asserted for VIR_ARCH_AARCH64.

Note that this patch is a direct conversion of the logic originally
residing in the capabilities code. A better coversion would be (based on
whether it is available for just AARCH64 or also ARM) to base it on the
guest architecture.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c