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

Commit 197717d5 authored by Joerg Roedel's avatar Joerg Roedel Committed by Avi Kivity
Browse files

KVM: SVM: Clear exit_info for injected INTR exits



When injecting an vmexit.intr into the nested hypervisor
there might be leftover values in the exit_info fields.
Clear them to not confuse nested hypervisors.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 7f5d8b56
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1492,6 +1492,8 @@ static inline bool nested_svm_intr(struct vcpu_svm *svm)
		return false;

	svm->vmcb->control.exit_code   = SVM_EXIT_INTR;
	svm->vmcb->control.exit_info_1 = 0;
	svm->vmcb->control.exit_info_2 = 0;

	if (svm->nested.intercept & 1ULL) {
		/*