From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CA26F42A97; Mon, 8 May 2023 15:58:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6F5E410ED; Mon, 8 May 2023 15:58:34 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id DBDDB40685 for ; Mon, 8 May 2023 15:58:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683554312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VjdsoNazcn+kCrvuuSJifEd2lLI/5B/3oGowBua9p+Y=; b=e/GY8/V901P6DNNB46KDT2/uTxHrOvcXwOAbEWU2mCr9TvqVYnplA/6ZBPVOStDW7QbyT/ VcvUWeb3BLnlEHSyMQ5P12EdUimvJ065UoDjRBIb/W6lgo2TpXX3ueqp/E+pdNv8pE6NI3 6LLqjDCp54nYakMm5GoTQADyPdsAHfs= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-Wc_tB6yMPBWlSgD409Ymww-1; Mon, 08 May 2023 09:58:31 -0400 X-MC-Unique: Wc_tB6yMPBWlSgD409Ymww-1 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-50bc95a5051so5205242a12.1 for ; Mon, 08 May 2023 06:58:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683554310; x=1686146310; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VjdsoNazcn+kCrvuuSJifEd2lLI/5B/3oGowBua9p+Y=; b=PFouuaUqH4mSTbEHwjM4QbrxVI5kws0IL/XVj0udc8eqy095ljpvqbSifuSzdkuKlY 1JSq3L/F75DivUx4uqw3UzOMMlKva2FohDxxebv5gsftj/cJGliYuN3xMspBOOQsKF61 gZ/UklNa4eel0rjueOI+aDnpVHHssEUAXqcQirZXBuLvn4ZnEegrInw8lW/wF4YX4xpS HJz3F54Zn0wTRWdYDY9vl2O8261IORhRkKUzCGVq1q+UCzCfjEqXaUK8ZmGmgX4w7Xv7 mgvJCePZ0vnvhet3razRXE+xtj16uK81Ac7SlmPD6j2rh4ABBiMM2YO0S3OZbRLPxwpJ URBA== X-Gm-Message-State: AC+VfDzvfnzwxnnrmYIFqL1FEQssViIS0MgW81YRx+a63d2C4g1AT4yq vqrBpVY3K4gEVzAU+vvPSa8eay/isxF6KF3enc422Gn7qfDSgL5nFWPxM+LT4cjuRjj1Cdeowcr aRcw= X-Received: by 2002:a05:6402:1490:b0:50b:d462:7e0 with SMTP id e16-20020a056402149000b0050bd46207e0mr7928720edv.28.1683554310160; Mon, 08 May 2023 06:58:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UShZQG+80elxJilBn13dwsTtZZpURadzp69MkKsouenqyzuLd4VntohOY5sqS/Mp8gkncvg== X-Received: by 2002:a05:6402:1490:b0:50b:d462:7e0 with SMTP id e16-20020a056402149000b0050bd46207e0mr7928709edv.28.1683554309833; Mon, 08 May 2023 06:58:29 -0700 (PDT) Received: from [10.39.192.68] (5920ab7b.static.cust.trined.nl. [89.32.171.123]) by smtp.gmail.com with ESMTPSA id z5-20020aa7cf85000000b0050bc6d0e880sm6182543edx.61.2023.05.08.06.58.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2023 06:58:29 -0700 (PDT) From: Eelco Chaudron To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org Subject: Re: [PATCH v2 0/3] vhost: add device op to offload the interrupt kick Date: Mon, 08 May 2023 15:58:26 +0200 X-Mailer: MailMate (1.14r5964) Message-ID: In-Reply-To: <168069838578.833254.4856666346839028593.stgit@ebuild.local> References: <168069838578.833254.4856666346839028593.stgit@ebuild.local> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 5 Apr 2023, at 14:40, Eelco Chaudron wrote: > This series adds an operation callback which gets called every time the > library wants to call eventfd_write(). This eventfd_write() call could > result in a system call, which could potentially block the PMD thread. > > The callback function can decide whether it's ok to handle the > eventfd_write() now or have the newly introduced function, > rte_vhost_notify_guest(), called at a later time. > > This can be used by 3rd party applications, like OVS, to avoid system > calls being called as part of the PMD threads. Wondering if anyone had a chance to look at this patchset. Cheers, Eelco > v2: - Used vhost_virtqueue->index to find index for operation. > - Aligned function name to VDUSE RFC patchset. > - Added error and offload statistics counter. > - Mark new API as experimental. > - Change the virtual queue spin lock to read/write spin lock. > - Made shared counters atomic. > - Add versioned rte_vhost_driver_callback_register() for > ABI compliance. > > Eelco Chaudron (3): > vhost: Change vhost_virtqueue access lock to a read/write one. > vhost: make the guest_notifications statistic counter atomic. > vhost: add device op to offload the interrupt kick > > > lib/eal/include/generic/rte_rwlock.h | 17 +++++ > lib/vhost/meson.build | 2 + > lib/vhost/rte_vhost.h | 23 ++++++- > lib/vhost/socket.c | 72 ++++++++++++++++++++-- > lib/vhost/version.map | 9 +++ > lib/vhost/vhost.c | 92 +++++++++++++++++++++------- > lib/vhost/vhost.h | 70 ++++++++++++++------- > lib/vhost/vhost_user.c | 14 ++--- > lib/vhost/virtio_net.c | 90 +++++++++++++-------------- > 9 files changed, 288 insertions(+), 101 deletions(-)