]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52e7ea65a03a9287d4dc89b1115ce2b4726c1ecb
treeb7528f2e3060cf4b17a57a820aa6108687a72c1c
parent99468576360d138906ee534bf5246992a6d0fdcf
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