]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: vgic-its: Fix pending table sync
authorEric Auger <eric.auger@redhat.com>
Wed, 12 Apr 2017 12:13:27 +0000 (14:13 +0200)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:39:21 +0000 (14:39 +0200)
commite2ab435a49eacc082b9698fbce0260c3ebfad77a
treeddaf179a855353369965455c241c8283df235de2
parent1d90d5c75c1ad71373eb7e8adf3b896ac4fb948e
KVM: arm64: vgic-its: Fix pending table sync

In its_sync_lpi_pending_table() we currently ignore the
target_vcpu of the LPIs. We sync the pending bit found in
the vcpu pending table even if the LPI is not targeting it.

Also in vgic_its_cmd_handle_invall() we are supposed to
read the config table data for the LPIs associated to the
collection ID. At the moment we refresh all LPI config
information.

This patch passes a vpcu to vgic_copy_lpi_list() so that
this latter returns a snapshot of the LPIs targeting this
CPU and only those.

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