]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move TSC offset writes to common code
authorZachary Amsden <zamsden@redhat.com>
Fri, 20 Aug 2010 08:07:17 +0000 (22:07 -1000)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:22 +0000 (10:51 +0200)
commitd480e511de1bf6573d109d49fdc09acb1e96f7ce
tree1b67fc70af33988080784d32725f72b5ce7c07d1
parent7b6f4519af454fb6c44906861949126f229bf58f
KVM: x86: Move TSC offset writes to common code

Also, ensure that the storing of the offset and the reading of the TSC
are never preempted by taking a spinlock.  While the lock is overkill
now, it is useful later in this patch series.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h