Re: [PATCH] KVM: x86: introduce is_pae_paging

2019-06-06 Thread Sean Christopherson
On Thu, Jun 06, 2019 at 06:52:52PM +0200, Paolo Bonzini wrote: > 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. > > Signed-off-by: Paolo Bonzini I considered adding this helper as well, but sh

[PATCH] KVM: x86: introduce is_pae_paging

2019-06-06 Thread Paolo Bonzini
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. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/nested.c | 3 +-- arch/x86/kvm/vmx/vmx.c| 4 ++-- arch/x86/kvm/x86.c| 8 arch/