• James Hogan's avatar
    MIPS: KVM: Add count frequency KVM register · f74a8e22
    James Hogan authored
    Expose the KVM guest CP0_Count frequency to userland via a new
    KVM_REG_MIPS_COUNT_HZ register accessible with the KVM_{GET,SET}_ONE_REG
    ioctls.
    
    When the frequency is altered the bias is adjusted such that the guest
    CP0_Count doesn't jump discontinuously or lose any timer interrupts.
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Gleb Natapov <gleb@kernel.org>
    Cc: kvm@vger.kernel.org
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: linux-mips@linux-mips.org
    Cc: David Daney <david.daney@cavium.com>
    Cc: Sanjay Lal <sanjayl@kymasys.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f74a8e22
kvm.h 5.53 KB