qemu-irix/hw/kvm
Jan Kiszka ffc7565c81 kvm: i8254: Finish time conversion fix
0cdd3d1444 fixed reading back the counter load time from the kernel
while assuming the kernel would always update its load time on writing
the state. That is only true for channel 1, and so pit_get_channel_info
returned wrong output pin states for high counter values.

Fix this by applying the offset also on kvm_pit_put. Now we also need to
update the offset when we write the state while the VM is stopped as it
keeps on changing in that state.

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

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2012-08-21 15:42:32 -05:00
..
apic.c kvm/apic: correct short memset 2012-06-25 08:53:05 -05:00
clock.c kvmclock: guest stop notification 2012-04-12 19:01:42 -03:00
clock.h
i8254.c kvm: i8254: Finish time conversion fix 2012-08-21 15:42:32 -05:00
i8259.c i8259: Do not clear level-triggered lines in IRR on init 2012-02-17 09:58:22 -06:00
ioapic.c qom: Unify type registration 2012-02-15 09:39:21 -06:00