]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5a9cb72d87f8fb8c1aa31ef8616a50674d5438c
tree6c7de64d9506eecb3446fa0c77ae0c3cee667282
parent41e41507e90a36b7373fef83b6c224814702ac08
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