]> git.ipfire.org Git - thirdparty/qemu.git/commit
xen: flush queue when getting an event
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Aug 2012 14:45:57 +0000 (16:45 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:18 +0000 (21:44 -0500)
commit65a2f8e27c335c7edf4d6c8d1e1b7fb0090c72ff
tree2d2c1560322cef9feef24757846a7b07be561d5e
parent7575a6d2f2747f5d6ef263ad002a731402853fa6
xen: flush queue when getting an event

xen does not have a register that, when written, will cause can_receive
to go from false to true.  However, flushing the queue can be attempted
whenever the front-end raises its side of the Xen event channel.  There
is a single event channel for tx and rx.

Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
(cherry picked from commit a98b140223d3a627eab7ee3ddec645bab630d756)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/xen_nic.c