]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Support a vgic interrupt line level sample function
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 27 Oct 2017 17:30:09 +0000 (19:30 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 2 Jan 2018 09:05:46 +0000 (10:05 +0100)
commitdd8f938ca6c42059b7ca089d94a139f1b95bfe0c
treee0aa8769ddd5f3203a071b9fc90331c08d5cec73
parent6cf41d041f60207c53f80fb7a1e97e4073e3445d
KVM: arm/arm64: Support a vgic interrupt line level sample function

The GIC sometimes need to sample the physical line of a mapped
interrupt.  As we know this to be notoriously slow, provide a callback
function for devices (such as the timer) which can do this much faster
than talking to the distributor, for example by comparing a few
in-memory values.  Fall back to the good old method of poking the
physical GIC if no callback is provided.

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