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 5897BA0540 for ; Thu, 7 Jul 2022 11:26:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A31B40A7B; Thu, 7 Jul 2022 11:26:27 +0200 (CEST) Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) by mails.dpdk.org (Postfix) with ESMTP id E64E8406B4 for ; Thu, 7 Jul 2022 11:26:25 +0200 (CEST) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-101b4f9e825so24604029fac.5 for ; Thu, 07 Jul 2022 02:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fj9ikMJ/OPVcmliWQirkXShY5CG+q2t6egn6ETMftCA=; b=nJFDjsu6VOM39v2/1w8Ew4P3lI+K50T5ClGjrZJZPukQTfzaSaP03jVZ9IR0AuJzeI fxcmIVnhpE5gaT7E/Fza4AP5lINfJLrfLLz1MbIsDTK/Mn2mcPHOqz/hVUlc7F9FDDr0 Yju/E0diEsAkSMX7azX3kaV8VoLpXUktgd5CHfHCxalD58x+I8/85jpI8MsZZR8HN7Ec Mw3TXg3rTWcMJZct+wMCwxjxRemAV3ieU9kNdQRMVYn0fNo7DHjBox8l3HXLpmFDs+YG oNehjqu1w15MNDe8ACblQnz5U4YYGD87iguPNuzGR2xH4yKShTpOwUkBhNPxDvW9FruV LtcQ== 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=fj9ikMJ/OPVcmliWQirkXShY5CG+q2t6egn6ETMftCA=; b=AtIpuHXSd7stczVk+9kyGTPtuyjdtP6reJpjxptd+/E6D9IOM529kXzMmfPI6SGWvC 2I3tqeU7wXXzE3USQnzrLIjZA7d3g5Kxl46z+UJgimz3EJAAFAIRm4gd0jNaILd26mPV pZ+oPVwxMKQdz3BP+EDXj5ufFie1UcswkfAhAADrp79Tl7csqSvktEnXvbhOlXi+CoVt Kudw60bIlp1zv0JfZ1U3gkS5MPpFmNJxjQ59ZOUjZ7WV3GC6igYAV22KpYLr4RJpGPuK i/HvF/JEVABVoLI6vvpWn5Wo2J7/miMDAneLaVfV12rq7D5xxJUMLELXuwVU4NH2G/9U zX/A== X-Gm-Message-State: AJIora+ZF40WWJz5pq3JoLptMvE3Jla2frGslRmQpdu6kL6OYev7Ltln dcil+LmLSAk5DRczTDbEbMjgKRm5Z1Uv0LNb9Lc= X-Google-Smtp-Source: AGRyM1uEFqoorafBD85wgmU/huYlNtTdZSXiQejDlr5zbEtuXQw1pmD/lP1Wjb8Qthjiy16h++CDs+RhpSbmYcsnAYY= X-Received: by 2002:a05:6870:c1cd:b0:fe:1295:6e34 with SMTP id i13-20020a056870c1cd00b000fe12956e34mr2189631oad.137.1657185985195; Thu, 07 Jul 2022 02:26:25 -0700 (PDT) MIME-Version: 1.0 References: <20220408162629.372dfd0d@sovereign> <20220707032649.481da02d@sovereign> In-Reply-To: From: Dmitry Kozlyuk Date: Thu, 7 Jul 2022 12:26:13 +0300 Message-ID: Subject: Re: Shared memory between two primary DPDK processes To: Antonio Di Bacco Cc: users Content-Type: multipart/alternative; boundary="000000000000f972c905e333adb3" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000f972c905e333adb3 Content-Type: text/plain; charset="UTF-8" On Thu, Jul 7, 2022, 11:48 Antonio Di Bacco wrote: > And then I need to add (memzone->iova - memseg->iova) to the address > returned by mmap. > This bit sounds suspicious. > mmap() always returns a virtual address. IOVA is VA or PA depending on DPDK mode. --000000000000f972c905e333adb3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jul 7, 2022, 11:48 Antonio Di Bacco <a.dibacco.ks@gmail.com> wrote:
And then I need to add (memzone->iova -=C2=A0 memseg->iova) to the ad= dress
returned by mmap.
This bit so= unds suspicious.=C2=A0
mma= p() always returns a virtual address.=C2=A0
IOVA is = VA or PA depending on DPDK mode.=C2=A0


--000000000000f972c905e333adb3--