Skip to content
Snippets Groups Projects
Commit ca8c0862 authored by Martin Kletzander's avatar Martin Kletzander :flag_cz:
Browse files

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: default avatarMartin Kletzander <mkletzan@redhat.com>
Reviewed-by: default avatarJiri Denemark <jdenemar@redhat.com>
parent 5148f64a
No related branches found
No related tags found
No related merge requests found
......@@ -3583,6 +3583,9 @@ virQEMUCapsCPUFeatureTranslationTable virQEMUCapsCPUFeaturesX86[] = {
{"perfctr_nb", "perfctr-nb"},
{"tsc_adjust", "tsc-adjust"},
{"vmx-invvpid-single-context-noglobals", "vmx-invept-single-context-noglobals"},
{"hv-vendor_id", "hv-vendor-id"},
{"hv-emsr_bitmap", "hv-emsr-bitmap"},
{"hv-xmm_input", "hv-xmm-input"},
{NULL, NULL}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment