KVM: arm/arm64: GICv4: Prevent a VM using GICv4 from being saved
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Oct 2017 14:28:52 +0000 (15:28 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 10 Nov 2017 08:44:36 +0000 (09:44 +0100)
commitbd94e7aea40387524b1d6c76b09785f5c3319116
tree23339b6dab21ef65b4b2091d622305a88352c365
parent374be35e231e818ffbdb3f876e2775f22b727e80
KVM: arm/arm64: GICv4: Prevent a VM using GICv4 from being saved

The GICv4 architecture doesn't make it easy for save/restore to
work, as it doesn't give any guarantee that the pending state
is written into the pending table.

So let's not take any chance, and let's return an error if
we encounter any LPI that has the HW bit set. In order for
userspace to distinguish this error from other failure modes,
use -EACCES as an error code.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/virtual/kvm/devices/arm-vgic-its.txt
virt/kvm/arm/vgic/vgic-its.c