From: Bandan Das Date: Tue, 8 Jul 2014 04:30:23 +0000 (-0400) Subject: KVM: x86: Check for nested events if there is an injectable interrupt X-Git-Tag: omap-for-v3.17/fixes-against-rc2~251^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9242b5b60df8b13b469bc6b7be08ff6ebb551ad3;p=pandora-kernel.git KVM: x86: Check for nested events if there is an injectable interrupt With commit b6b8a1451fc40412c57d1 that introduced vmx_check_nested_events, checks for injectable interrupts happen at different points in time for L1 and L2 that could potentially cause a race. The regression occurs because KVM_REQ_EVENT is always set when nested_run_pending is set even if there's no pending interrupt. Consequently, there could be a small window when check_nested_events returns without exiting to L1, but an interrupt comes through soon after and it incorrectly, gets injected to L2 by inject_pending_event Fix this by adding a call to check for nested events too when a check for injectable interrupt returns true Signed-off-by: Bandan Das Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed