Commit edcc7ecc authored by Willix Yeh's avatar Willix Yeh Committed by Liju-clr Chen
Browse files

FROMLIST: virt: geniezone: Add support for virtual timer migration



Introduce a mechanism to migrate the ARM64 virtual timer from the
guest VM to the host Linux system when the execution context switches
from the guest VM to the host. Ensure that the guest VM's virtual
timer continues to operate seamlessly after the context switch, given
that ARM64 has only one virtual timer.

Translate the remaining time before the VM timer expires into the host
Linux system by setting the remaining time on an hrtimer. This allows
the guest VM to maintain its timer operations without interruption.

Enable seamless timer operation during idle states. When a VM enters
an idle state and the execution context returns to the host Linux,
ensure that the timer continues to operate seamlessly, preventing
disruption to the guest VM's timing operations.

Change-Id: I70e5e00cc8d4848aea218b41ab15fec688ac6df7
Signed-off-by: default avatarWillix Yeh <chi-shen.yeh@mediatek.com>
Co-developed-by: default avatarKevenny Hsieh <kevenny.hsieh@mediatek.com>
Signed-off-by: default avatarKevenny Hsieh <kevenny.hsieh@mediatek.com>
Signed-off-by: default avatarLiju Chen <liju-clr.chen@mediatek.com>
Bug: 356552547
Link: https://lore.kernel.org/lkml/20240730082436.9151-23-liju-clr.chen@mediatek.com/
parent acc90fc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment