]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Just advertise SEIS as 0 when emulating ICC_CTLR_EL1
authorWill Deacon <will@kernel.org>
Tue, 22 Oct 2024 14:40:15 +0000 (15:40 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 23 Oct 2024 23:21:45 +0000 (23:21 +0000)
commitad361ed4771da6aebb3ca6184a81ae4b8ad9f0b6
tree9527d5fedf0419f31598971d434a76fd5141027b
parent8e929cb546ee42c9a61d24fae60605e9e3192354
KVM: arm64: Just advertise SEIS as 0 when emulating ICC_CTLR_EL1

ICC_CTLR_EL1 accesses from a guest are trapped and emulated on systems
with broken SEIS support and without FEAT_GICv3_TDIR. On such systems,
we mask SEIS support in 'kvm_vgic_global_state.ich_vtr_el2' and so the
value of ICC_CTLR_EL1.SEIS visible to the guest is always zero.

Simplify the ICC_CTLR_EL1 read emulation to return 0 for the SEIS field,
rather than reading an always-zero value from the global state.

Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241022144016.27350-2-will@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/vgic-v3-sr.c