]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Don't call map_resources when restoring ITS tables
authorChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:43:45 +0000 (14:43 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 9 May 2017 10:19:46 +0000 (12:19 +0200)
commitce7b03017e33e2fb04d0f9947735cb19e0148f64
tree295883861b09b7663fe8d15b018d64af3d844ad1
parentc5a9cb72d87f8fb8c1aa31ef8616a50674d5438c
KVM: arm/arm64: Don't call map_resources when restoring ITS tables

The only reason we called kvm_vgic_map_resources() when restoring the
ITS tables was because we wanted to have the KVM iodevs registered in
the KVM IO bus framework at the time when the ITS was restored such that
a restored and active device can inject MSIs prior to otherwise calling
kvm_vgic_map_resources() from the first run of a VCPU.

Since we now register the KVM iodevs for the redestributors and ITS as
soon as possible (when setting the base addresses), we no longer need
this call and kvm_vgic_map_resources() is again called only when first
running a VCPU.

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