]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Move redistributor kvm_io_devices
authorAndre Przywara <andre.przywara@arm.com>
Fri, 15 Jul 2016 11:43:22 +0000 (12:43 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 18 Jul 2016 17:09:40 +0000 (18:09 +0100)
commit7d48f2ce74a4ce556511e54003ce247ff11b6080
treefbc225d6e0db2124103c65bbe14834bfc6a0eda1
parent6dc701ef322d7ae12d33d874044aa0ce775ef9f5
KVM: arm/arm64: vgic: Move redistributor kvm_io_devices

Logically a GICv3 redistributor is assigned to a (v)CPU, so we should
aim to keep redistributor related variables out of our struct vgic_dist.

Let's start by replacing the redistributor related kvm_io_device array
with two members in our existing struct vgic_cpu, which are naturally
per-VCPU and thus don't require any allocation / freeing.
So apart from the better fit with the redistributor design this saves
some code as well.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic/vgic-init.c
virt/kvm/arm/vgic/vgic-mmio-v3.c