]> git.karo-electronics.de Git - karo-tx-linux.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)
commit99e3e30aee1a326a98bf3a5f47b8622219c685f3
tree1b67fc70af33988080784d32725f72b5ce7c07d1
parentf4e1b3c8bd2a044cd0ccf80595bfd088a49fe60b
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