OSDN Git Service

KVM: x86: introduce is_pae_paging
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Jun 2019 16:52:44 +0000 (18:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:47:38 +0000 (11:47 +0200)
commitbf03d4f9334728bf7c8ffc7de787df48abd6340e
tree43104c3883abc622b5678b0878dc75b51b6dbd29
parentc27e5b0d139b8728abd6b087cb0d3b2eae6ab079
KVM: x86: introduce is_pae_paging

Checking for 32-bit PAE is quite common around code that fiddles with
the PDPTRs.  Add a function to compress all checks into a single
invocation.

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