You need to sign in or sign up before continuing.
  • Bibo Mao's avatar
    LoongArch: KVM: Do not restart SW timer when it is expired · f6622805
    Bibo Mao authored
    
    
    LoongArch VCPUs have their own separate HW timers. SW timer is to wake
    up blocked vcpu thread, rather than HW timer emulation. When blocking
    vcpu scheduled out, SW timer is used to wakeup blocked vcpu thread and
    injects timer interrupt. It does not care about whether guest timer is
    in period mode or oneshot mode, and SW timer needs not to be restarted
    since vcpu has been woken.
    
    This patch does not restart SW timer when it is expired.
    Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    f6622805
timer.c 5.1 KB