]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Add reg_feat_map_desc to describe full register dependency
authorMarc Zyngier <maz@kernel.org>
Thu, 18 Sep 2025 15:13:54 +0000 (16:13 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Sep 2025 12:43:25 +0000 (13:43 +0100)
commit559442afea8812814135ec6fa33bc62c9d09f5c4
tree4f2b73b960e20ce73ce635c58b493b1963a40bfc
parentc3b3bbd160d2014a638d40bda17909a0afd85d09
KVM: arm64: Add reg_feat_map_desc to describe full register dependency

struct reg_bits_to_feat_map is great to describe bit-to-feature
dependency, but not so much to describe register-to-feature
dependency. Yet both need to exist.

Add a new reg_feat_map_desc structure to describe this.

Extra complexity is added by the need to source the RES0 bits from
the runtime-computed FGT masks, for which we need an extra flag
and extra complexity. Oh well.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/config.c