aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index d726dec69529..959cb59cfaeb 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -3153,8 +3153,8 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
3153 printk(KERN_ERR "EPT: Exit qualification is 0x%lx\n", 3153 printk(KERN_ERR "EPT: Exit qualification is 0x%lx\n",
3154 (long unsigned int)exit_qualification); 3154 (long unsigned int)exit_qualification);
3155 kvm_run->exit_reason = KVM_EXIT_UNKNOWN; 3155 kvm_run->exit_reason = KVM_EXIT_UNKNOWN;
3156 kvm_run->hw.hardware_exit_reason = 0; 3156 kvm_run->hw.hardware_exit_reason = EXIT_REASON_EPT_VIOLATION;
3157 return -ENOTSUPP; 3157 return 0;
3158 } 3158 }
3159 3159
3160 gpa = vmcs_read64(GUEST_PHYSICAL_ADDRESS); 3160 gpa = vmcs_read64(GUEST_PHYSICAL_ADDRESS);