diff options
| author | Wei-Lin Chang <weilin.chang@arm.com> | 2026-04-14 01:03:34 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-05-28 10:20:36 +0100 |
| commit | 8853566dfbab1a255ae72676ab5ec43e1631ddb7 (patch) | |
| tree | f6877e279767443a357c557b39fc549501d96afc /tools/perf/scripts/python/flamegraph.py | |
| parent | b154da8288add1f6fb958797d0b3462800f9fc77 (diff) | |
KVM: arm64: Fallback to a supported value for unsupported guest TGx
When KVM derives the translation granule for emulated stage-1 and
stage-2 walks, it decodes TCR/VTCR.TGx and treats the granule as-is.
This is wrong when the guest programs a granule size that is not
advertised in the guest's ID_AA64MMFR0_EL1.TGRAN* fields.
Architecturally, such a value must be treated as an implemented granule
size. Choose an available one while prioritizing PAGE_SIZE.
Signed-off-by: Wei-Lin Chang <weilin.chang@arm.com>
Link: https://patch.msgid.link/20260414000334.3947257-5-weilin.chang@arm.com
[maz: minor tidying up]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
