KVM: arm/arm64: Register ITS iodev when setting base address
authorChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 11:14:57 +0000 (13:14 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 9 May 2017 10:19:42 +0000 (12:19 +0200)
commit30e1b684f0afd94745821f27ce1165226df02ba9
tree6c7de64d9506eecb3446fa0c77ae0c3cee667282
parent6cc40f273b30ef8f7b37f95cd2e6456d652808c0
KVM: arm/arm64: Register ITS iodev when setting base address

We have to register the ITS iodevice before running the VM, because in
migration scenarios, we may be restoring a live device that wishes to
inject MSIs before the VCPUs have started.

All we need to register the ITS io device is the base address of the
ITS, so we can simply register that when the base address of the ITS is
set.

  [ Code to fix concurrency issues when setting the ITS base address and
    to fix the undef base address check written by Marc Zyngier ]

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