]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Account for RES1 bits in DECLARE_FEAT_MAP() and co
authorMarc Zyngier <maz@kernel.org>
Wed, 10 Dec 2025 17:30:22 +0000 (17:30 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 10:58:20 +0000 (10:58 +0000)
commitc259d763e6b09a463c85ff6b1d20ede92da48d24
tree5d1dfca9d47116f3a3b7b150ce622530cf43261e
parenta035001dea37b885efb934e25057430ae1193d0a
KVM: arm64: Account for RES1 bits in DECLARE_FEAT_MAP() and co

None of the registers we manage in the feature dependency infrastructure
so far has any RES1 bit. This is about to change, as VTCR_EL2 has
its bit 31 being RES1.

In order to not fail the consistency checks by not describing a bit,
add RES1 bits to the set of immutable bits. This requires some extra
surgery for the FGT handling, as we now need to track RES1 bits there
as well.

There are no RES1 FGT bits *yet*. Watch this space.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20251210173024.561160-5-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/config.c
arch/arm64/kvm/emulate-nested.c