]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commit8f6cdc1c2eec20c3bbf3a83ad0e1db165f709917
treefbc225d6e0db2124103c65bbe14834bfc6a0eda1
parent40c4f8d27296428c894551c9e30d8016a2551116
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