Paul Durrant 345f42b4be xen-bus / xen-block: add support for event channel polling
This patch introduces a poll callback for event channel fd-s and uses
this to invoke the channel callback function.

To properly support polling, it is necessary for the event channel callback
function to return a boolean saying whether it has done any useful work or
not. Thus xen_block_dataplane_event() is modified to directly invoke
xen_block_handle_requests() and the latter only returns true if it actually
processes any requests. This also means that the call to qemu_bh_schedule()
is moved into xen_block_complete_aio(), which is more intuitive since the
only reason for doing a deferred poll of the shared ring should be because
there were previously insufficient resources to fully complete a previous
poll.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20190408151617.13025-4-paul.durrant@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
2019-06-24 10:42:29 +01:00
..
2019-06-16 16:16:52 -04:00
2016-10-04 13:28:07 +01:00
2019-06-12 13:20:20 +02:00
2019-05-13 08:58:55 +02:00
2017-01-27 18:07:59 +01:00
2019-06-13 09:34:38 +02:00
2019-06-12 13:20:20 +02:00
2019-02-22 09:42:13 +00:00
2016-05-18 15:04:27 +03:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:20 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 14:43:47 +01:00
2019-06-12 14:43:47 +01:00
2019-05-17 08:16:02 +02:00
2019-06-12 13:20:21 +02:00
2019-06-12 13:20:21 +02:00
2019-06-13 09:34:50 +02:00
2017-01-27 18:07:59 +01:00
2019-02-05 16:50:16 +01:00
2018-12-11 15:45:22 -02:00
2019-06-12 13:20:21 +02:00
2013-04-08 18:13:10 +02:00