Hi Mykola,
On 11/12/2025 18:43, Mykola Kvach wrote:
From: Mirela Simonovic <[email protected]>
Timer interrupts must be disabled while the system is suspended to prevent
spurious wake-ups. Suspending timers in Xen consists of disabling the
physical timer and the hypervisor timer on the current CPU. The virtual
timer does not need explicit handling here, as it is already disabled on
vCPU context switch and its state is restored per-vCPU on the next context
restore.
Resuming consists of raising TIMER_SOFTIRQ, which prompts the generic
timer code to reprogram the hypervisor timer with the correct timeout.
Xen does not use or expose the physical timer, so it remains disabled
across suspend/resume.
Introduce a new helper, disable_phys_hyp_timers(), to encapsulate disabling
of the physical and hypervisor timers.
Signed-off-by: Mirela Simonovic <[email protected]>
Signed-off-by: Saeed Nowshadi <[email protected]>
Signed-off-by: Mykola Kvach <[email protected]>
Acked-by: Julien Grall <[email protected]>
Cheers,
--
Julien Grall