linux-stable/drivers/virtio
Rusty Russell 81a8deab1c virtio: handle interrupts after callbacks turned off
Anthony Liguori found double interrupt suppression in the virtio_net
driver, triggered by two skb_recv_done's in a row.  This is because
virtio_ring's interrupt suppression is a best-effort optimization: it
contains no synchronization so the host can miss it and still send
interrupts.

But it's certainly nicer for virtio users if calling disable_cb
actually disables callbacks, so we check for the race in the interrupt
routine.

Note: SMP guests might require syncronization here, but since
disable_cb is actually called from interrupt context, there has to be
some form of synchronization before the next same interrupt handler is
called (Linux guarantees that the same device's irq handler will never
run simultanously on multiple CPUs).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-02-04 23:50:04 +11:00
..
config.c Virtio interface 2007-10-23 15:49:54 +10:00
Kconfig Virtio helper routines for a descriptor ringbuffer implementation 2007-10-23 15:49:55 +10:00
Makefile Virtio helper routines for a descriptor ringbuffer implementation 2007-10-23 15:49:55 +10:00
virtio.c virtio: reset function 2008-02-04 23:50:03 +11:00
virtio_ring.c virtio: handle interrupts after callbacks turned off 2008-02-04 23:50:04 +11:00