]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic-its: Fix restoration of unmapped collections
authorEric Auger <eric.auger@redhat.com>
Fri, 13 Dec 2019 09:42:37 +0000 (10:42 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 19 Jan 2020 16:05:11 +0000 (16:05 +0000)
commit08e9a7e1e3b791ed911e3bfa3b584fe4d08f6419
tree8cd692b2af40a9c26d69ec7d67b00e42800a8519
parent63d8e8d62388ccc31c2f421bbeda09a9db145e2a
KVM: arm/arm64: vgic-its: Fix restoration of unmapped collections

Saving/restoring an unmapped collection is a valid scenario. For
example this happens if a MAPTI command was sent, featuring an
unmapped collection. At the moment the CTE fails to be restored.
Only compare against the number of online vcpus if the rdist
base is set.

Fixes: b33bd03e7ba8b ("KVM: arm64: vgic-its: Collection table save/restore")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20191213094237.19627-1-eric.auger@redhat.com
virt/kvm/arm/vgic/vgic-its.c