diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-05 05:50:04 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-04 13:50:04 +0100 |
commit | 81a8deab1ce3816c6a89e3429e234e7d3686da94 (patch) | |
tree | d62e7dcc09dddd0edc6d507e7b219c16e66d3b02 /drivers/Kconfig | |
parent | virtio: reset function (diff) | |
download | linux-81a8deab1ce3816c6a89e3429e234e7d3686da94.tar.xz linux-81a8deab1ce3816c6a89e3429e234e7d3686da94.zip |
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>
Diffstat (limited to 'drivers/Kconfig')
0 files changed, 0 insertions, 0 deletions