virtio: Use spin_lock_irqsave/restore for virtio-pci
authorAnthony Liguori <aliguori@us.ibm.com>
Sun, 2 Mar 2008 22:37:48 +0000 (16:37 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Mar 2008 11:58:13 +0000 (22:58 +1100)
commit27ebe308af7c14aed0711e25817c6a1235bd16ff
treedafd3caaa1591a60a7b79f7027c00bcae30f4a6e
parenta978b30af3bab0dd9af9350eeda25e76123fa28e
virtio: Use spin_lock_irqsave/restore for virtio-pci

virtio-pci acquires its spin lock in an interrupt context so it's necessary
to use spin_lock_irqsave/restore variants.  This patch fixes guest SMP when
using virtio devices in KVM.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci.c