summaryrefslogtreecommitdiff
path: root/drivers/dma/coh901318.c
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@hotmail.com>2016-08-30 16:14:00 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-05 16:14:39 +0200
commite12c8f36f3f7a60d55938c5aed5999278fa92bcb (patch)
tree704e50c12dce53485a5ee4ddd3fe9e0ad752bbba /drivers/dma/coh901318.c
parent20b8f9e2dde171c69da4a79c34fccdc2a8492797 (diff)
KVM: lapic: adjust preemption timer correctly when goes TSC backward
TSC_OFFSET will be adjusted if discovers TSC backward during vCPU load. The preemption timer, which relies on the guest tsc to reprogram its preemption timer value, is also reprogrammed if vCPU is scheded in to a different pCPU. However, the current implementation reprogram preemption timer before TSC_OFFSET is adjusted to the right value, resulting in the preemption timer firing prematurely. This patch fix it by adjusting TSC_OFFSET before reprogramming preemption timer if TSC backward. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krċmář <rkrcmar@redhat.com> Cc: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/dma/coh901318.c')
0 files changed, 0 insertions, 0 deletions