OSDN Git Service

KVM: nVMX: handle page fault in vmread fix
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / x86 / kvm / vmx.c
index 343c8dd..f8f9d1b 100644 (file)
@@ -7276,7 +7276,7 @@ static int handle_vmread(struct kvm_vcpu *vcpu)
                /* _system ok, as nested_vmx_check_permission verified cpl=0 */
                if (kvm_write_guest_virt_system(vcpu, gva, &field_value,
                                                (is_long_mode(vcpu) ? 8 : 4),
-                                               NULL))
+                                               &e))
                        kvm_inject_page_fault(vcpu, &e);
        }