All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] KVM: arm64: nv: VNCR page mapping fixes
@ 2026-12-05 10:38 Jia He
  2026-12-05 10:38 ` [PATCH v5 1/3] KVM: arm64: nv: Locate the VNCR page in the host page from its PA Jia He
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Jia He @ 2026-12-05 10:38 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton
  Cc: Jia He, Fuad Tabba, Joey Gouly, Steffen Eiden, Suzuki K Poulose,
	Zenghui Yu, Catalin Marinas, Will Deacon, Mark Rutland,
	Paolo Bonzini, Sean Christopherson, Shuah Khan, linux-arm-kernel,
	kvmarm, kvm, linux-kselftest, linux-kernel

Fix the VNCR fixmap offset on hosts with 16K or 64K pages and inject
the fault recorded by the stage-1 walker when an AF update fails.
Add a selftest for both fixes.

Changes since v4:
- Drop patch 4 (cacheable PFNMAP VNCR support) per Marc's feedback.
- Patch 3: check EL2/vGICv3 support via test_supports_el2(), save errno
  before calling vcpu_get_stat(), track SIGALRM with a flag and
  setitimer(), and report results with kselftest TAP helpers (Sashiko).
  Verified on Neoverse-N2 with 4K host pages (3/3 TAP pass, clean SKIP
  under NV=0).

v4:  https://lore.kernel.org/kvmarm/20261203105805.165749-1-justin.he@arm.com/T/#m136fd391ce4c11dd408083036e10be742279e493

Changes since v3:
- Rebase onto v7.4-rc4.
- Patch 1: use the cached HPA in __compute_hcr(), align the address
  passed to __set_fixmap(), and clarify the granule requirements (Marc).
- Patch 3: document the 16K and 64K test results and that the test runs
  with nested stage-2 disabled (Marc).

v3: https://lore.kernel.org/r/20261128011447.3588988-1-justin.he@arm.com

Changes since v2:
- New patch 1 (Sashiko).
- Patch 3: size the read-only memslot to whole host pages, and map the
  VNCR page at a VA whose bits [15:12] differ from those of its PA
  (Sashiko).

v2: https://lore.kernel.org/r/20261125024426.3464050-1-justin.he@arm.com

Changes since v1:
- New patches 2 and 3 (Sashiko).

v1: https://lore.kernel.org/r/20261124025336.4107575-1-justin.he@arm.com

Jia He (3):
  KVM: arm64: nv: Locate the VNCR page in the host page from its PA
  KVM: arm64: nv: Inject an SEA when the VNCR walk cannot set the AF
  KVM: arm64: selftests: Add a test for VNCR_EL2 translation faults

 arch/arm64/include/asm/kvm_nested.h               |  20 ++
 arch/arm64/kvm/hyp/vhe/switch.c                   |   7 +-
 arch/arm64/kvm/nested.c                           |  25 +--
 tools/testing/selftests/kvm/Makefile.kvm          |   1 +
 tools/testing/selftests/kvm/arm64/nv_vncr_abort.c | 260 ++++++++++++++++++++++
 5 files changed, 290 insertions(+), 23 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/arm64/nv_vncr_abort.c

base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
-- 
2.34.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-12-05 17:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 10:38 [PATCH v5 0/3] KVM: arm64: nv: VNCR page mapping fixes Jia He
2026-12-05 10:38 ` [PATCH v5 1/3] KVM: arm64: nv: Locate the VNCR page in the host page from its PA Jia He
2026-12-05 10:38 ` [PATCH v5 2/3] KVM: arm64: nv: Inject an SEA when the VNCR walk cannot set the AF Jia He
2026-12-05 10:38 ` [PATCH v5 3/3] KVM: arm64: selftests: Add a test for VNCR_EL2 translation faults Jia He
2026-12-05 10:53   ` sashiko-bot
2026-12-05 11:28     ` Justin He
2026-12-05 11:40       ` Marc Zyngier
2026-12-05 11:48         ` Justin He
2026-12-05 17:43 ` [PATCH v5 0/3] KVM: arm64: nv: VNCR page mapping fixes Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.