KVM: arm64: GICv4.1: Allow non-trapping WFI when using HW SGIs
authorMarc Zyngier <maz@kernel.org>
Wed, 4 Mar 2020 20:33:29 +0000 (20:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 24 Mar 2020 12:15:51 +0000 (12:15 +0000)
commit7bdabad12784cf03d2ba36fc7dec66d4f2bb3174
tree6ff8c01c39816de2fa902156d56c6afb94b85dc8
parentd9c3872cd2f86b7295446e35b4801270669d2960
KVM: arm64: GICv4.1: Allow non-trapping WFI when using HW SGIs

Just like for VLPIs, it is beneficial to avoid trapping on WFI when the
vcpu is using the GICv4.1 SGIs.

Add such a check to vcpu_clear_wfx_traps().

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20200304203330.4967-23-maz@kernel.org
arch/arm64/include/asm/kvm_emulate.h