Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3863259rwl; Mon, 27 Mar 2023 22:16:29 -0700 (PDT) X-Google-Smtp-Source: AKy350bHeFNxmMw4MDVQ31CuZpAIdSGXm8KLvaLG1h09EFPShHeoLrkFw0cCU/ffxOm4nG+bskeD X-Received: by 2002:a17:906:ee8b:b0:93e:8791:7d8e with SMTP id wt11-20020a170906ee8b00b0093e87917d8emr920036ejb.2.1679980589050; Mon, 27 Mar 2023 22:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679980589; cv=none; d=google.com; s=arc-20160816; b=XRiASp1SSIVnvDocU1vl/8MtGEf0GYQp/EJpCnqWZ9g3vfo0tsRJzYneBAE9o+S24N v+aLyFpYq1FlqACECt3RfSwYZM6OwqWTOL32dNbJMwipczGa3oRK5asvvUM/0NfUw70w 19ZjG+acuDBdm2q+A+olGD+LezwhDIcoBNCz1j1c4aSo5gn2AXpbK6EI3diRuCDRcpbX iZQJbRlkmEGnvwngbR5UUSfcp6Cv8EOBP+NlV0q78ktmD48cgnWdNEIxi/zJTLnzMtug COCI4kzGbdJQBa1mKkprVyyhgW51UcNBfo+FyikcbWYTCMPqj9GHLfSxefXK8NU8X2kX NBag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:user-agent :in-reply-to:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=9Avr+yTfa9LLK9saCK49G1DKCcPcrY/twlH1AMLYC+Y=; b=eEnwdMs4BWJkJmV+XTsAQdTmb5sk8HUyJEfKSVDN3RNxCmQ+gdrOpBcLfSlxzrJCR6 jmZlAtYBNWcCv2xwydQJrudZyEyXFoWpeelqfcIcRZ7E5OT2hs5RAoYKCJewS0z6YXMC 4s5omeQBvbpEe8H5eEU/bXDalt8G/V0w8qIOBDaxs1KNvIfou23IN5dc8PMLwm8WOwAV Ii0ICnBsWZ2ZuR5zgWqTXz78GFmfRSyYNvNmX5fMM0H5FAp6fUynS3J8VNW6kQae3X1U A7jEPJkaylKgGor8nrOU60F4brE3XtuVX7K1Tycu/5tEU4qLWqOjWDv9LjwNBcQUy5D5 GpJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CdqapUn+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kv17-20020a17090778d100b00925bb64d9dcsi26826198ejc.448.2023.03.27.22.16.02; Mon, 27 Mar 2023 22:16:29 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=CdqapUn+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232140AbjC1FLf (ORCPT + 99 others); Tue, 28 Mar 2023 01:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbjC1FLa (ORCPT ); Tue, 28 Mar 2023 01:11:30 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECB54210E for ; Mon, 27 Mar 2023 22:11:27 -0700 (PDT) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230328051123epoutp047010c41923b7feba113b2f5fb936bdc7~QfSrQaxH61059810598epoutp04K for ; Tue, 28 Mar 2023 05:11:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230328051123epoutp047010c41923b7feba113b2f5fb936bdc7~QfSrQaxH61059810598epoutp04K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1679980283; bh=9Avr+yTfa9LLK9saCK49G1DKCcPcrY/twlH1AMLYC+Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CdqapUn+yKWgSQBQ604LYFowne4Z+4wvN0Cd6hAcVtcqiiXqH+9J+Y/c1ydGMOGuT o24dxLoTlj9Gb1eSGLpHWD/McWJ7T954pXRhJWoDrD0rM5D+YhYev71cP0jfuJR7uM iCKN29JLrifFJ8Rw18M0B0L69KFeYSJBXvYi9qfc= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20230328051123epcas5p35abba1121e835d343c49beaaa5ded462~QfSq7Hdhn0185101851epcas5p3U; Tue, 28 Mar 2023 05:11:23 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.177]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4PlyT53s7vz4x9QK; Tue, 28 Mar 2023 05:11:21 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A7.E9.55678.8F672246; Tue, 28 Mar 2023 14:11:20 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20230328051120epcas5p23b4a173dadbd6f125c881d3809202d85~QfSnsiGbd1367713677epcas5p2m; Tue, 28 Mar 2023 05:11:20 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230328051120epsmtrp2790b231483430685416c7b3c303e01a2~QfSnrlTFx0876108761epsmtrp2K; Tue, 28 Mar 2023 05:11:20 +0000 (GMT) X-AuditID: b6c32a4a-6a3ff7000000d97e-be-642276f89e8a Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 39.F9.18071.7F672246; Tue, 28 Mar 2023 14:11:19 +0900 (KST) Received: from green5 (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230328051117epsmtip1945862bfadb3271bf9b732bc79c0b27f~QfSluiTd_2317323173epsmtip1w; Tue, 28 Mar 2023 05:11:17 +0000 (GMT) Date: Tue, 28 Mar 2023 10:40:37 +0530 From: Kanchan Joshi To: Ming Lei Cc: Jens Axboe , io-uring@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi , ZiyangZhang , Xiaoguang Wang , Bernd Schubert , Pavel Begunkov , Stefan Hajnoczi Subject: Re: [PATCH V4 00/17] io_uring/ublk: add IORING_OP_FUSED_CMD Message-ID: <20230328051037.GB8405@green5> MIME-Version: 1.0 In-Reply-To: <20230324135808.855245-1-ming.lei@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJsWRmVeSWpSXmKPExsWy7bCmhu6PMqUUgxX9AhZzVm1jtFh9t5/N 4uH7J2wW71rPsVjsvaVtcXnXHDaLQ5ObmSxm9p1hsng96T+rxaa/J5ks2p9OYnTg9pjytI/d Y+esu+wel8+Weux8aOnxft9VNo/Pm+QC2KKybTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOAjlNSKEvMKQUKBSQWFyvp29kU5ZeWpCpk5BeX2CqlFqTk FJgU6BUn5haX5qXr5aWWWBkaGBiZAhUmZGe0v3/OVLCTp6Lz7X7GBsZNXF2MnB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Q5ObmSxm9p1hsng96T+rxaa/J5ks2p9OYnTg9pjytI/d Y+esu+wel8+Weux8aOnxft9VNo/Pm+QC2KK4bFJSczLLUov07RK4Mp6f/s9U8IKz4vDb52wN jL/Zuxg5OSQETCS+PnrB3MXIxSEksJtR4lT3V6iEuETztR9QtrDEyn/P2SGKHjFKfF+6m7GL kYODRUBV4s+yQhCTTUBT4sLkUpByEQElibt3V4OVMwv8ZZJ4fOcNK0hCWMBF4tjNBmYQm1dA S2Ld9k6oxb2MEnMuPWSFSAhKnJz5hAXEZhYwk5i3+SEzyAJmAWmJ5f84QMKcAlYScw51MoHY ogLKEge2HWeawCg4C0n3LCTdsxC6FzAyr2KUTC0ozk3PLTYsMMxLLdcrTswtLs1L10vOz93E CI4XLc0djNtXfdA7xMjEwXiIUYKDWUmEd7O3YooQb0piZVVqUX58UWlOavEhRmkOFiVx3gtd J+OFBNITS1KzU1MLUotgskwcnFINTH6n2CYf8zp2sOgn+7mPVSpCkhcPadod5ZQ4/73Vv26p u/P2L3lsXYU5N6wb787avGt35o1VThVdpxM+xfRcbk836KrqyHurzpqwOGB7bOWHyZs+POAr rTwY9ptXlilcZp3ZVN1ladu5d+xl7Tm0qGufXKinWuKZmfc4nfa8qMp5deCme9CxGT58G/0v 837acG9bEbvkGiYe/SmfpQx3bedqmP/vtjbHRaMjYi4z7c7on3p9aVfTlp9WNid6q7eH1vNZ iRueqX/Ql/R8X+PqZUL5u1kkPEpTD76WEfGwb5lzTV1FJPXrIY1igUeR9bq8C/wXGTJe5kle VhqyqKJnTZ2jg4fiz7RvoVtEXA4dUmIpzkg01GIuKk4EANNV18YGAwAA X-CMS-MailID: 20230328051120epcas5p23b4a173dadbd6f125c881d3809202d85 X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----KU2CxbTk4.ftA7vvsvzLW4bt.-m_7jRTbTuK1k18jgDVn8pS=_11136e_" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230324135916epcas5p37aad4c49c76c05567a484377d8909092 References: <20230324135808.855245-1-ming.lei@redhat.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 ------KU2CxbTk4.ftA7vvsvzLW4bt.-m_7jRTbTuK1k18jgDVn8pS=_11136e_ Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Disposition: inline On Fri, Mar 24, 2023 at 09:57:51PM +0800, Ming Lei wrote: >Hello Jens, > >Add IORING_OP_FUSED_CMD, it is one special URING_CMD, which has to >be SQE128. The 1st SQE(master) is one 64byte URING_CMD, and the 2nd >64byte SQE(slave) is another normal 64byte OP. For any OP which needs >to support slave OP, io_issue_defs[op].fused_slave needs to be set as 1, >and its ->issue() can retrieve/import buffer from master request's >fused_cmd_kbuf. The slave OP is actually submitted from kernel, part of >this idea is from Xiaoguang's ublk ebpf patchset, but this patchset >submits slave OP just like normal OP issued from userspace, that said, >SQE order is kept, and batching handling is done too. > >Please see detailed design in commit log of the 2th patch, and one big >point is how to handle buffer ownership. > >With this way, it is easy to support zero copy for ublk/fuse device. > >Basically userspace can specify any sub-buffer of the ublk block request >buffer from the fused command just by setting 'offset/len' >in the slave SQE for running slave OP. Wondering if this new OP can also be used to do larger IO (than device limit) on nvme-passthrough? For example, 1MB IO on NVMe than has 512k or 256K maximum transfer size. ------KU2CxbTk4.ftA7vvsvzLW4bt.-m_7jRTbTuK1k18jgDVn8pS=_11136e_ Content-Type: text/plain; charset="utf-8" ------KU2CxbTk4.ftA7vvsvzLW4bt.-m_7jRTbTuK1k18jgDVn8pS=_11136e_--