]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5861288018ca45718f8606780b2a3f76e1e6e78
tree87191d63557cc722906ceaec98a1f8f148cf1fcc
parentcf49e4e99de5b9485ef0bc0d974506214086a2eb
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