KVM: x86: optimize check for valid PAT value
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Apr 2019 09:41:40 +0000 (11:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Apr 2019 13:39:02 +0000 (15:39 +0200)
commit674ea351cdeb01d2740edce31db7f2d79ce6095d
treeaaabcbffb1ebd5543da17d648b3818e5014b01f9
parentf16cb57be82b20c6a00a6bb1750cb77c08e56c1a
KVM: x86: optimize check for valid PAT value

This check will soon be done on every nested vmentry and vmexit,
"parallelize" it using bitwise operations.

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