ARM: KVM: vgic: take distributor lock on sync_hwstate path
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 1 Feb 2013 18:28:30 +0000 (18:28 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Feb 2013 13:29:38 +0000 (13:29 +0000)
commit33c83cb3c1d84b76c8270abe5487e77f83a81b22
tree923e491a5533d96e906a1b67c174c5b152eb680a
parent75da01e127f7db3b23effa6118336d303e7572a7
ARM: KVM: vgic: take distributor lock on sync_hwstate path

Now that the maintenance interrupt handling is actually out of the
handler itself, the code becomes quite racy as we can get preempted
while we process the state.

Wrapping this code around the distributor lock ensures that we're not
preempted and relatively race-free.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/vgic.c