]> git.ipfire.org Git - thirdparty/qemu.git/commit
kvm: i8254: Cache kernel clock offset in KVMPITState
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 14 Aug 2012 08:24:03 +0000 (10:24 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 21 Aug 2012 20:42:32 +0000 (15:42 -0500)
commit393d4c921464c2a791b6662b8b664feba9104cce
tree78dfb8007ad433cb6cdfe4b71889e6429f074195
parent5ae1c7ca0a8e648219f7cea1f58bf57cf8d2cea2
kvm: i8254: Cache kernel clock offset in KVMPITState

To prepare the final fix for clock calibration issues with the in-kernel
PIT, we want to cache the offset between vmclock and the clock used by
the in-kernel PIT. So far, we only need to update it when the VM state
changes between running and stopped because we only read the in-kernel
PIT state while the VM is running.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
(cherry picked from commit 205df4d1a87cbb14a50655fb2c0a987467fb29d6)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/kvm/i8254.c