Skip to content

KVM/arm64: timer fixes for 6.14

Marc Zyngier kvmarm linux-arm-kernel stable 2 versions – Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied
  2. v13 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: timer: Always evaluate the need for a soft timerarch/arm64/kvm/arch_timer.c+1 -31 reply
2/3KVM: arm64: timer: Correctly handle EL1 timer emulation when !FEAT_ECVarch/arm64/kvm/arch_timer.c+10 -201 reply
3/3KVM: arm64: timer: Don't adjust the EL2 virtual timer offsetarch/arm64/kvm/arch_timer.c arch/arm64/kvm/sys_regs.c+13 -180 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDmytro TerletskyiOliver Upton
SeriesR-b
1/3T-b
2/3T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] KVM/arm64: timer fixes for 6.14

It's been recently pointed out that the NV timer code that is (hopefully) on its way upstream is marginally sub-optimal (read:
terminally broken). This short series attempts to fix things:

- Correctly arm a background timer in all situations

- Avoid corrupting the EL2 state by shoving the EL1 state into it, and simplify the handling of emulated timers

- Drop the weird HV timer offset dance dance on E2H switch that never happens and make HV timer correctly UNDEF on E2H==0.

Thanks to Volodymyr Babchuk and Wei-Lin Chang for their help.

Patches on top of kvmarm/fixes, and merged back on top of my kvm-arm64/nv-next branch.

Marc Zyngier (3):
KVM: arm64: timer: Always evaluate the need for a soft timer
KVM: arm64: timer: Correctly handle EL1 timer emulation when !FEAT_ECV
KVM: arm64: timer: Don't adjust the EL2 virtual timer offset

 arch/arm64/kvm/arch_timer.c | 49 +++++++++----------------------------
 arch/arm64/kvm/sys_regs.c   | 16 +++++++++---
 2 files changed, 24 insertions(+), 41 deletions(-)
Signature · 1 line
2.39.2