Re: [PATCH v11 27/40] KVM: arm64: Trap SME usage in guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 07, 2022 at 03:20:56PM +0000, Mark Brown wrote:
> SME defines two new traps which need to be enabled for guests to ensure
> that they can't use SME, one for the main SME operations which mirrors the
> traps for SVE and another for access to TPIDR2 in SCTLR_EL2.
> 
> For VHE manage SMEN along with ZEN in activate_traps() and the FP state
> management callbacks, along with SCTLR_EL2.EnTPIDR2.  There is no
> existing dynamic management of SCTLR_EL2.
> 
> For nVHE manage TSM in activate_traps() along with the fine grained
> traps for TPIDR2 and SMPRI.  There is no existing dynamic management of
> fine grained traps.
> 
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>

This looks alright to me but I'm not a kvm expert. FWIW:

Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux