]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: remove invalid interrupt forcing logic.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 13 Jun 2009 04:27:01 +0000 (22:27 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:57:02 +0000 (22:27 +0930)
commit61b7b7d46c8a81c038d371acd0bcbd119089c3ff
treeb5f0631172db5d97e0a5c6b8a6bc0f83c4a4eed5
parentf79fc27ae7c8569985aea708860d01d2bbe13cfa
lguest: remove invalid interrupt forcing logic.

dd364dcea7d97bbdb65376f357c78734984a62d7 (lguest: notify on empty) introduced
lguest support for the VIRTIO_F_NOTIFY_ON_EMPTY flag, but in fact it turned on
interrupts all the time.

Because we always process one buffer at a time, the inflight count is always 0
when call trigger_irq and so we always ignore VRING_AVAIL_F_NO_INTERRUPT from
the Guest.

It should be looking to see if there are more buffers in the Guest's queue:
if it's empty, then we force an interrupt.

This makes little difference, since we usually have an empty queue; but
that's the subject of another patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Documentation/lguest/lguest.c