diff options
author | Christoffer Dall <cdall@linaro.org> | 2017-05-08 14:14:57 +0300 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-05-09 13:19:42 +0300 |
commit | 30e1b684f0afd94745821f27ce1165226df02ba9 (patch) | |
tree | 6c7de64d9506eecb3446fa0c77ae0c3cee667282 /virt/kvm/arm/vgic/vgic-v3.c | |
parent | 6cc40f273b30ef8f7b37f95cd2e6456d652808c0 (diff) | |
download | linux-30e1b684f0afd94745821f27ce1165226df02ba9.tar.xz |
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>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-v3.c')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-v3.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/virt/kvm/arm/vgic/vgic-v3.c b/virt/kvm/arm/vgic/vgic-v3.c index bb35078f4e40..8fa737edde6f 100644 --- a/virt/kvm/arm/vgic/vgic-v3.c +++ b/virt/kvm/arm/vgic/vgic-v3.c @@ -397,14 +397,6 @@ int vgic_v3_map_resources(struct kvm *kvm) goto out; } - if (vgic_has_its(kvm)) { - ret = vgic_register_its_iodevs(kvm); - if (ret) { - kvm_err("Unable to register VGIC ITS MMIO regions\n"); - goto out; - } - } - dist->ready = true; out: |