]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Introduce data structure tracking both RES0 and RES1 bits
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:13 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 08:59:28 +0000 (08:59 +0000)
commit0879478913dd671b0aed1e3960c4b35fb8546ab4
treec35df73da97322ade1ae8b24fa37a51a7f4ad14c
parenta3c92001812358c35c55c844c1e0d9de8caf13fe
KVM: arm64: Introduce data structure tracking both RES0 and RES1 bits

We have so far mostly tracked RES0 bits, but only made a few attempts
at being just as strict for RES1 bits (probably because they are both
rarer and harder to handle).

Start scratching the surface by introducing a data structure tracking
RES0 and RES1 bits at the same time.

Note that contrary to the usual idiom, this structure is mostly passed
around by value -- the ABI handles it nicely, and the resulting code is
much nicer.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260202184329.2724080-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/nested.c