]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Simplify handling of full register invalid constraint
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:25 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 09:02:13 +0000 (09:02 +0000)
commitd784cfe697abdfd53f332d39d0cffcf03cbcafaa
tree28ca11b82aaeb86705374174cd4ed77183e043ae
parentab1f377b4c930e8d117cc461bd64d5866fc6aab8
KVM: arm64: Simplify handling of full register invalid constraint

Now that we embed the RESx bits in the register description, it becomes
easier to deal with registers that are simply not valid, as their
existence is not satisfied by the configuration (SCTLR2_ELx without
FEAT_SCTLR2, for example). Such registers essentially become RES0 for
any bit that wasn't already advertised as RESx.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260202184329.2724080-17-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/config.c