]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix KVM features with QEMU 4.1
authorJiri Denemark <jdenemar@redhat.com>
Fri, 26 Jul 2019 14:34:55 +0000 (16:34 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 29 Jul 2019 13:41:51 +0000 (15:41 +0200)
commit4c62ed606895018aaf9f9f1d2137fcea3918756a
tree281b66e0251fd0e0a189d04c8dd66e225e2d2bcf
parent9e6172937f8d8f832359dd5eeb4e7c92f9defcbf
qemu: Fix KVM features with QEMU 4.1

Originally the names of the KVM CPU features were only used internally
for looking up their CPUID bits. So we used "__kvm_" prefix for them to
make sure the names do not collide with normal CPU features stored in
our CPU map.

But with QEMU 4.1 we check which features were enabled or disabled by a
freshly started QEMU process using their names rather than their CPUID
bits (mostly because of MSR features). Thus we need to change our made
up internal names into the actual names used by QEMU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Tested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu_x86_data.h
src/qemu/qemu_command.c