Re: [PATCH 1/3] virtio: VIRTIO_F_NOTIFY_ON_EMPTY to force callback on empty

2008-05-30 Thread Christian Borntraeger
Am Freitag, 30. Mai 2008 schrieb Rusty Russell: > It turns out that life is simpler if the host similarly ignores > callback suppression when the ring is completely empty: the network > driver wants to free up old packets in a timely manner, and otherwise > has to use a timer to poll. > > We have

[PATCH 1/3] virtio: VIRTIO_F_NOTIFY_ON_EMPTY to force callback on empty

2008-05-29 Thread Rusty Russell
virtio allows drivers to suppress callbacks (ie. interrupts) for efficiency (no locking, it's just an optimization). There's a similar mechanism for the host to suppress notifications coming from the guest: in that case, we ignore the suppression if the ring is completely full. It turns out that