• A
    KVM: Fix simultaneous NMIs · 7460fb4a
    Avi Kivity 提交于
    If simultaneous NMIs happen, we're supposed to queue the second
    and next (collapsing them), but currently we sometimes collapse
    the second into the first.
    
    Fix by using a counter for pending NMIs instead of a bool; since
    the counter limit depends on whether the processor is currently
    in an NMI handler, which can only be checked in vcpu context
    (via the NMI mask), we add a new KVM_REQ_NMI to request recalculation
    of the counter.
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    7460fb4a
kvm_host.h 25.0 KB