From: Xiao Guangrong Date: Mon, 1 Nov 2010 09:03:44 +0000 (+0800) Subject: KVM: fix the race while wakeup all pv guest X-Git-Tag: v2.6.38-rc1~244^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64f638c7c44fa87e65f51eaf0f8302b9cba2d696;p=pandora-kernel.git KVM: fix the race while wakeup all pv guest In kvm_async_pf_wakeup_all(), we add a dummy apf to vcpu->async_pf.done without holding vcpu->async_pf.lock, it will break if we are handling apfs at this time. Also use 'list_empty_careful()' instead of 'list_empty()' Signed-off-by: Xiao Guangrong Acked-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed