Re: [PATCH] LoongArch: Implement stable timer shutdown interface

From: WANG Xuerui
Date: Thu Nov 16 2023 - 11:15:23 EST



On 11/16/23 16:21, maobibo wrote:
arch_cpu_idle_dead is called. Timer interrupt for this processor should
be disabled, else there will be timer interrupt for the dead cpu. Also
this prevents vcpu to schedule out during halt-polling flow when system
is running in vm mode, since there is pending timer interrupt.

The logical relationship is a bit unclear, is my paraphrasing correct in your opinion?

"Timer interrupt for this processor should be disabled, else a pending timer interrupt will prevent the vCPU from scheduling out during the halt-polling flow when system is running in VM mode"

(I don't immediately know what a "schedule out" is. Is that a translation artifact or some KVM jargon?)
how about "prevent the vCPU from giving up scheduling"?
That's very easy to understand, so no problem and thanks!

--
WANG "xen0n" Xuerui

Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/