KVM: arm/arm64: Refactor vgic_register_redist_iodevs
authorChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 10:18:26 +0000 (12:18 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 9 May 2017 10:19:28 +0000 (12:19 +0200)
commit7fadcd3a859b218fa27c399db0aa8d6d62ad84a9
tree6ec8cc4231fcac6a1b9105c8378fe4dbaf6cf51d
parent497d72d80a789501501cccabdad6b145f9e31371
KVM: arm/arm64: Refactor vgic_register_redist_iodevs

Split out the function to register all the redistributor iodevs into a
function that handles a single redistributor at a time in preparation
for being able to call this per VCPU as these get created.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
virt/kvm/arm/vgic/vgic-mmio-v3.c
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic.h