> -----Original Message----- > From: Xen-devel <xen-devel-boun...@lists.xenproject.org> On Behalf Of > Oleksandr Tyshchenko > Sent: 12 January 2021 21:52 > To: xen-devel@lists.xenproject.org > Cc: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com>; Stefano Stabellini > <sstabell...@kernel.org>; > Julien Grall <jul...@xen.org>; Volodymyr Babchuk > <volodymyr_babc...@epam.com>; Paul Durrant > <p...@xen.org>; Julien Grall <julien.gr...@arm.com> > Subject: [PATCH V4 17/24] xen/ioreq: Introduce domain_has_ioreq_server() > > From: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com> > > This patch introduces a helper the main purpose of which is to check > if a domain is using IOREQ server(s). > > On Arm the current benefit is to avoid calling vcpu_ioreq_handle_completion() > (which implies iterating over all possible IOREQ servers anyway) > on every return in leave_hypervisor_to_guest() if there is no active > servers for the particular domain. > Also this helper will be used by one of the subsequent patches on Arm. > > Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com> > CC: Julien Grall <julien.gr...@arm.com> > [On Arm only] > Tested-by: Wei Chen <wei.c...@arm.com> >
Reviewed-by: Paul Durrant <p...@xen.org>