KVM: arm64: vgic: move irq->get_input_level into an ops structure
authorMarc Zyngier <maz@kernel.org>
Mon, 1 Mar 2021 17:39:39 +0000 (17:39 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 1 Jun 2021 09:45:59 +0000 (10:45 +0100)
commitdb75f1a33f82ad332b6e139c5960e01999969d2c
tree07fad6697aebf6c31113c7ff510a3de5854f594b
parentf6c3e24fb721dda247f6691c809d6e6c413f22c7
KVM: arm64: vgic: move irq->get_input_level into an ops structure

We already have the option to attach a callback to an interrupt
to retrieve its pending state. As we are planning to expand this
facility, move this callback into its own data structure.

This will limit the size of individual interrupts as the ops
structures can be shared across multiple interrupts.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/vgic/vgic.c
include/kvm/arm_vgic.h