diff options
author | Sebastian Ott <sebott@redhat.com> | 2024-06-19 20:40:33 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-06-20 20:16:44 +0300 |
commit | 2843cae26644fbc922e93c7c4c279f70fb3275f1 (patch) | |
tree | 8cdf0e2cbcfdcd0cda255ed25df5838b8783dced /scripts/generate_rust_analyzer.py | |
parent | f1ff3fc5209a1d63a4018bdb4231fbb073063c9a (diff) | |
download | linux-2843cae26644fbc922e93c7c4c279f70fb3275f1.tar.xz |
KVM: arm64: Treat CTR_EL0 as a VM feature ID register
CTR_EL0 is currently handled as an invariant register, thus
guests will be presented with the host value of that register.
Add emulation for CTR_EL0 based on a per VM value. Userspace can
switch off DIC and IDC bits and reduce DminLine and IminLine sizes.
Naturally, ensure CTR_EL0 is trapped (HCR_EL2.TID2=1) any time that a
VM's CTR_EL0 differs from hardware.
Signed-off-by: Sebastian Ott <sebott@redhat.com>
Reviewed-by: Shaoqin Huang <shahuang@redhat.com>
Link: https://lore.kernel.org/r/20240619174036.483943-8-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions