diff options
author | Marc Zyngier <maz@kernel.org> | 2025-04-30 13:59:15 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2025-05-07 10:16:44 +0300 |
commit | ffea7c73d181db273be8b306be6bc573dfe2257b (patch) | |
tree | c992cb283d9e60ba0e66dc9bc6f595878faa1873 /rust/helpers/helpers.c | |
parent | b60e285b6acdec6d24fbde36d59f6d806f91cdc6 (diff) | |
download | linux-ffea7c73d181db273be8b306be6bc573dfe2257b.tar.xz |
KVM: arm64: Properly save/restore HCRX_EL2
Rather than restoring HCRX_EL2 to a fixed value on vcpu exit,
perform a full save/restore of the register, ensuring that
we don't lose bits that would have been set at some point in
the host kernel lifetime, such as the GCSEn bit.
Fixes: ff5181d8a2a82 ("arm64/gcs: Provide basic EL2 setup to allow GCS usage at EL0 and EL1")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250430105916.3815157-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions