Commit c15e40a7 authored by Bibo Mao's avatar Bibo Mao Committed by xianglai li
Browse files

loongarch/kvm: Remove SW timer switch when vcpu is halt polling

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8I8NK



------------------------------------------

This patches removes SW timer switch during vcpu block stage. VM uses HW
timer rather than SW PV timer on LoongArch system, it can check pending
HW timer interrupt status directly, rather than switch to SW timer and
check injected SW timer interrupt.

When SW timer is not used in vcpu halt-polling mode, the relative
SW timer handling before entering guest can be removed also. Timer
emulation is simpler than before, SW timer emuation is only used in vcpu
thread context switch.

Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
parent 3aad5766
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment