From: Rusty Russell Date: Mon, 23 Jul 2007 07:11:02 +0000 (+1000) Subject: KVM: Return if the pdptrs are invalid when the guest turns on PAE. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=310bc76c2b6829cd280def4927b7ccf8b8c795df;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git KVM: Return if the pdptrs are invalid when the guest turns on PAE. Don't fall through and turn on PAE in this case. Signed-off-by: Rusty Russell Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index f0fc8d9e71e6..093cea36194b 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c @@ -558,6 +558,7 @@ void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) && !load_pdptrs(vcpu, vcpu->cr3)) { printk(KERN_DEBUG "set_cr4: #GP, pdptrs reserved bits\n"); inject_gp(vcpu); + return; } if (cr4 & X86_CR4_VMXE) {