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)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Sep 2018 22:26:43 +0000 (00:26 +0200)
commitd35b34a9a70edae7ef923f100e51b8b5ae9fe899
treed650446ae38c7f5840a6a2155ec6d353849f3947
parentd1766202779e81d0f2a94c4650a6ba31497d369d
kvm: mmu: Don't read PDPTEs when paging is not enabled

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>
arch/x86/kvm/x86.c