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 F179CA0548; Thu, 2 Jun 2022 10:23:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD42540691; Thu, 2 Jun 2022 10:23:23 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 5DDDE4021E for ; Thu, 2 Jun 2022 10:23:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654158201; 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=qmjwXZkr/3pcSikqjq6FZcRm/ChMVrMPqsREj5ggE5Q=; b=HkYAa4GMkmyUwHtE3LlLhFgPR5I1xju7qswnYzZd7vdxCJnAHel9FLk9S1IjNbX+OpSqqV pZj4dUYoi1Se7mEYHGi1gNNVQqQ//C2nJPGZkpEEj4qVUT8GD2eD7Z23c+J2g5fvSA/QBX M5q/mkB3FzI5z21X/ptqmMZr4sWIGBY= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-577-k9X4DbxaPmKT5R8wB9AD9w-1; Thu, 02 Jun 2022 04:23:20 -0400 X-MC-Unique: k9X4DbxaPmKT5R8wB9AD9w-1 Received: by mail-lj1-f197.google.com with SMTP id t23-20020a2e7817000000b002555d1188bdso690042ljc.4 for ; Thu, 02 Jun 2022 01:23:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qmjwXZkr/3pcSikqjq6FZcRm/ChMVrMPqsREj5ggE5Q=; b=aMpwm9KC35CrSSTZrSFQR2oI1g4z13HkhtECxrf0s+v/4vQ7shg/ezmudtGycdEZyF wvxnfFG8irkBehUtmC8ChHIYPYSy80k0/OEM1gWd5ubIyJG1uIz/PR6dzOKUSMtieeKg sIA5tr/h2cT8vNOSaFTJFtBqpTcikQIjt1qirToJeCwgYsE70Gr4jNm1Qmzt/EE2KPrf sGmjFxAxUQqn9XKzHnpZHuV6DFqIJeY4YrByq5ukET8aaBBtssINZ7IG1nzWgZvVTfrZ AJIxobrGxaCnbfJ6X3zYxZtrHsxtc9KFomQCJt2M9wXwwSGsm7sa+5nk8DVi+za5HNQ5 c6Sg== X-Gm-Message-State: AOAM532+HeNR6bezAwFlu2a1IRpWiIHXcfEPvlduEJnnUFeZe7OS+Hs1 kH4iJfQOqHqvl4kzwx0TEeV8MeBS4LMR0ehXtFAax9sT1cRHbtBrFgzsiRnw6DRBvv/FBzkOG7F 4ndmuFwPcrvLK5y/K1BY= X-Received: by 2002:a2e:a445:0:b0:24a:c1ba:b62f with SMTP id v5-20020a2ea445000000b0024ac1bab62fmr41296292ljn.81.1654158199342; Thu, 02 Jun 2022 01:23:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ24wPYsdZB/pbgk84ToC6aqIjx+tr2Ijn8RRn2aeNPQRgdHcZHElzpwS75bN7x/NMG5iJom9jRvI2X7WU7iY= X-Received: by 2002:a2e:a445:0:b0:24a:c1ba:b62f with SMTP id v5-20020a2ea445000000b0024ac1bab62fmr41296281ljn.81.1654158199151; Thu, 02 Jun 2022 01:23:19 -0700 (PDT) MIME-Version: 1.0 References: <043fc2d53770da8248b9cd0214775f9d41f2e0fb.1631273229.git.anatoly.burakov@intel.com> <868198b65b2e067d0fc733eb30b78dd4f8337798.1635430146.git.anatoly.burakov@intel.com> In-Reply-To: From: David Marchand Date: Thu, 2 Jun 2022 10:23:07 +0200 Message-ID: Subject: Re: [dpdk-dev] [PATCH v2 1/1] vfio: add page-by-page mapping API To: "Burakov, Anatoly" Cc: dev , Bruce Richardson , Ray Kinsella , Dmitry Kozlyuk , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam , Xuan Ding , "Yigit, Ferruh" Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 Hello Anatoly, On Tue, Nov 2, 2021 at 4:54 PM Burakov, Anatoly wrote: > > On 28-Oct-21 3:09 PM, Anatoly Burakov wrote: > > Currently, there is no way to map memory for DMA in a way that allows > > unmapping it partially later, because some IOMMU's do not support > > partial unmapping. There is a workaround of mapping all of these > > segments separately, but this is inconvenient and silly, so this > > commit adds a proper API that does it. > > > > This commit relies on earlier infrastructure that was built out to > > support "chunking", as the concept of "chunks" is essentially the same > > as page size. > > > > Signed-off-by: Anatoly Burakov > > --- > > > > Notes: > > v2: > > - Added checks for page alignment of supplied values > > - Added rte_errno values (similar to patch 103165 [1]) > > > > [1] http://patches.dpdk.org/project/dpdk/patch/e8c5e7ba089e2283c3cd67e4529e52fe49390eb9.1635428963.git.anatoly.burakov@intel.com/ > > I think this API also needs VA and IOVA addresses in an array, so that > it's possible to map IOVA-discontiguous segments. This is too late for > this release, so let's postpone it till 22.02. It seems this patch fell through the cracks. Any update? Thanks. -- David Marchand