KVM: arm/arm64: Register iodevs when setting redist base and creating VCPUs
authorChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 10:30:24 +0000 (12:30 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 9 May 2017 10:19:36 +0000 (12:19 +0200)
commit1aab6f468c10a1ec3977fb6f7bc12869174d516e
treeb7528f2e3060cf4b17a57a820aa6108687a72c1c
parent72030536ebf5e5e512771922efa472a80f2c969f
KVM: arm/arm64: Register iodevs when setting redist base and creating VCPUs

Instead of waiting with registering KVM iodevs until the first VCPU is
run, we can actually create the iodevs when the redist base address is
set.  The only downside is that we must now also check if we need to do
this for VCPUs which are created after creating the VGIC, because there
is no enforced ordering between creating the VGIC (and setting its base
addresses) and creating the VCPUs.

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