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 C00E7A00C5; Thu, 28 Jul 2022 17:41:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79FC640151; Thu, 28 Jul 2022 17:41:29 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130045.outbound.protection.outlook.com [40.107.13.45]) by mails.dpdk.org (Postfix) with ESMTP id B778B4014F for ; Thu, 28 Jul 2022 17:41:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n826Sjpt1OQwE1hn1akn7GJGROq5TRutEWYvSTfaJ2alEfrpwI+ICZU3//SxM6yDwHbAh97QcIxmyPVFyBwkK5BsNs0IGFiTuWM3hpgO3j4HJPuzrhoHEV+PNT5cAVSkpiiaJo/3f7CpnMK61nwak5MEXbqzoXy9dspuDEBcAb4lhuVVUFcrt9ewQEGa6Tqmtfq5TF9vQN1BRi/r//mgBanInd0/Y33rdDja14CkTyOTgQgDKu8b0Zy2QTD0ln9MDSpt0KlhmVO1XTEbC1i3Esdbqwsz5DxeI2PTOk2lY61kQ0VIg5qLbJC0H8Zkvfxb5/CiXFQt5l+6TehhBhR2TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=puAQC54dGCAbeYxlE+NjEARXB86vA16i52hwu6rCGBs=; b=fGwBjOpBu4L8t98/fbdTTaYsKG+gJm2auibiSFxP5XKrxKt91NmRPHdxDo99Pabeus6r0l8iJaQzqRIzBwVHDqGjcTDuKNkiWXVNUaFf+dbopOHvht6Qmh8JMfLeSVeOeCgCUxFZ5qXEz+OB5Jod83ZCCMHDbL+6rmh8LWCIjoZ9e83jirlmqdRTc996NGQeUZlryIVC+QBaGA61CRTvkUzXouNAnLtILkGUw4mPZXin5Uhm36HltLWTv6lHK1+hBMWiTn5lU1+pIAKh+2ohwaxUTJ1VXhgAnSZJGIQLOzhVP/HJVcl+vkXwK8Zy8hD3Z1z4QddUtpyuKOe3m316Jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xsightlabs.com; dmarc=pass action=none header.from=xsightlabs.com; dkim=pass header.d=xsightlabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xsightlabs.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=puAQC54dGCAbeYxlE+NjEARXB86vA16i52hwu6rCGBs=; b=MZz0kFBBDKw/06Hm0eI96pD/UK6oPxKaxb+lt64J4+qlmyuoQ6i9rOditC7ObTz2QExDUHCR9XJQddbQcm4sRCGrXlK1jzB+4jbfkGnL9n9bs2yoduZtQuDeHO9tYrYYKyFKvAbMfOEHsKCsoiglj5uqOHsCFOH5a+70vnHjsy4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=xsightlabs.com; Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2a6::7) by AM0P193MB0724.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:168::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18; Thu, 28 Jul 2022 15:41:25 +0000 Received: from DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::d09a:72e6:a61d:ce90]) by DB9P193MB1482.EURP193.PROD.OUTLOOK.COM ([fe80::d09a:72e6:a61d:ce90%7]) with mapi id 15.20.5458.025; Thu, 28 Jul 2022 15:41:25 +0000 Content-Type: multipart/alternative; boundary="------------8pgrkiPPu0sWIlmy49dRPpBt" Message-ID: Date: Thu, 28 Jul 2022 11:41:19 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC] EAL: legacy memory fixed address translations From: Don Wallwork To: =?UTF-8?Q?Morten_Br=c3=b8rup?= , Dmitry Kozlyuk Cc: dev@dpdk.org, Bruce Richardson References: <256b5409-ddaf-d7cc-00c1-273ca76dbf71@xsightlabs.com> <6aaa04d8-2ac5-ced6-ec25-d42bc52a3e2f@xsightlabs.com> <20220726225910.26159820@sovereign> <20220727233644.21f0b2a3@sovereign> <20220728102537.48ff6e5f@sovereign> <98CBD80474FA8B44BF855DF32C47DC35D87202@smartserver.smartshare.dk> <7a030fd7-65ab-787d-60df-1eae8d5b6f06@xsightlabs.com> In-Reply-To: <7a030fd7-65ab-787d-60df-1eae8d5b6f06@xsightlabs.com> X-ClientProxiedBy: VI1PR06CA0159.eurprd06.prod.outlook.com (2603:10a6:803:c8::16) To DB9P193MB1482.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2a6::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95397fde-9c8f-4d08-beeb-08da70afa150 X-MS-TrafficTypeDiagnostic: AM0P193MB0724:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cN4CAKefVDJlzQ3LGVpRQQ1wnWEL30Ok0FIPSozmySY+nl7yqx/Wnmp/+QBvKqhRvHofSI2yAJiAlEjSMBvJHrM9y+nZTBuHUJQjHoMaDF/BLQWWgf5dA4sD8QKdRtQ5VO9GSVC5Vbs4A/69vVsJYnPW0LPYNcn5pmhesZwgJz7mJXpV9rPx5g1A17EUjdVyb6wmPO04JlEqSno/B67JEDzjmR/PMqc+wLgs0Ab8/vGyECG5EfsVwNvNMhzDXhQ9yQLhzBPfmMzC73O0jOSCnK3hzo/4Ayy5vOZ2nVFmhDPObMMRVbqrIWfU80h/+husk6VPsFzDZsFwxQNykOkpYONU5D42SbNgeR1ayGtAkYOlNXYUCPK5yqjDpVY7xVNA3ZnP/9gERskHifABYRZhGqb34knesF6kTlT986V6ruF0WtZ4r3/SiCO+B8E97D+TbnLsObI5NnMkPaLTZPo1bVgR3l7x3c7M/McENrff7MCjnnGlT1oow8Cm92bSU+8Bh2l84ODRA9cs0IUzJDjU+auc4wxDkEWDCzvjAdWoQELu5oKF1CxC/v2Z3CiJi3ySy9PWRTv3piCBY5GUy+/UDRmJDIDHw5SNnTONI6Ev/iCjCv30T72MHrBbXr2DLShvLb+D1pgmzVoPxkdtiUvwpnMnFUu3S1Xg7LSFTdoIyKZnWAA5be+Py2tq67QX3yQ7fzUwt2MjHPOewdSBkCTzyUl5V7x9kepiLt01eoEjWJOJvJpjlUn9fcVCxVzzAyh0b/5SFd52moFqVo3r9ULbBcdULEkfjV9UwmNfnx4TonUxZVGaSf54R7EKlvMAjgheTKRWr18Sz3VbaE6lJRfnb5Fb7Q7NB/ic0TEsy7Yc5gM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P193MB1482.EURP193.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(366004)(136003)(39850400004)(396003)(376002)(2906002)(8936002)(5660300002)(38100700002)(38350700002)(6486002)(110136005)(478600001)(66946007)(8676002)(4326008)(66476007)(316002)(186003)(33964004)(66556008)(2616005)(6506007)(6666004)(41300700001)(52116002)(53546011)(6512007)(26005)(36756003)(86362001)(31686004)(31696002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S08rS0lFSFhZSlJWQXJZaUYvWm01c2t2RDcvWjI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YmZ6OEhSdWNSRytFemMrb0o0cHdWWHRVZ3pQYkZIQWt6ZFdoNnc4ak4x?= =?utf-8?B?WUx5QXZOdDRzeGJVY2R0RjlPZ3BrdTFCY2NGTmwrRGFFc1dmNGtSSytNL2Z1?= =?utf-8?B?YnJLMzlreGYwSG1sblBRRHVXb1Q5aytCWlpDZ29VYnFZdnJMaHBkL3dUdFRG?= =?utf-8?B?YzUrT1BhQytJMWJRU055VlFVTTBPaGUvOGdOSGI2YkIzckk0TW1mUlNnUTNh?= =?utf-8?B?VnhjTG1oRG5oSkIyVmUrK0VlbzdHVjgyYjNtRXdTdFYzakZNUzVWa2dybXJz?= =?utf-8?Q?t5zyMYrPnoE+or/D4NCCWZoRc?= X-OriginatorOrg: xsightlabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95397fde-9c8f-4d08-beeb-08da70afa150 X-MS-Exchange-CrossTenant-AuthSource: DB9P193MB1482.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2022 15:41:25.5919 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 646a3e34-83ea-4273-9177-ab01923abaa9 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yktRABC1Clw8Fy/H0LwzsDX2eSsG2rD8fw80vAcStgognolRQrPiG5CZUG5g7IQ+X6xgSC1vmmhh74/FGx4vNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P193MB0724 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 --------------8pgrkiPPu0sWIlmy49dRPpBt Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/28/2022 10:46 AM, Don Wallwork wrote: >>>> Let me try to give a trivial example of how it would work >>>> to make sure we're on the same page and then we can get >>>> back to details.. >>> Thanks you, Don. >>> Now it's perfectly clear what EAL should do and we can discuss API. >> I think this RFC is an excellent proposal! > > Thanks Morten and Dmitry. Great to hear that.  When we have a > patch ready, will post on the list. One question I'd like to ask before diving into the code is: if there is general application for this feature, is this something the memory system maintainers would prefer to implement or is it preferred that we provide a patch and get guidance from maintainers?  Either way is fine. --------------8pgrkiPPu0sWIlmy49dRPpBt Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 7/28/2022 10:46 AM, Don Wallwork wrote:
Let me try to give a trivial example of how it would work
to make sure we're on the same page and then we can get
back to details..
Thanks you, Don.
Now it's perfectly clear what EAL should do and we can discuss API.
I think this RFC is an excellent proposal!

Thanks Morten and Dmitry. Great to hear that.  When we have a
patch ready, will post on the list.

One question I'd like to ask before diving into the code is: if there
is general application for this feature, is this something the memory
system maintainers would prefer to implement or is it preferred that
we provide a patch and get guidance from maintainers?  Either way
is fine.
--------------8pgrkiPPu0sWIlmy49dRPpBt--