KVM: arm64: GICv4.1: Give a chance to save VLPI state
authorShenming Lu <lushenming@huawei.com>
Mon, 22 Mar 2021 06:01:58 +0000 (14:01 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 24 Mar 2021 18:12:21 +0000 (18:12 +0000)
commit8082d50f4817ff6a7e08f4b7e9b18e5f8bfa290d
tree64e6c248e66806893054251eb754a2e75e4e0558
parent12df7429213abbfa9632ab7db94f629ec309a58b
KVM: arm64: GICv4.1: Give a chance to save VLPI state

Before GICv4.1, we don't have direct access to the VLPI state. So
we simply let it fail early when encountering any VLPI in saving.

But now we don't have to return -EACCES directly if on GICv4.1. Let’s
change the hard code and give a chance to save the VLPI state (and
preserve the UAPI).

Signed-off-by: Shenming Lu <lushenming@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210322060158.1584-7-lushenming@huawei.com
Documentation/virt/kvm/devices/arm-vgic-its.rst
arch/arm64/kvm/vgic/vgic-its.c