diff options
author | Akihiko Odaki <[email protected]> | 2023-01-12 11:38:52 +0900 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-01-21 18:09:23 +0000 |
commit | 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3 (patch) | |
tree | 81a282bcae6f2429eddee8f0a2dc07c8b862d378 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | bf48040cd9b0c4d93c635ce222014a594e4e93f2 (diff) |
KVM: arm64: Normalize cache configuration
Before this change, the cache configuration of the physical CPU was
exposed to vcpus. This is problematic because the cache configuration a
vcpu sees varies when it migrates between vcpus with different cache
configurations.
Fabricate cache configuration from the sanitized value, which holds the
CTR_EL0 value the userspace sees regardless of which physical CPU it
resides on.
CLIDR_EL1 and CCSIDR_EL1 are now writable from the userspace so that
the VMM can restore the values saved with the old kernel.
Suggested-by: Marc Zyngier <[email protected]>
Signed-off-by: Akihiko Odaki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Oliver: Squash Marc's fix for CCSIDR_EL1.LineSize when set from userspace ]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions