diff options
| author | 2026-10-07 08:43:42 +0100 | |
|---|---|---|
| committer | 2026-10-07 11:43:11 +0100 | |
| commit | 1dbb5a2b5a21a62a223a2a2a0d775d417dca4242 (patch) | |
| tree | 87930c9f10360aa49cfa7474d25abef4afedd515 /scripts/Makefile.thinlto | |
| parent | KVM: arm64: timers: Compute an offset-applied CVAL from the current count (diff) | |
KVM: arm64: nv: Read a guest hypervisor's CNTV_CVAL_EL0 from memory on x1e
On x1e KVM keeps CNTVOFF_EL2 at zero, traps the virtual timer whenever
it has an offset and programs the hardware with the offset applied.
kvm_hyp_handle_timer() returns that hardware value for a VHE guest
hypervisor's read of its own CNTV_CVAL_EL0, instead of the CVAL it
wrote. Its writes trap to the kernel and land in CNTHV_CVAL_EL2, so
return that, as the physical timer's read does without CNTPOFF_EL2.
Fixes: 0bc9a9e85fcf ("KVM: arm64: Work around x1e's CNTVOFF_EL2 bogosity")
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261007074343.324269-3-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
