Re: [RFC PATCH 16/18] KVM: add kvm_arch_vcpu_prevent_run to prevent VM ENTER when NMI is received

2012-06-29 Thread Tomoki Sekiyama
On 2012/06/29 1:48, Avi Kivity wrote: > On 06/28/2012 09:08 AM, Tomoki Sekiyama wrote: >> Since NMI can not be disabled around VM enter, there is a race between >> receiving NMI to kick a guest and entering the guests on slave CPUs.If the >> NMI is received just before entering VM, after the NMI ha

Re: [RFC PATCH 16/18] KVM: add kvm_arch_vcpu_prevent_run to prevent VM ENTER when NMI is received

2012-06-28 Thread Avi Kivity
On 06/28/2012 09:08 AM, Tomoki Sekiyama wrote: > Since NMI can not be disabled around VM enter, there is a race between > receiving NMI to kick a guest and entering the guests on slave CPUs.If the > NMI is received just before entering VM, after the NMI handler is invoked, > it continues entering t

[RFC PATCH 16/18] KVM: add kvm_arch_vcpu_prevent_run to prevent VM ENTER when NMI is received

2012-06-27 Thread Tomoki Sekiyama
Since NMI can not be disabled around VM enter, there is a race between receiving NMI to kick a guest and entering the guests on slave CPUs.If the NMI is received just before entering VM, after the NMI handler is invoked, it continues entering the guest and the effect of the NMI will be lost. This