OSDN Git Service

KVM: arm64: vgic-v4: Initialize GICv4.1 even in the absence of a virtual ITS
authorMarc Zyngier <maz@kernel.org>
Fri, 24 Apr 2020 14:30:30 +0000 (15:30 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Apr 2020 11:50:23 +0000 (12:50 +0100)
commit958e8e14fd24c0aa1fe6a6beb2b985cb638577d6
tree79d1d0a2307a2459f4e2f419b74189784e4f7785
parent6e977984f6d8e5689e079de1fd2e337cd17dcca5
KVM: arm64: vgic-v4: Initialize GICv4.1 even in the absence of a virtual ITS

KVM now expects to be able to use HW-accelerated delivery of vSGIs
as soon as the guest has enabled thm. Unfortunately, we only
initialize the GICv4 context if we have a virtual ITS exposed to
the guest.

Fix it by always initializing the GICv4.1 context if it is
available on the host.

Fixes: 2291ff2f2a56 ("KVM: arm64: GICv4.1: Plumb SGI implementation selection in the distributor")
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
virt/kvm/arm/vgic/vgic-init.c
virt/kvm/arm/vgic/vgic-mmio-v3.c