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 BFDDD42AE1; Wed, 17 May 2023 12:17:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 92F3F4114A; Wed, 17 May 2023 12:17:24 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 41C174067B for ; Wed, 17 May 2023 12:17:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684318642; x=1715854642; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=CYDyjRsokO9PyHgGJaF1iHMasTt1OsRCrInidrJ1Tz0=; b=e/dSH+4OT0LU2/YM7VWN/LiBDZuKhllqCHkrKFN7yLfMRPuhFb5j94ly MZPb4EsDDnbOWThyHcI5QO2LXdNE7bXWfPLXL2GI7vEGxYTGuPTMcSpZt 9O+t10I/UQ3yrnvor7lPMPlLMpJF0d+uXLTVDmjJl7YLnxDBFNMlFosvc jPIc6C9By2+HJc9P4FAgkI9DfdDENyYUkySz76ecT40qQHu9mSiwCapJl tg0orbBLOCp3uE34fpYvEinh7pG8YhB/GqOaQjMp7Tl+wZvU9f//69XnL EshH+mFWtdWDo8fFk18sY9OJGU2JUNu6+j4wQEWQh+CBPxdgpg/pmbBSn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="354014031" X-IronPort-AV: E=Sophos;i="5.99,281,1677571200"; d="scan'208";a="354014031" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 03:17:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="652178264" X-IronPort-AV: E=Sophos;i="5.99,281,1677571200"; d="scan'208";a="652178264" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 17 May 2023 03:17:21 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 17 May 2023 03:17:21 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 17 May 2023 03:17:21 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 17 May 2023 03:17:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T2502wLeYrlVjINzQQ5lGpkpQzYNSLK5Yxo9eDY1XojsWyrLB6QBT/qkUcAcshUpvanqa+4nNlpjZrKgcDZqbBaP6cztBwGCEr3bzqUSfbz//c54/QywD7VgGCvhfrr/j+tedkkZqpuMDGps1WvFAp5WMvA/KUUgHcYhRcZ4eVzDKOxbmMZEcEzfglVsh0y02XKYs/ieZ/wPgcK7iwQYIXXDwNXJZZdsmPesut2K5psWobUbOr60DTeKha6B+RCkKk14kVVgCOK+DZQU+WUxyslYtgbd/0AH64UwuGVB1NdevnOzMoaiRgD/6U4jEpbShZTpH/hW/bapJRxwrzuslg== 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=wKQQMqCyn347KULsK8UJ1wijl/FzZ9SitJy98m0Zqy4=; b=oQaJumerbh5QUNS3DEUfW4RuhGoxfuhr4NkEk6MClQvDbkAN9fOFLfIrEIJGJQ53shQjaNOYPQLbwsul3YCNX+e7THtk1cBPOD2Zkexv/EODN8wbB5dbyEtVPw+rf2YVIJYl7Po1cF6ZGr7RqLRNJO72Wp5fiJLei1MXAoELPBMt9DOFkEEI9+BwwgqjKE++x4TsuGdbYzHe/m+Xhsaw9bhlvj38qtvrqP2vLrMUrv3E/Sbad/9UBeXrnFeoSV/8P9KIb083USznluZCOaj5ZuuqmCa/g5qMg8jJfdIjEii2RhhlPAav8vlPlNOtryOM4ikmmiIZUw8iXo42io+Xyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by BL1PR11MB5445.namprd11.prod.outlook.com (2603:10b6:208:30b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Wed, 17 May 2023 10:17:14 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718%5]) with mapi id 15.20.6387.033; Wed, 17 May 2023 10:17:13 +0000 Message-ID: <1b71adcb-6e89-ddfa-a0d5-9854dbba087e@intel.com> Date: Wed, 17 May 2023 11:17:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH] dma/idxd: add support for multi-process when using VFIO Content-Language: en-US To: Bruce Richardson , CC: Kevin Laatz References: <20230515162907.8456-1-bruce.richardson@intel.com> From: "Burakov, Anatoly" In-Reply-To: <20230515162907.8456-1-bruce.richardson@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0179.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::22) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|BL1PR11MB5445:EE_ X-MS-Office365-Filtering-Correlation-Id: 2226c068-cb31-47b2-1ef6-08db56bfe1c3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s09hnBo0hWpMqEspJFV6/2Gb1fvwZ6F3YShy+5e3Jxs7IFYpRhB+KXwST3/hA5+g1tAEPD+yCIkqbfeNbn2xR5+on0i4H8UFE6XGLf362nBnEcYPgTKnzGTvqgh495iajESr/lXEI2638pLQ9IEFvRroQpGFoCmo95zqWRpo2J7Vi2tY07SjRG5BQJyhur9AhOaaVJ1EyZsUaH2EfsZMTYM/e/9SL8/llSsSRZCU6xSsoSu104BlXGn8BBvzO94h8WOv6aZWCFgNzKT94j+j4yNGY8VjF3J+7DGsKSnjufl+1q3C7KBjzQljHtE9f/rQuPYSpf4ULvFliKluh3XDMK9tkEPaUIg6Z3S2cMgbzXoYqBLkw+oX+8X1aca+Wq/GoLuikUkXVGS8FJbF2I5cpS5+5mvTi0PAwW+bDHe49yqdEqGKpr26WLYonaaLTp6VrC+quBQAqFi5CTFPA5AHgPL+vw4aJXWq1fq7japUdR1tow42RXTrwBXOF1a+KWDyawbvcS0+x+NulEPNY/YFdNFQHHHRHGc3Zwh+NGH4Grd9JKMU72oKZJmnr0Y6jKTKpBbhg0W/IxgdcsWIdthh3aIA3vcj5nsIEdSCer6uxRWTkrBP9FUtJ4LGwrr0eeNz1MD440Dx2HKo9relhGpwWw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(136003)(366004)(346002)(39860400002)(376002)(451199021)(31686004)(4326008)(66946007)(66556008)(66476007)(478600001)(316002)(36756003)(83380400001)(107886003)(6506007)(186003)(26005)(2616005)(53546011)(6512007)(6486002)(41300700001)(8936002)(8676002)(5660300002)(2906002)(4744005)(6666004)(82960400001)(86362001)(31696002)(38100700002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RS93V01qNmxmcDBPbWtXaVpXWm0rK3o2ai9JVk84T2lHWkZkSnh2ekdmVXhy?= =?utf-8?B?cUlhSG1vMlVmVENJMVF6RHlmbHlLOWdYQUx2bFlaVXdocUhYTEJsSGR4YnRV?= =?utf-8?B?NHVVNllkTXhjVGZtbitPNUswWENYZ1NCdG5mbVhXQnBQRUVpbjRtTDduQVFX?= =?utf-8?B?VmpYbzE4Z3NuWkViVEt4aW9MK0wxN2dmNmxUOXR3TThiVWZaUVM2WTN0eWUv?= =?utf-8?B?clVyMkVOZE9aRnRta09uMFhBL1ArRjNaUDVDaUZiOElKR0xsYWhUUElQQmFZ?= =?utf-8?B?eGdTazlTcFZhR01iL1FpUmMzWnE5OGZXR0JJTXBNaGd0dGpDd3BHcVdrdDZj?= =?utf-8?B?R2dBaGlqUmNnOG9JSW5LMWdBZWZSMFlHTnAxdnRQd1FhYmRmdDgvWDBkdVBm?= =?utf-8?B?Yy9WMjVpWnRrTVJoaUlPR0tJa1VQZUxHNnJtb2pQYkw4VjBlZitJcllKc3Vj?= =?utf-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.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2023 10:17:13.5496 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l1Ol0bzMTcUddiWRfZaii8A1OBmH6AOm50duIsV0nma9Al10tVYWhSrsrf0+OykmEm7QFhjGtv4G/GabGrnXpfjdUKzUnu1L7pZKmkjlMN0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5445 X-OriginatorOrg: intel.com 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 On 5/15/2023 5:29 PM, Bruce Richardson wrote: > When using vfio-pci/uio for hardware access, we need to avoid > reinitializing the hardware when mapping from a secondary process. > Instead, just configure the function pointers and reuse the data > mappings from the primary process. > > With the code change, update driver doc with the information that > vfio-pci can be used for multi-process support, and explicitly state the > limitation on multi-process support being unavailable when using idxd > kernel driver. > > Signed-off-by: Bruce Richardson > --- From multiprocess perspective, Acked-by: Anatoly Burakov -- Thanks, Anatoly