Skip to content

KVM: arm64: Userspace GICv3 sysreg access fixes and testing

Marc Zyngier kvm kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: vgic-v3: Fix ordering of ICH_HCR_EL2arch/arm64/kvm/vgic-sys-reg-v3.c+1 -11 reply
2/4KVM: arm64: Clarify the check for reset callback in check_sysreg_table()arch/arm64/kvm/sys_regs.c+7 -71 reply
3/4KVM: arm64: Enforce the sorting of the GICv3 system register tablearch/arm64/kvm/sys_regs.c arch/arm64/kvm/vgic-sys-reg-v3.c arch/arm64/kvm/vgic/vgic.h+12 -11 reply
4/4KVM: arm64: selftest: vgic-v3: Add basic GICv3 sysreg userspace access testtools/testing/selftests/kvm/arm64/vgic_init.c+217 -24 replies

Reviews trailers per patch

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

PatchItaru KitayamaSebastian Ott
1/4R-b
2/4R-b
3/4R-b
4/4T-b R-b

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

Read the v1 thread

Cover letter [PATCH 0/4] KVM: arm64: Userspace GICv3 sysreg access fixes and testing

As a follow-up to my earlier series at [1], here's a small set of fixes to address an annoying bug that made ICH_HCR_EL2 unreachable from userspace -- not something you'd expect.

So the first patch fixes the ordering the the sysreg table, which had ICH_HCR_EL2 at the wrong spot. The next two ensure that we now check for the table to be sorted (just like all the other tables). Finally, the last patch augments the vgic_init selftest to actually check that we can access these registers

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

Marc Zyngier (4):
KVM: arm64: vgic-v3: Fix ordering of ICH_HCR_EL2
KVM: arm64: Clarify the check for reset callback in
check_sysreg_table()
KVM: arm64: Enforce the sorting of the GICv3 system register table
KVM: arm64: selftest: vgic-v3: Add basic GICv3 sysreg userspace access
test

 arch/arm64/kvm/sys_regs.c                     |  20 +-
 arch/arm64/kvm/vgic-sys-reg-v3.c              |   8 +-
 arch/arm64/kvm/vgic/vgic.h                    |   1 +
 tools/testing/selftests/kvm/arm64/vgic_init.c | 219 +++++++++++++++++-
 4 files changed, 237 insertions(+), 11 deletions(-)
Signature · 1 line
2.39.2