[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 3/3] xen-bus / xen-block: add support for event
From: |
Anthony PERARD |
Subject: |
Re: [Qemu-block] [PATCH 3/3] xen-bus / xen-block: add support for event channel polling |
Date: |
Wed, 10 Apr 2019 16:09:18 +0100 |
User-agent: |
Mutt/1.11.4 (2019-03-13) |
On Mon, Apr 08, 2019 at 04:16:17PM +0100, Paul Durrant wrote:
> 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 <address@hidden>
> ---
Reviewed-by: Anthony PERARD <address@hidden>
Thanks,
--
Anthony PERARD
- [Qemu-block] [PATCH 1/3] xen-bus: use a separate fd for each event channel, (continued)
[Qemu-block] [PATCH 3/3] xen-bus / xen-block: add support for event channel polling, Paul Durrant, 2019/04/08
- Re: [Qemu-block] [PATCH 3/3] xen-bus / xen-block: add support for event channel polling,
Anthony PERARD <=