diff options
author | Mark Brown <[email protected]> | 2024-10-23 15:53:33 +0100 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-10-31 02:44:21 +0000 |
commit | a68cddbe47efdac10855e5f154cbd6c87b792ba2 (patch) | |
tree | c50e8e1edd2351af0e91d4e330fe14c4249112d8 /lib/memory-notifier-error-inject.c | |
parent | 0fcb4eea5345531118ca6f46391e88b12fbc35e4 (diff) |
KVM: arm64: Hide S1PIE registers from userspace when disabled for guests
When the guest does not support S1PIE we should not allow any access
to the system registers it adds in order to ensure that we do not create
spurious issues with guest migration. Add a visibility operation for these
registers.
Fixes: 86f9de9db178 ("KVM: arm64: Save/restore PIE registers")
Signed-off-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[maz: simplify by using __el2_visibility(), kvm_has_s1pie() throughout]
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions