OSDN Git Service

kvm: mmu: Don't read PDPTEs when paging is not enabled
authorJunaid Shahid <junaids@google.com>
Tue, 12 Nov 2019 00:17:05 +0000 (16:17 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Nov 2019 09:27:47 +0000 (10:27 +0100)
commit411b1be44169c62006c31261d2a9ac1385e348cd
tree1a6253a36446e95df472120014ac9861e1cb53fe
parent6186d66524c25c70d634206dd460bd6388e7e9f9
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