• A
    PPC: tell the guest about the time base frequency · dc333cd6
    Alexander Graf 提交于
    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: NAlexander Graf <agraf@suse.de>
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    dc333cd6
kvm.c 6.9 KB