summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDan Carpenter <dan@pereq.eu>2026-11-18 18:35:32 +0300
committerMarc Zyngier <maz@kernel.org>2026-11-19 11:15:50 +0000
commit5f9cc7dcda69ed881a3041ad992afaac2a39d687 (patch)
treeb71517fa87b28e5336e9becc43e3798c21017290 /tools/perf/scripts/python/bin
parenta7602ea542d4e5d1322973349f1d987cb9db3363 (diff)
KVM: arm64: nv: Ignore TLBI IPAS2E1 above the IPA limit
In theory, an L1 hypervisor could issue a TLBI IPAS2E1 for an IPA above the host's IPA limit. The s2_mmu_unmap_ipa() function would pass it to kvm_stage2_unmap_range(), the page table walk would fail with -ERANGE, and that would trigger the WARN_ON() in kvm_vm_stage2_unmap_range(): WARN_ON(stage2_apply_range(mmu, start, start + size, fn, may_block)); The TLBI's IPA field goes up to 48 bits, so this needs a host whose IPA limit (its PARange) is below 48 bits, and it would also need to support nested virtualization. There are very few CPUs which meet both these requirements. The fix for this is to return early. Since there is nothing mapped above the limit, there is nothing to do. This matches how handle_ripas2e1is() also ignores TLBIs that start outside the PA_bits range. Fixes: 70109bcd701e ("KVM: arm64: nv: Handle TLBI IPAS2E1{,IS} operations") Signed-off-by: Dan Carpenter <dan@pereq.eu> Link: https://patch.msgid.link/av3FxJpUvpb_8qMC@stanley.mountain Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions