From: Avi Kivity Date: Tue, 20 Sep 2011 10:43:14 +0000 (+0300) Subject: KVM: Fix simultaneous NMIs X-Git-Tag: v3.2-rc1~119^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7460fb4a340033107530df19e7e125bd0969bfb2;p=pandora-kernel.git KVM: Fix simultaneous NMIs 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: Avi Kivity Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed