[PATCH v2] vhost: add IRQ suppression

Maxime Coquelin maxime.coquelin at redhat.com
Thu Aug 31 16:45:34 CEST 2023



On 8/31/23 16:44, Maxime Coquelin wrote:
> Guest notifications offloading, which has been introduced
> in v23.07, aims at offloading syscalls out of the datapath.
> 
> This patch optimizes the offloading by not offloading the
> guest notification for a given virtqueue if one is already
> being offloaded by the application.
> 
> With a single VDUSE device, we can already see few
> notifications being suppressed when doing throughput
> testing with Iperf3. We can expect to see much more being
> suppressed when the offloading thread is under pressure.
> 
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
>   lib/vhost/vhost.c |  4 ++++
>   lib/vhost/vhost.h | 27 +++++++++++++++++++++------
>   2 files changed, 25 insertions(+), 6 deletions(-)
> 

No functionnal change in the V2, just rebased so that CI can apply.

Maxime



More information about the dev mailing list