Skip to content

KVM: arm64: First batch of vgic-v5 related fixes

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

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 patches 2 repliesApplied
  2. v115 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/16KVM: arm64: vgic: Don't reset cpuif/redist addresses at finalize timearch/arm64/kvm/vgic/vgic-init.c+9 -20 replies
2/16KVM: arm64: Don't skip per-vcpu NV initialisationarch/arm64/kvm/sys_regs.c+6 -60 replies
3/16arm64: Fix field references for ICH_PPI_DVIR[01]_EL2arch/arm64/tools/sysreg+2 -20 replies
4/16KVM: arm64: Fix writeable mask for ID_AA64PFR2_EL1arch/arm64/kvm/sys_regs.c+4 -40 replies
5/16KVM: arm64: Account for RESx bits in __compute_fgt()arch/arm64/kvm/config.c+2 -20 replies
6/16KVM: arm64: vgic-v5: Hold config_lock while finalizing GICv5 PPIsarch/arm64/kvm/vgic/vgic-v5.c+10 -00 replies
7/16KVM: arm64: vgic-v5: Transfer edge pending state to ICH_PPI_PENDRx_EL2arch/arm64/kvm/vgic/vgic-v5.c+4 -11 reply
8/16KVM: arm64: vgic-v5: Cast vgic_apr to u32 to avoid undefined behavioursarch/arm64/kvm/vgic/vgic-v5.c+3 -20 replies
9/16KVM: arm64: vgic-v5: Make the effective priority mask a strict limitarch/arm64/kvm/vgic/vgic-v5.c+1 -10 replies
10/16KVM: arm64: vgic-v5: Correctly set dist->ready once initialisedarch/arm64/kvm/vgic/vgic-init.c+11 -70 replies
11/16KVM: arm64: Kill arch_timer_context::direct fieldarch/arm64/kvm/arch_timer.c include/kvm/arm_arch_timer.h+9 -90 replies
12/16KVM: arm64: Remove evaluation of timer state in kvm_cpu_has_pending_timer()arch/arm64/kvm/arch_timer.c arch/arm64/kvm/vgic/vgic-v5.c+3 -70 replies
13/16KVM: arm64: Move GICv5 timer PPI validation into timer_irqs_are_valid()arch/arm64/kvm/arch_timer.c+4 -70 replies
14/16KVM: arm64: Correctly plumb ID_AA64PFR2_EL1 into pkvm idreg handlingarch/arm64/kvm/hyp/nvhe/sys_regs.c+1 -10 replies
15/16KVM: arm64: Don't advertises GICv3 in ID_PFR1_EL1 if AArch32 isn't supportedarch/arm64/kvm/vgic/vgic-init.c+2 -10 replies
16/16KVM: arm64: set_id_regs: Allow GICv3 support to be set at runtimetools/testing/selftests/kvm/arm64/set_id_regs.c+45 -70 replies

Reviews trailers per patch

13 of 16 patches have a Reviewed-by or Acked-by.

PatchSascha Bischoff
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b
9/16
10/16R-b
11/16R-b
12/16
13/16R-b
14/16R-b
15/16R-b
16/16

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 00/16] KVM: arm64: First batch of vgic-v5 related fixes

This is the second revision of this series attempting to fix a number of issues reported on the vgic-v5 PPI series.

* From v1 [1]:

- Partially reverted the effective priority mask fix, as Sascha pointed out the crucial difference in the way GICv5 manages the PCR compared to GICv[234]'s PMR.

- Added a fix for dealing with the pending HW-backed PPIs.

- Added a workaround for the set_id_regs selftest, already posted separately, but included here for completeness (and ease of merging).

Patches on top of my kvm-arm64/vgic-v5-ppi branch.

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

Marc Zyngier (16):
KVM: arm64: vgic: Don't reset cpuif/redist addresses at finalize time
KVM: arm64: Don't skip per-vcpu NV initialisation
arm64: Fix field references for ICH_PPI_DVIR[01]_EL2
KVM: arm64: Fix writeable mask for ID_AA64PFR2_EL1
KVM: arm64: Account for RESx bits in __compute_fgt()
KVM: arm64: vgic-v5: Hold config_lock while finalizing GICv5 PPIs
KVM: arm64: vgic-v5: Transfer edge pending state to ICH_PPI_PENDRx_EL2
KVM: arm64: vgic-v5: Cast vgic_apr to u32 to avoid undefined
behaviours
KVM: arm64: vgic-v5: Make the effective priority mask a strict limit
KVM: arm64: vgic-v5: Correctly set dist->ready once initialised
KVM: arm64: Kill arch_timer_context::direct field
KVM: arm64: Remove evaluation of timer state in
kvm_cpu_has_pending_timer()
KVM: arm64: Move GICv5 timer PPI validation into
timer_irqs_are_valid()
KVM: arm64: Correctly plumb ID_AA64PFR2_EL1 into pkvm idreg handling
KVM: arm64: Don't advertises GICv3 in ID_PFR1_EL1 if AArch32 isn't
supported
KVM: arm64: set_id_regs: Allow GICv3 support to be set at runtime

 arch/arm64/kvm/arch_timer.c                   | 32 +++++-------
 arch/arm64/kvm/config.c                       |  4 +-
 arch/arm64/kvm/hyp/nvhe/sys_regs.c            |  2 +-
 arch/arm64/kvm/sys_regs.c                     | 20 +++----
 arch/arm64/kvm/vgic/vgic-init.c               | 32 ++++++++----
 arch/arm64/kvm/vgic/vgic-v5.c                 | 24 +++++++--
 arch/arm64/tools/sysreg                       |  4 +-
 include/kvm/arm_arch_timer.h                  |  3 --
 .../testing/selftests/kvm/arm64/set_id_regs.c | 52 ++++++++++++++++---
 9 files changed, 115 insertions(+), 58 deletions(-)

base-commit: ce29261ec6482de54320c03398eb30e9615aee40

Signature · 1 line
2.47.3