KVM: x86: Expand build-time assertion on reverse CPUID usage
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 17 Dec 2019 21:32:41 +0000 (13:32 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jan 2020 12:58:39 +0000 (13:58 +0100)
commita7c48c3f56db8d18d15ee6d8c2c5e2da447c77cc
treea9bbea9cf1a08d2cbfebdb733453a424ea471fe0
parentdaa0d8c3a48732e5f64c69cca4c597cab1dfd455
KVM: x86: Expand build-time assertion on reverse CPUID usage

Add build-time checks to ensure KVM isn't trying to do a reverse CPUID
lookup on Linux-defined feature bits, along with comments to explain
the gory details of X86_FEATUREs and bit().

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h