KVM: arm64: nv: Filter out unsupported features from ID regs
authorMarc Zyngier <maz@kernel.org>
Thu, 9 Feb 2023 17:58:19 +0000 (17:58 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 11 Feb 2023 10:13:30 +0000 (10:13 +0000)
commit9f75b6d447d712b6ed9abc869eedf456fe7f5e9b
tree9b753d6ac54a1fb3df0005a546d72a2e886811f9
parent280b748e871e5a9bd61fc13019b8cbda6e0242dd
KVM: arm64: nv: Filter out unsupported features from ID regs

As there is a number of features that we either can't support,
or don't want to support right away with NV, let's add some
basic filtering so that we don't advertize silly things to the
EL2 guest.

Whilst we are at it, advertize FEAT_TTL as well as FEAT_GTG, which
the NV implementation will implement.

Reviewed-by: Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230209175820.1939006-18-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_nested.h
arch/arm64/kvm/Makefile
arch/arm64/kvm/nested.c [new file with mode: 0644]
arch/arm64/kvm/sys_regs.c