Browse Source

KVM: SVM: Fix confusing message if no exit handlers are installed

I hit this path on a AMD box and thought
someone was playing a April Fool's joke on me.

Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Bandan Das 10 years ago
parent
commit
faac245851
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/kvm/svm.c

+ 1 - 1
arch/x86/kvm/svm.c

@@ -3562,7 +3562,7 @@ static int handle_exit(struct kvm_vcpu *vcpu)
 
 
 	if (exit_code >= ARRAY_SIZE(svm_exit_handlers)
 	if (exit_code >= ARRAY_SIZE(svm_exit_handlers)
 	    || !svm_exit_handlers[exit_code]) {
 	    || !svm_exit_handlers[exit_code]) {
-		WARN_ONCE(1, "vmx: unexpected exit reason 0x%x\n", exit_code);
+		WARN_ONCE(1, "svm: unexpected exit reason 0x%x\n", exit_code);
 		kvm_queue_exception(vcpu, UD_VECTOR);
 		kvm_queue_exception(vcpu, UD_VECTOR);
 		return 1;
 		return 1;
 	}
 	}