]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add more translations to virQEMUCapsCPUFeatureTranslationTable
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Oct 2024 12:31:38 +0000 (14:31 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Oct 2024 22:43:35 +0000 (00:43 +0200)
commitca8c0862acee6f9d6fc7a73dd5ffdf4e8d53409b
treeac5ab1ab1b05fbfc6cbb6c99d074c28d01385b21
parent5148f64a3cd77cd3dca3eb82c826c738fc1fbccf
qemu: Add more translations to virQEMUCapsCPUFeatureTranslationTable

Hyper-V enlightenment features can have hyphenated names which libvirt
exposes under Hyper-V features with underscored names.  When libvirt
checks that all requested features were enabled by QEMU (on x86
architectures) it first queries for all those that QEMU knows and
compiles them in a map while using the virQEMUCapsCPUFeaturesX86 for
translations.

Some features (well, all Hyper-V features with underscores) were not
present in the translation table and were incorrectly reported as not
enabled, consequently failing the start of any such domain.

Add all hyphenated/underscored Hyper-V feature names into the
aforementioned translation table.  That way domains with these features
enabled can be started when QEMU and the kernel support them.

Resolves: https://issues.redhat.com/browse/RHEL-7122
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c