summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/i8259.c
diff options
context:
space:
mode:
authorZachary Amsden <zamsden@redhat.com>2010-09-19 00:38:12 (GMT)
committerAvi Kivity <avi@redhat.com>2010-10-24 08:52:56 (GMT)
commit28e4639adf0c9f26f6bb56149b7ab547bf33bb95 (patch)
tree0d20f168f33bc0165ee4a9d18c386a7cdbad63c4 /arch/x86/kvm/i8259.c
parent0959ffacf39b1ae7f56072b0c64429ee528100ca (diff)
downloadlinux-fsl-qoriq-28e4639adf0c9f26f6bb56149b7ab547bf33bb95.tar.xz
KVM: x86: Fix kvmclock bug
If preempted after kvmclock values are updated, but before hardware virtualization is entered, the last tsc time as read by the guest is never set. It underflows the next time kvmclock is updated if there has not yet been a successful entry / exit into hardware virt. Fix this by simply setting last_tsc to the newly read tsc value so that any computed nsec advance of kvmclock is nulled. Signed-off-by: Zachary Amsden <zamsden@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8259.c')
0 files changed, 0 insertions, 0 deletions