KVM: X86: Introduce kvm_get_msr_feature()
authorWanpeng Li <wanpengli@tencent.com>
Wed, 28 Feb 2018 06:03:30 +0000 (14:03 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 1 Mar 2018 21:32:44 +0000 (22:32 +0100)
commit66421c1ec340096b291af763ed5721314cdd9c5c
tree38d5e4adcc54d8685f34d15d857c57a9006d91a4
parentd1d93fa90f1afa926cb060b7f78ab01a65705b4d
KVM: X86: Introduce kvm_get_msr_feature()

Introduce kvm_get_msr_feature() to handle the msrs which are supported
by different vendors and sharing the same emulation logic.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Liran Alon <liran.alon@oracle.com>
Cc: Nadav Amit <nadav.amit@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c