diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-10-23 12:42:15 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-10-28 08:14:24 -0400 |
commit | cd2633c59b6f511effb53e10fa2c1e20b1cec1e7 (patch) | |
tree | fb2422944dcfa2876ea27453ea0530209d3aa651 /arch/x86/kvm/vmx.c | |
parent | d3134dbf2046076b6e52b05890e812442d5257fb (diff) |
nVMX: Fix pick-up of uninjected NMIs
__vmx_complete_interrupts stored uninjected NMIs in arch.nmi_injected,
not arch.nmi_pending. So we actually need to check the former field in
vmcs12_save_pending_event. This fixes the eventinj unit test when run
in nested KVM.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index feef3a1e45d3..81ce3898b448 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -8078,7 +8078,7 @@ static void vmcs12_save_pending_event(struct kvm_vcpu *vcpu, | |||
8078 | } | 8078 | } |
8079 | 8079 | ||
8080 | vmcs12->idt_vectoring_info_field = idt_vectoring; | 8080 | vmcs12->idt_vectoring_info_field = idt_vectoring; |
8081 | } else if (vcpu->arch.nmi_pending) { | 8081 | } else if (vcpu->arch.nmi_injected) { |
8082 | vmcs12->idt_vectoring_info_field = | 8082 | vmcs12->idt_vectoring_info_field = |
8083 | INTR_TYPE_NMI_INTR | INTR_INFO_VALID_MASK | NMI_VECTOR; | 8083 | INTR_TYPE_NMI_INTR | INTR_INFO_VALID_MASK | NMI_VECTOR; |
8084 | } else if (vcpu->arch.interrupt.pending) { | 8084 | } else if (vcpu->arch.interrupt.pending) { |