mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v17 0/1] arm64: mm: Handle Granule Protection Faults (GPFs)
@ 2026-09-07 16:22 Suzuki K Poulose
  2026-09-07 16:22 ` [PATCH v17 1/1] " Suzuki K Poulose
  2026-09-11 13:02 ` [PATCH v17 0/1] " Will Deacon
  0 siblings, 2 replies; 6+ messages in thread
From: Suzuki K Poulose @ 2026-09-07 16:22 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: catalin.marinas, will, linux-kernel, maz, pavan.kondeti, tabba,
	aneesh.kumar, mark.rutland, sdonthineni, steven.price, gshan,
	yuzenghui, kvmarm, Suzuki K Poulose

This single patch teaches the arm64 fault handling code about Granule
Protection Faults, introduced by FEAT_RME. This was posted with KVM CCA
support series, but split from that, to allow for other users of GPF.

The immediate user is KVM CCA, where the host may fault if it accesses
granules that have been delegated for use by a Realm. However, the fault
handling itself is architectural and not KVM-specific. It should also be useful
for other FEAT_RME users where an access to secure memory or root memory can
result in a GPF.

GPFs during a page table walk are treated as kernel bugs, while non-page-walk
faults can be reported to userspace with SIGBUS. The patch also allows existing
exception-table fixups to handle known in-kernel accesses such as
load_unaligned_zeropad() while private memory remains mapped in the linear map.

The KVM CCA v17 integration branch is available here:

[0] https://gitlab.arm.com/linux-arm/linux-cca.git cca/cca-host/kvm-integration/v17


Steven Price (1):
  arm64: mm: Handle Granule Protection Faults (GPFs)

 arch/arm64/mm/fault.c | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

-- 
2.43.0

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

end of thread, other threads:[~2026-09-11 16:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-07 16:22 [PATCH v17 0/1] arm64: mm: Handle Granule Protection Faults (GPFs) Suzuki K Poulose
2026-09-07 16:22 ` [PATCH v17 1/1] " Suzuki K Poulose
2026-09-10 17:45   ` Catalin Marinas
2026-09-10 18:52     ` Suzuki K Poulose
2026-09-11 13:02 ` [PATCH v17 0/1] " Will Deacon
2026-09-11 16:09   ` Suzuki K Poulose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®