فهرست منبع

KVM: VMX: downgrade warning on unexpected exit code

We never needed the call trace and we better rate-limit if it can be
triggered by a guest.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Radim Krčmář 8 سال پیش
والد
کامیت
6c6c5e0311
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      arch/x86/kvm/vmx.c

+ 2 - 1
arch/x86/kvm/vmx.c

@@ -8501,7 +8501,8 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu)
 	    && kvm_vmx_exit_handlers[exit_reason])
 	    && kvm_vmx_exit_handlers[exit_reason])
 		return kvm_vmx_exit_handlers[exit_reason](vcpu);
 		return kvm_vmx_exit_handlers[exit_reason](vcpu);
 	else {
 	else {
-		WARN_ONCE(1, "vmx: unexpected exit reason 0x%x\n", exit_reason);
+		vcpu_unimpl(vcpu, "vmx: unexpected exit reason 0x%x\n",
+				exit_reason);
 		kvm_queue_exception(vcpu, UD_VECTOR);
 		kvm_queue_exception(vcpu, UD_VECTOR);
 		return 1;
 		return 1;
 	}
 	}