Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2847490rwl; Tue, 27 Dec 2022 00:03:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsNnDeCO2gtRxp0ZfXvGM8FfUcYwE5DYrOK3B1Tpj9O+SluNNU8G5Gs2PhKRHIFbilZCK3L X-Received: by 2002:a17:906:5dd2:b0:7c1:7010:f413 with SMTP id p18-20020a1709065dd200b007c17010f413mr21162958ejv.19.1672128196262; Tue, 27 Dec 2022 00:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672128196; cv=none; d=google.com; s=arc-20160816; b=WHCEvbi2QVtnPy53pWPYqttEiOdAD7r2EheX8noCgWlzb9Egk2ANEfiQK4K9Apf79G 8VhXduy7S9jkOK1WbK0/11lFZr37KBYCH4FNzyp5V959HDNvkI7uor2eJg2pcGPKTMtL PZUMdiHNe7RWijSzGzPssFe90CdgPzFJNUMMqZjTLHyPI2CcvNmr9tDnDa1PU5i/LXXn srWvZOiCD52jAZyvx/HjwpeHt6Lp44z4W4XpKzrRMQ0nHg+HdCbevfa6wDYZHWb2QxkY /99zkmQMrFCWDJ3pRnvfcDXZSIhofioJjtufzTjRoiofivGRML7pz4e8LAVfaUIkGuR2 6Arg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7v/WSJyZmtBjH1RduwJIBnIVDn9u078UD/StpnslVx0=; b=ns97YvqtuEILUDYwiBud9RHGkMMRpG8bix2v/QNtEDqMfcVU2/Su5k9M3Zru7EcOeY A3bpjK6QaZKOFHvMaNeHf37R5N7aj5DEkEbzhAxcKdMEtJjLFhjjFBgNRFK6qa88UPgA 6+biNftn8jtdpZSrnE+wUUwxEpxrVeHzU9To8ownA3a0A0rXTyCcIEuWVvDtPpfXEU3a 45joqF2w2ts7x7+nuYx3xch+gK0OwvTIXhpS8q/8PuUjx3KqsyFAWlMhsECqgPtN9BWV EJBnYapLEv9QBKxNP4/46IO+y5OeWoLoZ9g6Zx59Flun38VYxgxhvmJRhRXiqLrh8hhg EVSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=mDjhdOb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk34-20020a1709077fa200b008366ae33ecesi10260438ejc.171.2022.12.27.00.03.00; Tue, 27 Dec 2022 00:03:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@igel-co-jp.20210112.gappssmtp.com header.s=20210112 header.b=mDjhdOb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbiL0H5w (ORCPT + 66 others); Tue, 27 Dec 2022 02:57:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbiL0H5a (ORCPT ); Tue, 27 Dec 2022 02:57:30 -0500 Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E253B04 for ; Mon, 26 Dec 2022 23:57:24 -0800 (PST) Received: by mail-ua1-x92e.google.com with SMTP id x24so2784693uaf.4 for ; Mon, 26 Dec 2022 23:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7v/WSJyZmtBjH1RduwJIBnIVDn9u078UD/StpnslVx0=; b=mDjhdOb+37hZkSU5zz/DbB2FXU0Pc/729sq2tkWFJiYAVkgTfJKuUpOSXeo0P8EzEI bhvix75DeyyFatTBY3VZFtz+3N0uYxzvYQyIRe3J2bhYKTyltbqH3tHftOLiqj30uybe u4Ctr0Gk9w3V2DMnaAWShGbvxy33VSLGYTfcJXxyi0g6ADHstijwy8Mb6Ux2lh5SlkIF ylW1Upb/0Njy0ENduTaULY90gM/vB/jM/88JULcTRxcNXIchHnvyUw6EzkLggnuEyXNi nNZ9AVJDThH5Gy1xpZyGD5iPmx+Ez0gJ4ZgmpLUj6TOx1lWdtd2mxwaRoFaJNuny/6aF 3XNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7v/WSJyZmtBjH1RduwJIBnIVDn9u078UD/StpnslVx0=; b=kzg4ffwPBQYL1WXKTeQm8CIRpI2nu90kCtV9gUnYhLJyhJMG/xXJQhVDMzwpLtF/M9 kVn93z21v0lDTWuZvDK/q37OIVG7O41bcd00O4/SlOM2jzRqO+ku+ytNf7jSBi1DL0Xg GEp2DBVljIBWpdfJTF0WUrhe5uHLjmbzN7EOFncx8aRf1clCQBAZkFB6N9alHJz5byFh JxpOCjSBCWGOBKECxcFjJ96/3BPBit4um0S21Wk7JEc7wnRb9PhRUbO1PwkEyArEH4Ln kZWjdbuDd2Wn2f4iPNc/+6OjP1l2On+wZGkbB0XXu6D0OAiZOS7xgLfnqjVIfcCsqqZa nC+w== X-Gm-Message-State: AFqh2kpwH/kWPjZns0NmgmzbrWENIRWO6P6BgUkFPZddd0Bqzmm5VLB0 DH07gbGjJnSlIK4yqji2mrB3uqZ7mtBc7uGb8nDQrw== X-Received: by 2002:ab0:2398:0:b0:3fe:c0cb:aa43 with SMTP id b24-20020ab02398000000b003fec0cbaa43mr1886262uan.72.1672127843661; Mon, 26 Dec 2022 23:57:23 -0800 (PST) MIME-Version: 1.0 References: <20221227022528.609839-1-mie@igel.co.jp> <20221227022528.609839-3-mie@igel.co.jp> <20221227020425-mutt-send-email-mst@kernel.org> <20221227025534-mutt-send-email-mst@kernel.org> In-Reply-To: <20221227025534-mutt-send-email-mst@kernel.org> From: Shunsuke Mie Date: Tue, 27 Dec 2022 16:57:12 +0900 Message-ID: Subject: Re: [RFC PATCH 2/9] vringh: remove vringh_iov and unite to vringh_kiov To: "Michael S. Tsirkin" Cc: Jason Wang , Rusty Russell , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2022=E5=B9=B412=E6=9C=8827=E6=97=A5(=E7=81=AB) 16:56 Michael S. Tsirkin : > > On Tue, Dec 27, 2022 at 04:13:49PM +0900, Shunsuke Mie wrote: > > 2022=E5=B9=B412=E6=9C=8827=E6=97=A5(=E7=81=AB) 16:05 Michael S. Tsirkin= : > > > > > > On Tue, Dec 27, 2022 at 02:04:03PM +0800, Jason Wang wrote: > > > > On Tue, Dec 27, 2022 at 10:25 AM Shunsuke Mie wrot= e: > > > > > > > > > > struct vringh_iov is defined to hold userland addresses. However,= to use > > > > > common function, __vring_iov, finally the vringh_iov converts to = the > > > > > vringh_kiov with simple cast. It includes compile time check code= to make > > > > > sure it can be cast correctly. > > > > > > > > > > To simplify the code, this patch removes the struct vringh_iov an= d unifies > > > > > APIs to struct vringh_kiov. > > > > > > > > > > Signed-off-by: Shunsuke Mie > > > > > > > > While at this, I wonder if we need to go further, that is, switch t= o > > > > using an iov iterator instead of a vringh customized one. > > > > > > > > Thanks > > > > > > Possibly, but when doing changes like this one needs to be careful > > > to avoid breaking all the inlining tricks vringh relies on for > > > performance. > > Definitely, I'm evaluating the performance using vringh_test. I'll add = a > > result of the evaluation. But, If there are other evaluation methods, c= ould you > > please tell me? > > high level tests over virtio blk and net are possible, but let's > start with vringh_test. Ok, I'll do it. > > > -- > > > MST > > > > > > > Best, > > Shunsuke >