KVM: arm64: Userspace GICv3 sysreg access fixes and testing
Status from this message: Applied to next, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM: arm64: vgic-v3: Fix ordering of ICH_HCR_EL2arch/ | +1 | 1 reply | |
| 2/4 | KVM: arm64: Clarify the check for reset callback in check_sysreg_table()arch/ | +7 | 1 reply | |
| 3/4 | KVM: arm64: Enforce the sorting of the GICv3 system register tablearch/ arch/ arch/ | +12 | 1 reply | |
| 4/4 | KVM: arm64: selftest: vgic-v3: Add basic GICv3 sysreg userspace access testtools/ | +217 | 4 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Itaru Kitayama | Sebastian Ott |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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