diff options
author | 2024-06-25 14:00:39 +0100 | |
---|---|---|
committer | 2024-06-27 00:04:25 +0000 | |
commit | 1b04fd40275e09c2062e125593e7d2b0b9f87b0a (patch) | |
tree | 2764c8f9004ad0e65e1f788d721f02d78c278d74 /scripts/generate_rust_analyzer.py | |
parent | KVM: arm64: Get rid of HCRX_GUEST_FLAGS (diff) | |
download | linux-rng-1b04fd40275e09c2062e125593e7d2b0b9f87b0a.tar.xz linux-rng-1b04fd40275e09c2062e125593e7d2b0b9f87b0a.zip |
KVM: arm64: Make TCR2_EL1 save/restore dependent on the VM features
As for other registers, save/restore of TCR2_EL1 should be gated
on the feature being actually present.
In the case of a nVHE hypervisor, it is perfectly fine to leave
the host value in the register, as HCRX_EL2.TCREn==0 imposes that
TCR2_EL1 is treated as 0.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240625130042.259175-4-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions