From: Gleb Natapov Date: Mon, 3 Jun 2013 08:30:02 +0000 (+0300) Subject: KVM: Fix race in apic->pending_events processing X-Git-Tag: v3.10-rc5~28^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=299018f44ac553dce3caf84df1d14c4764faa279;p=pandora-kernel.git KVM: Fix race in apic->pending_events processing apic->pending_events processing has a race that may cause INIT and SIPI processing to be reordered: vpu0: vcpu1: set INIT test_and_clear_bit(KVM_APIC_INIT) process INIT set INIT set SIPI test_and_clear_bit(KVM_APIC_SIPI) process SIPI At the end INIT is left pending in pending_events. The following patch fixes this by latching pending event before processing them. Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed