KVM: arm64: Handle trap of tagged Set/Way CMOs
authorMarc Zyngier <maz@kernel.org>
Mon, 15 May 2023 20:46:01 +0000 (21:46 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 24 May 2023 12:45:18 +0000 (13:45 +0100)
commitd282fa3c5ccb7a0029c418f358143689553b6447
treec382bd9e9d329db31c832aab4e7174b769101d7d
parent8d0f019e4c4f2ee2de81efd9bf1c27e9fb3c0460
KVM: arm64: Handle trap of tagged Set/Way CMOs

We appear to have missed the Set/Way CMOs when adding MTE support.
Not that we really expect anyone to use them, but you never know
what stupidity some people can come up with...

Treat these mostly like we deal with the classic S/W CMOs, only
with an additional check that MTE really is enabled.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20230515204601.1270428-3-maz@kernel.org
arch/arm64/kvm/sys_regs.c