KVM: arm64: Allow no running vcpu on restoring vgic3 LPI pending status
authorGavin Shan <gshan@redhat.com>
Thu, 26 Jan 2023 23:54:50 +0000 (07:54 +0800)
committerMarc Zyngier <maz@kernel.org>
Sun, 29 Jan 2023 18:46:11 +0000 (18:46 +0000)
commit2f8b1ad2228a7f1f1e2458864f4bfc1cbdf511ed
treea9c7d79283e80e7b610cc5d143c827ad89d113ce
parenta23eaf9368aafa4defcc8904b20391b6ea07bb1e
KVM: arm64: Allow no running vcpu on restoring vgic3 LPI pending status

We don't have a running VCPU context to restore vgic3 LPI pending status
due to command KVM_DEV_ARM_{VGIC_GRP_CTRL, ITS_RESTORE_TABLES} on KVM
device "kvm-arm-vgic-its".

Use vgic_write_guest_lock() to restore vgic3 LPI pending status.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230126235451.469087-4-gshan@redhat.com
Documentation/virt/kvm/api.rst
arch/arm64/kvm/vgic/vgic-v3.c