qemu/target-ppc
Alexander Graf dc333cd609 PPC: tell the guest about the time base frequency
Our guest systems need to know by how much the timebase increases every second,
so there usually is a "timebase-frequency" property in the cpu leaf of the
device tree.

This property is missing in OpenBIOS.

With qemu, Linux's fallback timebase speed and qemu's internal timebase speed
match up. With KVM, that is no longer true. The guest is running at the same
timebase speed as the host.

This leads to massive timing problems. On my test machine, a "sleep 2" takes
about 14 seconds with KVM enabled.

This patch exports the timebase frequency to OpenBIOS, so it can then put them
into the device tree.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2010-02-14 16:10:54 +02:00
..
cpu.h PPC: Make DCR uint32_t 2009-12-21 16:03:03 +01:00
exec.h kill regs_to_env and env_to_regs 2010-01-19 16:31:02 -06:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
helper.c ppc-40x: Correct ESR for zone protection faults. 2010-01-14 14:42:30 +01:00
helper.h target-ppc: change DCR helpers to target_long arguments 2010-02-06 17:14:24 +01:00
kvm_ppc.c kvm ppc: Remove unused label 2009-11-12 11:23:55 -06:00
kvm_ppc.h PPC: tell the guest about the time base frequency 2010-02-14 16:10:54 +02:00
kvm.c PPC: tell the guest about the time base frequency 2010-02-14 16:10:54 +02:00
machine.c kvm: Simplify cpu_synchronize_state() 2009-08-27 20:35:30 -05:00
mfrom_table_gen.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
op_helper.c target-ppc: change DCR helpers to target_long arguments 2010-02-06 17:14:24 +01:00
STATUS Update PowerPC emulation status file. 2007-10-25 21:38:16 +00:00
translate_init.c target-ppc: simpler definitions for microcontrollers based on e300 2009-10-18 16:15:47 +02:00
translate.c Revert "Get rid of _t suffix" 2009-10-01 16:12:16 -05:00