Separate TSC load from kvm_arch_load_regs
commit6df785cae3a18390723d4f35ffd5622c7e326c03
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 9 Dec 2008 01:12:48 +0000 (8 23:12 -0200)
committerAvi Kivity <avi@redhat.com>
Sun, 28 Dec 2008 09:31:51 +0000 (28 11:31 +0200)
tree118ff8f6ce087eab430114b6ef44da29ce017380
parentd1bfff184e4f770fddc0c1a86b8c07092ab17ff6
Separate TSC load from kvm_arch_load_regs

kvm_load_registers is a general interface to load registers, and is
used by vmport, gdbstub, etc. The TSC MSR is continually counting, so
it can't be simply read and written back as the other registers/MSR's
(doing so overwrites the current count).

Introduce kvm_load_tsc and use it for x86's migration CPU load code.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm-x86.c
qemu-kvm.h
target-i386/machine.c