KVM: x86: optimize check for valid PAT value
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Apr 2019 09:41:40 +0000 (11:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:18 +0000 (08:22 +0200)
commit74fd8aae19d996c62df9f7919aadfa4744f5c5ad
treed1d7d4f394657f6607d28d71a8b551ed1211ab92
parent812810399999a673d30f9d04d38659030a28051a
KVM: x86: optimize check for valid PAT value

[ Upstream commit 674ea351cdeb01d2740edce31db7f2d79ce6095d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/mtrr.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.h