summaryrefslogtreecommitdiffstats
path: root/arch/ia64/dig/machvec_vtd.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-06-17 15:53:47 +0200
committerAvi Kivity <avi@redhat.com>2009-06-28 13:10:29 +0200
commit84261923d3dddb766736023bead6fa07b7e218d5 (patch)
tree23a0c4af14dd9c548c5bcb457c74fdd980e2312e /arch/ia64/dig/machvec_vtd.c
parentKVM: MMU: Allow 4K ptes with bit 7 (PAT) set (diff)
downloadlinux-84261923d3dddb766736023bead6fa07b7e218d5.tar.xz
linux-84261923d3dddb766736023bead6fa07b7e218d5.zip
KVM: protect concurrent make_all_cpus_request
make_all_cpus_request contains a race condition which can trigger false request completed status, as follows: CPU0 CPU1 if (test_and_set_bit(req,&vcpu->requests)) .... if (test_and_set_bit(req,&vcpu->requests)) .. return proceed to smp_call_function_many(wait=1) Use a spinlock to serialize concurrent CPUs. Cc: stable@kernel.org Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64/dig/machvec_vtd.c')
0 files changed, 0 insertions, 0 deletions