• James Hogan's avatar
    MIPS: KVM: Migrate hrtimer to follow VCPU · 3a0ba774
    James Hogan authored
    When a VCPU is scheduled in on a different CPU, refresh the hrtimer used
    for emulating count/compare so that it gets migrated to the same CPU.
    
    This should prevent a timer interrupt occurring on a different CPU to
    where the guest it relates to is running, which would cause the guest
    timer interrupt not to be delivered until after the next guest exit.
    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: Sanjay Lal <sanjayl@kymasys.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    3a0ba774
kvm_tlb.c 20.3 KB