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 CFB6942BCC; Mon, 29 May 2023 08:29:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14883410D7; Mon, 29 May 2023 08:29:19 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 2277040A4B for ; Mon, 29 May 2023 08:29:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685341757; x=1716877757; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=7oK7WPH4asrS3F7o7ueZneTTt9SJj8Cf6+Z4uhmxI+s=; b=m/9F/fXGYuQQpmTQGepmq9Nn/svCQltMdV2udAFFhOOTtfgm2T35Dzt5 jlILSn8r/LQrxzqcLfAna9w6qJlTTd90GFK7bF2yePQVaIuypTiqN/Prn /+Cj1SwHyxmB4dXxnji6NJM1wY5+LRof0PJy0TwjZ8VLd8A2TpQulm8dr PQ2fmzV0Jf0NbSy4Bz/WjrU/vkIXa29/kXBE2D8EgMZ1hJncoCcc1+blr Tqs0aDoT1DTlsatXQRBvUOeqLHbDiHsdGmGuxV4ICWuLR20qFrXmlYlDS gvz31BAqPalP5VqR7/nU80gJKs/3HNa+RQXR9zDp/TfOtgA0laV0P4iS1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="334257681" X-IronPort-AV: E=Sophos;i="6.00,200,1681196400"; d="scan'208";a="334257681" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 23:29:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="700132876" X-IronPort-AV: E=Sophos;i="6.00,200,1681196400"; d="scan'208";a="700132876" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 28 May 2023 23:29:14 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 28 May 2023 23:29:13 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Sun, 28 May 2023 23:29:13 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Sun, 28 May 2023 23:29:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FuwAKSJOeJ69dZaeYez/g74daueLBewoghdWKubiTZmW3T8yXLYOVVgipkntadM8wPNcX/VVonKwzOoN9JfZ0QDq2lPjQ4DSgap6m5S/wCMOE3z0hn2fLUO5G0suHvwrYpTqgSHVGxqazunTAJHH75hsiGCdPfnFTPoLx6SVzUSlzN4mgSTxNMfh+yB6EQKforB+K3UGEJ/cLyebSHBRavMie48neDXgn4xdHJaPzPQW6wlUa/pr4i3msEi0iUARnEvgAxkx03/wkIWD4CYppI4yO/oNgbDUE47yng2mPywB0HZCvotJgFNui8Sx6m7oe2qC6nnpGSndVDkB2KiamQ== 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=kclnKbloFnV+pJn2wKQ/Uvc/ittxmfxsAjfKDGPu24o=; b=Z6tMmr5d1CbTdwZtFrQNOHW39mKZxd3bxXp4gcKq/eefqkOEK1WzluY2mk61LTzpa34w43B3ka8es0C7Qr+xiDrUXhZq8jGgs22HC3NXlBcaJ2PFyYuqJAR9G6RYaRHgq+mv3fvs5LXlh3PFvAL1Q+z6FF4quBTOTBXtQxd2eXgddEKBcGSPdg9FEUNQ9noJ8CMnif3JS1aWoRxaGxeQHADVfpTIRIMHKfF97OFqUZv67jjDTWvZvl/w8l7gjbwCNzMtnbpuqxoIvzuQ3MoMGN+XsvoxD1rY4ARbUAj7rAjduoYMSo9iiD04yQ+VNVvFxOss6hG6mAhoR/1Z3DFuMQ== 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 IA0PR11MB7838.namprd11.prod.outlook.com (2603:10b6:208:402::12) by CH3PR11MB7204.namprd11.prod.outlook.com (2603:10b6:610:146::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.22; Mon, 29 May 2023 06:29:07 +0000 Received: from IA0PR11MB7838.namprd11.prod.outlook.com ([fe80::25bd:1586:f523:bb3]) by IA0PR11MB7838.namprd11.prod.outlook.com ([fe80::25bd:1586:f523:bb3%6]) with mapi id 15.20.6433.022; Mon, 29 May 2023 06:29:06 +0000 Message-ID: <3d609e2c-540c-dcaa-7819-79101241157e@intel.com> Date: Mon, 29 May 2023 14:28:57 +0800 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 v3 1/4] bus/pci: introduce an internal representation of PCI device Content-Language: en-US To: Miao Li , CC: , , , , References: <20230515094124.722431-1-miao.li@intel.com> <20230525163116.682000-1-miao.li@intel.com> <20230525163116.682000-2-miao.li@intel.com> From: "Cao, Yahui" In-Reply-To: <20230525163116.682000-2-miao.li@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:3:18::21) To IA0PR11MB7838.namprd11.prod.outlook.com (2603:10b6:208:402::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA0PR11MB7838:EE_|CH3PR11MB7204:EE_ X-MS-Office365-Filtering-Correlation-Id: bd23618b-c2f0-4be3-2ddb-08db600e00e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +m1WzAY7u7Cmgk6wmV2XjuPV8/vydSHBHe2ONXom2qAfI/wtS+T5tnS7QcallhgK+o5JhJMi1y1KuWP6yhJ81oUSsdJiyDVyHHlL/bgafJIY3hmCUqpvLvW20sXyE2AzkKlguhW6XRz/x0s9JJhocrOiYHBEOJ1+vZmMiCCBZbHEN2hLjeSQab8Glxiav5WbZK0PYOUK0sxb9feERDY0efD321ZeQd97eqmYA4UbY2qlDI16QP3Mvjs4C0DS84KX8Dxc66r7xO0A5ljr0pcwvejC9Df3y1PnpdEb3jNsDohaCxQEV2GUh1H5/0lTlHZM4mPIVmohqpwk0U12c4TSZwuZJ1nMzdc/AJqC+nEymqNaFvr1xTuAxcn/ovSDZFy0nWxgJOamJTYXP62R5q+eMvPQCKWyIyhgzURRZM3y0TM6vOp6UcMr0ZAStTV1Iq39c7+E4b3L1qcmUYtDKX33jxjnGADeAGk8Fs5myCp8A5McABghTcNaDssnvIShytemsMoKM1UEQI2jPCdlX7VDC8ABKmgYNw6KYW8FSQBk7K+f8i707K7p3+A9DIF8hkTQ++Aham0jAwFFx55CbeQaxLcNDHDxcRxF+raGl94WIoklJ23gvhgPcBRVPDk/KH/zKk6Irb0V7JR0lCXzXe3PYA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA0PR11MB7838.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(376002)(39860400002)(346002)(136003)(366004)(451199021)(31686004)(82960400001)(478600001)(38100700002)(86362001)(66946007)(66476007)(83380400001)(2616005)(66556008)(31696002)(4326008)(4744005)(2906002)(6666004)(6512007)(6506007)(53546011)(6486002)(186003)(26005)(316002)(41300700001)(36756003)(5660300002)(107886003)(8936002)(8676002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V0ZySXJjYTJmOHU5K2VWeTBvTjUwYTBEdEdSZEUvWW5zU0N3bW5HeTRKUW9R?= =?utf-8?B?Y0dFOVp5cjYxam5BWGdBR3dldXFQQmZ1cTBseEJJallUMVZNdmZsUU4wNWZw?= =?utf-8?B?N3lSekhVUjFYQ1lkVjRIdUdxQXRJVEtsVENBN1pRcDEzRVhTMUFJbFN4dW1B?= =?utf-8?B?ZUlqUjJTMUlUZ2M2Q1FWQW9BQU1WVG9KcUFJS3c2bkZuMjYvY3p1RGJZeDF1?= =?utf-8?B?MVpJc1M2M0JBaWY1K0ozcEVDTG43Ykp5c3F5NHpCSy9ET2o4bE84eDJhNUhL?= =?utf-8?B?MmcvSnVlQitUS3A3V2o5QUtRSFdkeW9uSExBNTEveUg4T3RsNDduNWZsdmd2?= =?utf-8?B?Q0xtNWREeHM4UkN3SnFTRGkwSXNSYUNDVmo0THhXTUhyTG5BR0VlWmZhSnE3?= =?utf-8?B?eWN5aGU1Q1VwV2FJL1JtNDRJdjhKS0prbFFQSHYvMj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exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2023 06:29:06.7359 (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: QHEhbUYKk2eNQLtxBodU64nwCwtMpf2fkjZ3dL70KDbHPwvOPjjZNaZ5YPqn8Dz5/sGEY8j5sLdoIOPWI5x/jQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7204 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/26/2023 12:31 AM, Miao Li wrote: > From: Chenbo Xia > > This patch introduces an internal representation of the PCI device > which will be used to store the internal information that don't have > to be exposed to drivers, e.g., the VFIO region sizes/offsets. > > In this patch, the internal structure is simply a wrapper of the > rte_pci_device structure. More fields will be added. > > Signed-off-by: Chenbo Xia > --- > drivers/bus/pci/bsd/pci.c | 13 ++++++++----- > drivers/bus/pci/linux/pci.c | 28 ++++++++++++++++------------ > drivers/bus/pci/pci_common.c | 12 ++++++------ > drivers/bus/pci/private.h | 14 +++++++++++++- > drivers/bus/pci/windows/pci.c | 14 +++++++++----- > 5 files changed, 52 insertions(+), 29 deletions(-) > Acked-by: Yahui Cao