Re: [PATCH] KVM: nVMX: Fix the NMI IDT-vectoring info handling

2016-09-22 Thread Jan Kiszka
On 2016-09-22 11:45, Wanpeng Li wrote: > 2016-09-22 17:37 GMT+08:00 Paolo Bonzini : >> >> >> On 22/09/2016 05:34, Wanpeng Li wrote: >>> - if (vmx->rmode.vm86_active) { >>> - if (kvm_inject_realmode_interrupt(vcpu, NMI_VECTOR, 0) != >>> EMULATE_DONE) >>> - kvm_ma

Re: [PATCH] KVM: nVMX: Fix the NMI IDT-vectoring info handling

2016-09-22 Thread Wanpeng Li
2016-09-22 17:37 GMT+08:00 Paolo Bonzini : > > > On 22/09/2016 05:34, Wanpeng Li wrote: >> - if (vmx->rmode.vm86_active) { >> - if (kvm_inject_realmode_interrupt(vcpu, NMI_VECTOR, 0) != >> EMULATE_DONE) >> - kvm_make_request(KVM_REQ_TRIPLE_FAULT, vcpu); >> -

Re: [PATCH] KVM: nVMX: Fix the NMI IDT-vectoring info handling

2016-09-22 Thread Paolo Bonzini
On 22/09/2016 05:34, Wanpeng Li wrote: > - if (vmx->rmode.vm86_active) { > - if (kvm_inject_realmode_interrupt(vcpu, NMI_VECTOR, 0) != > EMULATE_DONE) > - kvm_make_request(KVM_REQ_TRIPLE_FAULT, vcpu); > - return; > + ++vcpu->stat.nmi_in

[PATCH] KVM: nVMX: Fix the NMI IDT-vectoring info handling

2016-09-21 Thread Wanpeng Li
From: Wanpeng Li Run kvm-unit-tests/eventinj.flat in L1: Sending NMI to self After NMI to self FAIL: NMI This test scenario is to test whether VMM can handle NMI IDT-vectoring info correctly. At the beginning, L2 writes LAPIC to send a self NMI, the EPT page tables on both L1 and L0 are emp