-
- Downloads
KVM: arm64: Make FEAT_MOPS UNDEF if not advertised to the guest
We unconditionally enable FEAT_MOPS, which is obviously wrong. So let's only do that when it is advertised to the guest. Which means we need to rely on a per-vcpu HCRX_EL2 shadow register. Signed-off-by:Marc Zyngier <maz@kernel.org> Reviewed-by:
Joey Gouly <joey.gouly@arm.com> Link: https://lore.kernel.org/r/20240214131827.2856277-25-maz@kernel.org Signed-off-by:
Oliver Upton <oliver.upton@linux.dev>
Showing
- arch/arm64/include/asm/kvm_arm.h 1 addition, 3 deletionsarch/arm64/include/asm/kvm_arm.h
- arch/arm64/include/asm/kvm_host.h 1 addition, 0 deletionsarch/arm64/include/asm/kvm_host.h
- arch/arm64/kvm/hyp/include/hyp/switch.h 1 addition, 1 deletionarch/arm64/kvm/hyp/include/hyp/switch.h
- arch/arm64/kvm/sys_regs.c 7 additions, 0 deletionsarch/arm64/kvm/sys_regs.c
Please register or sign in to comment