summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2017-01-13 18:59:04 +0100
committerRadim Krčmář <rkrcmar@redhat.com>2017-03-20 16:25:05 +0100
commit6c6c5e0311c83ffe75e14260fb83e05e21e1d488 (patch)
treec2fe4ce375577e2898a73b87719d8352c106f064 /arch
parent97da3854c526d3a6ee05c849c96e48d21527606c (diff)
downloadlinux-0-day-6c6c5e0311c83ffe75e14260fb83e05e21e1d488.tar.gz
linux-0-day-6c6c5e0311c83ffe75e14260fb83e05e21e1d488.tar.xz
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 98e82ee1e6996..e7ec88961b1a4 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -8501,7 +8501,8 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu)
&& kvm_vmx_exit_handlers[exit_reason])
return kvm_vmx_exit_handlers[exit_reason](vcpu);
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);
return 1;
}