diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-02-24 12:59:19 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-25 06:53:26 -0400 |
commit | 197717d5813fc39a7185a3177b76f4a3b2405df7 (patch) | |
tree | 6b6b5423aa0cf358fafa05bdc7e5203778041f80 /arch/x86/kvm/svm.c | |
parent | 7f5d8b5600b5294137886b46bf00ef811d0fdf32 (diff) |
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>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 631d2e544491..38f1fceefea1 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1491,7 +1491,9 @@ static inline bool nested_svm_intr(struct vcpu_svm *svm) | |||
1491 | if (!(svm->vcpu.arch.hflags & HF_HIF_MASK)) | 1491 | if (!(svm->vcpu.arch.hflags & HF_HIF_MASK)) |
1492 | return false; | 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 | if (svm->nested.intercept & 1ULL) { | 1498 | if (svm->nested.intercept & 1ULL) { |
1497 | /* | 1499 | /* |