]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Update last_guest_tsc in vcpu_put
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 18 Apr 2011 09:42:53 +0000 (11:42 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:10 +0000 (07:57 -0400)
commit1564c03bd555ac1b492106c2ee38d6fe2263e96f
treef814169205d55c01702c880e9610e5bb97c09924
parent8bb60854223d4dc22fc2696cae566c38aa4e85f7
KVM: X86: Update last_guest_tsc in vcpu_put

The last_guest_tsc is used in vcpu_load to adjust the
tsc_offset since tsc-scaling is merged. So the
last_guest_tsc needs to be updated in vcpu_put instead of
the the last_host_tsc. This is fixed with this patch.

Reported-by: Jan Kiszka <jan.kiszka@web.de>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c