]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Simplify FIXED_VALUE handling
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:19 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 09:01:41 +0000 (09:01 +0000)
commit8d94458263bb2d44d8ba461327a1e18c05cfc453
tree7e6f8e6a18ac366d32d408e12029406ad3407aea
parentfb86207bdc5bf4d5743eab78d6babbecda6c2609
KVM: arm64: Simplify FIXED_VALUE handling

The FIXED_VALUE qualifier (mostly used for HCR_EL2) is pointlessly
complicated, as it tries to piggy-back on the previous RES0 handling
while being done in a different phase, on different data.

Instead, make it an integral part of the RESx computation, and allow
it to directly set RESx bits. This is much easier to understand.

It also paves the way for some additional changes to that will allow
the full removal of the FIXED_VALUE handling.

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