Commit 197717d5813fc39a7185a3177b76f4a3b2405df7
Committed by
Avi Kivity
1 parent
7f5d8b5600
Exists in
master
and in
4 other branches
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: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
arch/x86/kvm/svm.c
... | ... | @@ -1491,7 +1491,9 @@ |
1491 | 1491 | if (!(svm->vcpu.arch.hflags & HF_HIF_MASK)) |
1492 | 1492 | return false; |
1493 | 1493 | |
1494 | - svm->vmcb->control.exit_code = SVM_EXIT_INTR; | |
1494 | + svm->vmcb->control.exit_code = SVM_EXIT_INTR; | |
1495 | + svm->vmcb->control.exit_info_1 = 0; | |
1496 | + svm->vmcb->control.exit_info_2 = 0; | |
1495 | 1497 | |
1496 | 1498 | if (svm->nested.intercept & 1ULL) { |
1497 | 1499 | /* |