]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit030df400df12dee14994576d1471bb7bbc814c8c
treea9bbea9cf1a08d2cbfebdb733453a424ea471fe0
parent782873c9a19c3f5371754a21ee351e9ed9acf43a
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