Skip to content

KVM: arm64: Fixes for timers and pKVM

Mostafa Saleh kvmarm linux-arm-kernel lkml 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 6 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Make timer_get_offset() work in all contextsarch/arm64/kvm/hyp/include/hyp/switch.h include/kvm/arm_arch_timer.h+22 -270 replies
2/3KVM: arm64: Fix timer offsets for non-protected VMsarch/arm64/kvm/hyp/nvhe/pkvm.c arch/arm64/kvm/hyp/nvhe/timer-sr.c+17 -30 replies
3/3KVM: arm64: Fix hvhe and broken CNTVOFF_EL2arch/arm64/kvm/hyp/nvhe/timer-sr.c+2 -21 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchYuan YaoFuad Tabba
1/3
2/3
3/3R-b R-b T-b

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: Fixes for timers and pKVM

What started as a small patch ended up as a 3 patch series thanks to Sashiko.

First patch from Marc to consolidate the offset calculation, follow up patches fix issues with non-protected VM and timer offset and protected VM running with broken CNTVOFF_EL2.

The patches have all the information so I will keep this short.

v1: https://lore.kernel.org/all/[email protected]/
Main changes:
- Add comment based on Fuad review
- Add prefix patches that also fix the non-protected hang properly.

Marc Zyngier (1):
KVM: arm64: Make timer_get_offset() work in all contexts

Mostafa Saleh (2):
KVM: arm64: Fix timer offsets for non-protected VMs
KVM: arm64: Fix hvhe and broken CNTVOFF_EL2

 arch/arm64/kvm/hyp/include/hyp/switch.h | 15 +----------
 arch/arm64/kvm/hyp/nvhe/pkvm.c          | 14 ++++++++++
 arch/arm64/kvm/hyp/nvhe/timer-sr.c      | 10 ++++----
 include/kvm/arm_arch_timer.h            | 34 +++++++++++++++----------
 4 files changed, 41 insertions(+), 32 deletions(-)
Signature · 1 line
2.55.0.654.g21b8a5bc05-goog