KVM: make make_all_cpus_request() lockless
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 12 Jan 2011 07:41:22 +0000 (15:41 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:26 +0000 (13:08 -0300)
commit3cba41307a2b1344ab8c1b9f55202d1e9d7bf81b
tree87191d63557cc722906ceaec98a1f8f148cf1fcc
parent6b7e2d0991489559a1df4500d77f7b76c4607ed0
KVM: make make_all_cpus_request() lockless

Now, we have 'vcpu->mode' to judge whether need to send ipi to other
cpus, this way is very exact, so checking request bit is needless,
then we can drop the spinlock let it's collateral

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c