kvm: mmu: Don't read PDPTEs when paging is not enabled
authorJunaid Shahid <junaids@google.com>
Mon, 11 Nov 2019 23:50:19 +0000 (15:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Nov 2019 09:29:33 +0000 (10:29 +0100)
commit7b93d92338a736b87730e2421558d7b5b7d0d5ac
treeb07372115b8c73ee513bcda76c9953bd1994ea29
parent9829ecfd824adba0396cf5fa8dcc813f4c0ff754
kvm: mmu: Don't read PDPTEs when paging is not enabled

[ Upstream commit d35b34a9a70edae7ef923f100e51b8b5ae9fe899 ]

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>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/x86.c