]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: GICv4: Use the doorbell interrupt as an unblocking source
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Oct 2017 14:28:49 +0000 (15:28 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 10 Nov 2017 08:43:22 +0000 (09:43 +0100)
commit85581da3057dd516abb16d09a6ec78501f37133a
tree8713bc9daf8417cd984eea21872094fee01a8102
parent0d56e89712dcaf862989ac3095ff03042b3a58fd
KVM: arm/arm64: GICv4: Use the doorbell interrupt as an unblocking source

The doorbell interrupt is only useful if the vcpu is blocked on WFI.
In all other cases, recieving a doorbell interrupt is just a waste
of cycles.

So let's only enable the doorbell if a vcpu is getting blocked,
and disable it when it is unblocked. This is very similar to
what we're doing for the background timer.

Reviewed-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/arm.c
virt/kvm/arm/vgic/vgic-v4.c