KVM: x86: use general helpers for some cpuid manipulation
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 4 Aug 2017 22:12:50 +0000 (00:12 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 Aug 2017 14:16:30 +0000 (16:16 +0200)
commit1b4d56b86a370a3785a33eba23e2e3009f5a03af
tree5aa5f21a98a2127c47a54b17a3404cf277afeda6
parentd6321d493319bfd406c484e8359c6101cbda39d3
KVM: x86: use general helpers for some cpuid manipulation

Add guest_cpuid_clear() and use it instead of kvm_find_cpuid_entry().
Also replace some uses of kvm_find_cpuid_entry() with guest_cpuid_has().

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c