diff options
| author | Oliver Upton <[email protected]> | 2025-03-05 23:08:24 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2025-03-06 00:56:57 +0000 |
| commit | 03e1b89d051fadf37c617c2fe84304c1e800da91 (patch) | |
| tree | dbba11de0bcbd01a13ed04684914dcd84a7f3a96 /net/unix/unix_bpf.c | |
| parent | KVM: arm64: Copy guest CTR_EL0 into hyp VM (diff) | |
| download | kernel-03e1b89d051fadf37c617c2fe84304c1e800da91.tar.gz kernel-03e1b89d051fadf37c617c2fe84304c1e800da91.zip | |
KVM: arm64: Copy MIDR_EL1 into hyp VM when it is writable
KVM recently added a capability that allows userspace to override the
'implementation ID' registers presented to the VM. MIDR_EL1 is a special
example, where the hypervisor can directly set the value when read from
EL1 using VPIDR_EL2.
Copy the VM-wide value for MIDR_EL1 into the hyp VM for non-protected
guests when the capability is enabled so VPIDR_EL2 gets set up
correctly.
Reported-by: Mark Brown <[email protected]>
Closes: https://lore.kernel.org/kvmarm/[email protected]/
Fixes: 3adaee783061 ("KVM: arm64: Allow userspace to change the implementation ID registers")
Reviewed-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
