diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2023-06-09 22:01:04 +0000 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2023-06-16 00:31:44 +0000 |
commit | 082fdfd13841fa4e38a8b073561d182e195d528c (patch) | |
tree | eb41f37941bd994fcc7edd5d6c350ef680601824 /arch/arm64/kvm/arm.c | |
parent | ce4a36225753a1a5f3641bff47ecd32fb394dd22 (diff) |
KVM: arm64: Prevent guests from enabling HA/HD on Ampere1
An erratum in the HAFDBS implementation in AmpereOne was addressed by
clearing the feature in the ID register, with the expectation that
software would not attempt to use the corresponding controls in TCR_EL1.
The architecture, on the other hand, takes a much more pedantic stance
on the subject, requiring the TCR bits behave as RES0.
Take an extremely conservative stance on the issue and leverage the
precise write trap afforded by FGT. Handle guest writes by clearing HA
and HD before writing the intended value to the EL1 register alias.
Link: https://lore.kernel.org/r/20230609220104.1836988-4-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'arch/arm64/kvm/arm.c')
0 files changed, 0 insertions, 0 deletions