Skip to content
  • Alexander Graf's avatar
    PPC: tell the guest about the time base frequency · dc333cd6
    Alexander Graf authored
    
    
    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: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    dc333cd6