summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2026-05-04 09:00:48 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-05-04 09:00:48 +0800
commit5a873d77ba792410a796595a917be6a440f9b7d2 (patch)
treed2c19a2157e471fdd741562126cb77543ac09629 /include/uapi/linux
parent2433f3f5724b3af569d9fb411ba728629524738b (diff)
LoongArch: KVM: Move unconditional delay into timer clear scenery
When timer interrupt arrives in guest kernel, guest kernel clears the timer interrupt and program timer with the next incoming event. During this stage, timer tick is -1 and timer interrupt status is disabled in ESTAT register. KVM hypervisor need write zero with timer tick register and wait timer interrupt injection from HW side, and then clear timer interrupt. So there is 2 cycle delay in KVM hypervisor to emulate such scenery, and the delay is unnecessary if there is no need to clear the timer interrupt. Here move 2 cycle delay into timer clear scenery and add timer ESTAT checking after delay, and set max timer expire value if timer interrupt does not arrive still. Cc: stable@vger.kernel.org Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions