KVM: arm/arm64: vgic-v4: Only perform an unmap for valid vLPIs
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 16 Nov 2017 17:58:19 +0000 (17:58 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Nov 2017 15:46:16 +0000 (16:46 +0100)
commita05d1c0d03fd60ed487991e73850421e735c0135
treed655239c4520daf82da3e90abfaa2746154ccf9b
parent686f294f2f1ae40705283dd413ca1e4c14f20f93
KVM: arm/arm64: vgic-v4: Only perform an unmap for valid vLPIs

Before performing an unmap, let's check that what we have was
really mapped the first place.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic-v4.c