Skip to content

KVM: arm64: Fix userspace access to HW pending state

Marc Zyngier kvm kvmarm linux-arm-kernel 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 2 repliesApplied
  2. v13 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Don't read a HW interrupt pending state in user contextarch/arm64/kvm/vgic/vgic-mmio-v2.c arch/arm64/kvm/vgic/vgic-mmio.c arch/arm64/kvm/vgic/vgic-mmio.h+21 -50 replies
2/3KVM: arm64: Replace vgic_v3_uaccess_read_pending with vgic_uaccess_read_pendingarch/arm64/kvm/vgic/vgic-mmio-v3.c arch/arm64/kvm/vgic/vgic-mmio.c+22 -391 reply
3/3KVM: arm64: Warn if accessing timer pending state outside of vcpu contextarch/arm64/kvm/arch_timer.c+3 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Auger
1/3R-b T-b
2/3R-b
3/3R-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: Fix userspace access to HW pending state

This is a followup from [1], which aims at fixing userspace access to interrupt pending state for HW interrupts.

* From v1 [1]:
- Keep some of the GICv3-specifics around to avoid regressing the line vs latch distinction (Eric).

[1] https://lore.kernel.org/r/[email protected]

Marc Zyngier (3):
KVM: arm64: Don't read a HW interrupt pending state in user context
KVM: arm64: Replace vgic_v3_uaccess_read_pending with
vgic_uaccess_read_pending
KVM: arm64: Warn if accessing timer pending state outside of vcpu
context

 arch/arm64/kvm/arch_timer.c        |  3 +++
 arch/arm64/kvm/vgic/vgic-mmio-v2.c |  4 +--
 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 40 ++----------------------------
 arch/arm64/kvm/vgic/vgic-mmio.c    | 40 +++++++++++++++++++++++++++---
 arch/arm64/kvm/vgic/vgic-mmio.h    |  3 +++
 5 files changed, 46 insertions(+), 44 deletions(-)
Signature · 1 line
2.34.1