On Thu, Sep 04, 2014 at 11:39:10AM +0300, Michael S. Tsirkin wrote: > devices rely on packet callbacks eventually running, > but we violate this rule whenever we purge the queue. > To fix, invoke callbacks on all packets on purge. > Set length to 0, this way callers can detect that > this happened and re-queue if necessary. > > Cc: qemu-sta...@nongnu.org > Cc: Jason Wang <jasow...@redhat.com> > Signed-off-by: Michael S. Tsirkin <m...@redhat.com> > --- > net/queue.c | 3 +++ > 1 file changed, 3 insertions(+)
Merged "virtio: don't call device on !vm_running" before this to prevent the assertion failures that Jason mentioned. Thanks, applied to my net tree: https://github.com/stefanha/qemu/commits/net Stefan
pgpzRgl9HJuCO.pgp
Description: PGP signature