summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-10-08 11:42:12 +0100
committerMarc Zyngier <maz@kernel.org>2026-10-10 10:46:44 +0100
commitaac4560e1287c36196fd2d78bf04d0c1c2559e3e (patch)
tree19fca446551feb49adf856ee37167e168f449cb0 /tools/perf/scripts/python
parent6164ce3491bcc3a27a2e2e9260a286eb2df2301e (diff)
KVM: arm64: Fix bpages backing allocation size in hyp_trace
hyp_trace_buffer_alloc_bpages_backing() computes nr_bpages as (PAGE_ALIGN(size) / PAGE_SIZE) + 1, whereas trace_remote_alloc_buffer() takes into account the buffer page header. Align the bpages backing allocation by using __calc_nr_pages_ring_buffer_desc(). There's no need to validate nr_bpages again, it has been before with trace_buffer_desc_size(). Fixes: 3aed038aac8d ("KVM: arm64: Add trace remote for the nVHE/pKVM hyp") 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/20261008104212.3134550-3-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