]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d0233a6f29b7c9cbbd156f2748e155a622c349e
tree923e491a5533d96e906a1b67c174c5b152eb680a
parent28c0201c4e0e8bc289c9a7ceaf9fffa11a4c694d
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