KVM: arm/arm64: vgic: Do not use spin_lock_irqsave/restore with irq disabled
commitd0823cb346bc6f685f230bdbec51910a329e3fe3
authorJia He <hejianet@gmail.com>
Fri, 3 Aug 2018 13:57:04 +0000 (3 21:57 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Sun, 12 Aug 2018 11:15:18 +0000 (12 12:15 +0100)
tree010a8340716260a359b281420e70066a3d4714e5
parentdc961e5395dde279b77e2cdbdcc99560b89bdfd9
KVM: arm/arm64: vgic: Do not use spin_lock_irqsave/restore with irq disabled

kvm_vgic_sync_hwstate is only called with IRQ being disabled.
There is thus no need to call spin_lock_irqsave/restore in
vgic_fold_lr_state and vgic_prune_ap_list.

This patch replace them with the non irq-safe version.

Signed-off-by: Jia He <jia.he@hxt-semitech.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
[maz: commit message tidy-up]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic.c