]> 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)
commit92d8d148ccebc6b334cdf2d4ca6f4d115f745eaa
tree6c7de64d9506eecb3446fa0c77ae0c3cee667282
parent637e36619d37aa5eeb2f21a571626b496ea38e12
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