summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-10-01 15:28:42 +0100
committerMarc Zyngier <maz@kernel.org>2026-10-02 17:06:40 +0100
commit0b27ba187dde3170a312904f18595f3ba266bcae (patch)
treef774aa19fa6f6906fb98a39baed26cf5f89f3ffa /tools/perf/scripts/python
parent909e70fd13567db8247c3850f27b65aaea2c9ad0 (diff)
KVM: arm64: Filter out non-kernel addresses in kern_hyp_va
kern_hyp_va() is idempotent for the hypervisor linear space. This is handy for nVHE hypervisor callers handling kvm_vcpu or kvm_arch pointers. Those pointers can originate from the hypervisor space (when protected mode is enabled, we don't trust the kernel and the hypervisor uses its own copy) or from the kernel space (we do trust the kernel in "non-protected" nVHE). This idempotence does not hold for addresses within the hypervisor private range, like the ones you get from the pKVM heap allocator (hyp_alloc()). To resolve this, filter out non-kernel addresses based on PAGE_OFFSET. Leave the assembly version untouched as it has no current users. 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/20261001142849.3367614-12-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