diff options
| author | Marc Zyngier <maz@kernel.org> | 2026-10-29 15:37:30 -0700 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-03 11:07:16 +0000 |
| commit | 81755e75f86c490bc9296f6cec0cd221edecaa27 (patch) | |
| tree | b35f18c898436bd7c51830c346cd7849bf8e0b1c /tools/perf/scripts/python | |
| parent | 2942baff3a951e0805d0ce9608f318e21c7e3744 (diff) | |
KVM: arm64: Reset TCR_EL2 according to guest's E2H mode
Previously vCPU TCR_EL2's reset value didn't consider TCR_EL2's
different formats based on the value of HCR_EL2.E2H. It always resets to
the E2H == 0 version.
This didn't cause any problem because the bits set in the E2H == 0
version (TCR_EL2_RES1) all reset to UNKNOWN for E2H == 1 per the
architecture.
Still, it's better to fix it. Choose the correct reset value by checking
KVM_ARM_VCPU_HAS_EL2_E2H0.
Signed-off-by: Wei-Lin Chang <weilin.chang@arm.com>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Oliver Upton <oupton@kernel.org>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261029223732.103785-4-oupton@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
