Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faac2458 authored by Bandan Das's avatar Bandan Das Committed by Marcelo Tosatti
Browse files

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: default avatarBandan Das <bsd@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 52eb5a6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3562,7 +3562,7 @@ static int handle_exit(struct kvm_vcpu *vcpu)

	if (exit_code >= ARRAY_SIZE(svm_exit_handlers)
	    || !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);
		return 1;
	}