]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kvm: mmu: Don't read PDPTEs when paging is not enabled
authorJunaid Shahid <junaids@google.com>
Thu, 9 Aug 2018 00:45:24 +0000 (17:45 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Dec 2019 18:01:20 +0000 (18:01 +0000)
commitb5ba61084c7637ccebe4077254993c56881fda25
treea3165c2f37055ae7e3714d4a09fa79fb2a857c69
parent34fbd8eef06551e10e980568836d28c1a42957f5
kvm: mmu: Don't read PDPTEs when paging is not enabled

commit d35b34a9a70edae7ef923f100e51b8b5ae9fe899 upstream.

kvm should not attempt to read guest PDPTEs when CR0.PG = 0 and
CR4.PAE = 1.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kvm/x86.c