]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Add REQUIRES_E2H1 constraint as configuration flags
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:20 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 09:01:41 +0000 (09:01 +0000)
commitad90512f12fef5506d1f72cdfbd720eb701eab8c
tree364ae2c6723a2d31bb01c560babe84a2227f362c
parent8d94458263bb2d44d8ba461327a1e18c05cfc453
KVM: arm64: Add REQUIRES_E2H1 constraint as configuration flags

A bunch of EL2 configuration are very similar to their EL1 counterpart,
with the added constraint that HCR_EL2.E2H being 1.

For us, this means HCR_EL2.E2H being RES1, which is something we can
statically evaluate.

Add a REQUIRES_E2H1 constraint, which allows us to express conditions
in a much simpler way (without extra code). Existing occurrences are
converted, before we add a lot more.

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