KVM: x86/mmu: Allocate PAE root array when using SVM's 32-bit NPT
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 13 Jun 2019 17:22:23 +0000 (10:22 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jun 2019 14:11:53 +0000 (16:11 +0200)
commitb6b80c78af838bef17501416d5d383fedab0010a
tree76b590a99b933501b98e51585cf6f2d42fc3c8d1
parent6ca00dfafda731d6eafdc164326e7336cdf42d74
KVM: x86/mmu: Allocate PAE root array when using SVM's 32-bit NPT

SVM's Nested Page Tables (NPT) reuses x86 paging for the host-controlled
page walk.  For 32-bit KVM, this means PAE paging is used even when TDP
is enabled, i.e. the PAE root array needs to be allocated.

Fixes: ee6268ba3a68 ("KVM: x86: Skip pae_root shadow allocation if tdp enabled")
Cc: stable@vger.kernel.org
Reported-by: Jiri Palecek <jpalecek@web.de>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c