diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-09-28 10:54:53 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-01 12:54:19 +0100 |
| commit | 0cdcc1039200b3c4fbc2ae3f9b5c1be1bc9155e8 (patch) | |
| tree | 17f62027a9cc4d326e09b39a330a627ad7313c1a /tools/perf/scripts/python | |
| parent | 80b0b86dc5e4344e62a2fd3ee43d0ef816fe9122 (diff) | |
KVM: arm64: Use kvm_s2_fault_vma_info in pkvm_mem_abort()
To paraphrase Marc in commit 08f97454b7fa ("KVM: arm64: Fix protected
mode handling of pages larger than 4kB"), pkvm_pgtable_stage2_map()
assumes the address passed as a parameter is aligned to the size of the
intended mapping, while HPFAR_EL2 gives the IPA minus the bottom 12
bits, regardless of the system page size configuration.
To fix this alignment, bring support for kvm_s2_fault_vma_info in
pkvm_mem_abort() and use its members where possible. They do contain the
page-alignment we need to fix the fault on system with pages larger than
4K.
Also, add a check at the start of pkvm_pgtable_stage2_map(), it does not
support !PAGE_ALIGNED arguments.
Fixes: ea03466e806f ("KVM: arm64: Handle aborts from protected VMs")
Cc: stable@vger.kernel.org
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260928095454.3255918-5-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
