]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Prevent host from managing timer offsets for protected VMs
authorFuad Tabba <tabba@google.com>
Thu, 11 Dec 2025 10:47:09 +0000 (10:47 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 15:55:50 +0000 (15:55 +0000)
commitf7d05ee84a6a8d3775e0f0c3070d9380bed844a9
tree413be6cdb9d06440eef29db44b5d0e994f93c8e4
parentb12b3b04f6ba072ca5a618a75e546c996be94bd1
KVM: arm64: Prevent host from managing timer offsets for protected VMs

For protected VMs, the guest's timer offset state should not be
controlled by the host and must always run with a virtual counter offset
of 0. The existing timer logic allowed the host to set and manage the
timer counter offsets for protected VMs in certain cases.

Disable all host-side management of timer offsets for protected VMs by
adding checks in the relevant code paths.

Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20251211104710.151771-10-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c