KVM: Fix wallclock version writing race
authorAvi Kivity <avi@redhat.com>
Tue, 4 May 2010 12:00:37 +0000 (15:00 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 19 May 2010 08:36:36 +0000 (11:36 +0300)
commit9ed3c444ab8987c7b219173a2f7807e3f71e234e
tree4214bfb01447b73768ae1e8175b04fccb2b3495f
parent8facbbff071ff2b19268d3732e31badc60471e21
KVM: Fix wallclock version writing race

Wallclock writing uses an unprotected global variable to hold the version;
this can cause one guest to interfere with another if both write their
wallclock at the same time.

Acked-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c