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)
commitb6909a659f8d5de2df36cabb1c0505d262996a24
treee0aa8769ddd5f3203a071b9fc90331c08d5cec73
parente40cc57bac792713ff6a1b80a1f67b54c05e5e21
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