]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: Fix wallclock version writing race
authorAvi Kivity <avi@redhat.com>
Tue, 4 May 2010 12:00:37 +0000 (15:00 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:16:14 +0000 (11:16 -0700)
commit12bf0ef607767d6817f20557d246b1eb6c11eb99
treebe5939f8d28656652cd9c720a913c37d13049d38
parent01b2090b73c8364b457d4c8d0961db2d1635726a
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 9ed3c444ab8987c7b219173a2f7807e3f71e234e)
arch/x86/kvm/x86.c