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 0D6CA42DBB; Mon, 3 Jul 2023 03:19:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1F9240EF0; Mon, 3 Jul 2023 03:19:41 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 34F9040156; Mon, 3 Jul 2023 03:19:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688347180; x=1719883180; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=oHjpw8rEVBV/VIGxbLQFpvCj0obC5p4RiBSOKKpLx+w=; b=CMV6PS+Y47UDuGxOq6oUx1hml1rit+c7uFUAtb2JrgwPzjPmy1kcBvVA Y3BF2KRj2QhWcoH5SJpNisaOPphtBTF8BrkOY6O8/mmW8yQuK3nzLXmPf 2Ds9kDbTpyaXcutMXjXJX78WS7uWfYIoQ2HQr2Z2sLmh1ade+DKn5b7dx 0uw0vAbD3AwrJqtabk2zu17BB9kVW4VCm2GhJAW8LcyN9GZRIYnf2Hh+B dKqD9YWkHnlsmyvtzhQ6mUPxkN0ztF1S9MRmzOIRf5t0wNl9jCQvw5XSJ ON5VI6KYexLWCngsS6p3UuJ2Xbpgstx+jrx6t/LzHHlvUuhhiZ/ddSyT5 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="352586272" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="352586272" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2023 18:19:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="783708615" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="783708615" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga008.fm.intel.com with ESMTP; 02 Jul 2023 18:19:38 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sun, 2 Jul 2023 18:19:38 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sun, 2 Jul 2023 18:19:37 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Sun, 2 Jul 2023 18:19:37 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Sun, 2 Jul 2023 18:19:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=apiurW+mEr6qbw1vsexFN180ch69l4MGxFN/ANg7NjfYPdxIfYEGYCTmp/L2OapRLa4aBxAqGxHYJO+4sW5QOeLiCMWToXoUmo5H/sjvg4LDbb/bOV+6NytJMyXbxbSRSycE2i2ExwZYgvX95fRccZbVGIbhkmpW+qQfEjnv5K7u4G5pzW9PZaSt4HwwLBZv1GesINZbJpVkR4aJR1LV0FrdV2S4t1ov1LkRsWIIyjcMW7NfeN/2EeuzkPTTk6daH7EUj8cZq+AsWDHVGwupEw08W+wwgGXQTGvesru9tkUQIbRcRjMwp6YaSzAsFt3FwiOSKf9zLpKEa5GhSMd/Cg== 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=oHjpw8rEVBV/VIGxbLQFpvCj0obC5p4RiBSOKKpLx+w=; b=MUm6cbMm3mDvq3seuNpO0Qc/uXFU7Rle8Uzz3thJnpmkVWOGWs8Qtzu7UwFSjbIlw1ay62OacFcwL9lWkBBXHVKbQNeMEmXqfXLN8AHDLoiFddtberWMuGTuEISGJinuS53YQ6MDo883pAG9Ze/57E50OJ+9AmmSjeip8GFvQNy8Jr850SQvoLDafPXSDtoKmUZVuuR+CLGf3pyPe43BlsKRmFiH9CaY3IF+rG+oVZGLbOW0eds1PRs17l8nhgDetGyMc0EIj0hcmr1N8eJhRHoCctZKtTWhDjci6OeGQkmMSq0AlHjGnKXqyP9nxzr/CKTBPO7EhZoiwcF13gj3og== 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 Received: from PH7PR11MB6006.namprd11.prod.outlook.com (2603:10b6:510:1e1::13) by PH0PR11MB5625.namprd11.prod.outlook.com (2603:10b6:510:ea::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 01:19:31 +0000 Received: from PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::b80a:11ca:5536:9ba0]) by PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::b80a:11ca:5536:9ba0%6]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 01:19:30 +0000 From: "Ling, WeiX" To: "Li, Miao" , "dev@dpdk.org" CC: "stable@dpdk.org" , Maxime Coquelin , "Xia, Chenbo" , "David Marchand" Subject: RE: [PATCH v2 1/2] net/virtio: fix legacy device IO port map in secondary process Thread-Topic: [PATCH v2 1/2] net/virtio: fix legacy device IO port map in secondary process Thread-Index: AQHZqjFB2BFLg/auo0mOcoQnODIfhK+nRFAw Date: Mon, 3 Jul 2023 01:19:30 +0000 Message-ID: References: <20230628063651.178604-1-miao.li@intel.com> <20230629022653.263046-1-miao.li@intel.com> In-Reply-To: <20230629022653.263046-1-miao.li@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB6006:EE_|PH0PR11MB5625:EE_ x-ms-office365-filtering-correlation-id: bdf88823-0bed-428b-ffb7-08db7b638d39 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9Lm6s9JMOq6Xwk4xHkmNFILGA2O9QSFjMS6YzKfx3L7SoGlRfpDPhCqYdljS2wfqs0vwt3e9YgFyHbsHntKCz4W5oXXKapx/9XXdnf1hHogLPSpYZYa7ay/wyn9YqZD65Wie7Xn2VNx2dogxMAeQC4opcIDX9UAKaNQzqo8ONy4LcCr9twIoD9g1aPQ1I+DCONOPc+tN1BSHe7K9Ck8oCyzeGke472jtWbJIo61Ygrd/ovA3H3uPHmeUlXztmSFJUF57IHfOHDZixcUumg4Z1fvv5Pe2UjQbgPx60m2xhqjb1KrqMax5u+Qtv9zYmy7AQdhgkd3T/27oAE9tdnl8wrSH2ij5wnqjbdDUllFIp1TR/hB70iFcsufBP6eJZdg2xY/Ce2+AcYZuvJjCRNxQaQkjuAfI693VXp75n/lOq9q14nR5e5kem0SMRnF14/K9dtzBLg55K0in9NiLP+BrqpoPUUQpa2UQTiBcHmBSQxb5WwgcUf1wHlfQYwzo8KFZHyWx4N6CXesavYdrVsqgbH5FlTX/d6kxahja1NvERVYjS3pEN9JsMc7liPkZmu3YlrlXeaBYXJkZowB3sMoGEKFWmi61bpwDtmoxPFQa+ucrHFHmnsQ1TGMgaNaOSKOH x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6006.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(39860400002)(366004)(376002)(346002)(136003)(451199021)(38070700005)(4744005)(2906002)(41300700001)(5660300002)(52536014)(8676002)(8936002)(33656002)(55016003)(86362001)(186003)(82960400001)(478600001)(26005)(6506007)(9686003)(71200400001)(53546011)(7696005)(76116006)(122000001)(316002)(4326008)(66476007)(64756008)(66446008)(66556008)(66946007)(38100700002)(54906003)(110136005)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oA/bxMCC+FBm64p1NFWsZy45lokPTUqqjgfbKLsxvbisWAQ4MIWQlEknPC/K?= =?us-ascii?Q?fdikqq5wqYRn321eJfy+y8X2ORiFF9EZGlxOgPHeZpwk4djO+1pqCPAJTO+E?= =?us-ascii?Q?RwGkrbosljXNIa9E4wysIetX6kyYkEFUIB3QEJrE7z6uhluVP8OyoG2YZwI2?= =?us-ascii?Q?XzxUSrCQL+YiX4747ewObi3/jgmaUkAJpW5uYk9zx/aEoLDvujgQt7Hs56k8?= =?us-ascii?Q?6fa57dhPU79eZ5kGYy5umZxZGwrnP/CrKNlNy91rVYACxeVaY0L5ZDdxlzJJ?= =?us-ascii?Q?Me1EpmYt55fkk1vqfRvQNvhftlyMgfv05qRKqnDqnRYk3TCl/5AdEhX4qCHG?= =?us-ascii?Q?CZqVzo4Zq3Q+p2hyKgpCtJvigV/JBzc0uH/fOyMCoJm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21MDqA7HltT2j1wtuXDyHeC5d++oZvh/R3lUY?= =?us-ascii?Q?o/Jg8xLbiS+0fEk9fqcY6T1ZcatRT/qtqj6hfW4c8ZrtERg/6GpaOIbBBYSn?= =?us-ascii?Q?nSaTQnIGnGZ+pWECiNAarxXWx2/LHEOFWULT4UtTYlfPWxWdPH82sQdvrm4Z?= =?us-ascii?Q?fBlxlZMAqK6A/pKLY/95li0AuZuSy2NQrRfeP6xIMTpA/wCW6sIpzQb51lcx?= =?us-ascii?Q?6PoLDqtnDtDoyYKl8aDv4m/Oczp2gTj19w6Izj1RXgdWzJg4qpCcrBIrFmBc?= =?us-ascii?Q?2RNMV9cjYja+Kj08Yy0=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB6006.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdf88823-0bed-428b-ffb7-08db7b638d39 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2023 01:19:30.4381 (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: TZXemGLETUN3Upq7t68AibqC+Gzpm2kSNESjeNzOS3tRAvbqlBhHcl8G5Lf6eHyvqtM9nARlw6nbM3QSetTd4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5625 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 > -----Original Message----- > From: Miao Li > Sent: Thursday, June 29, 2023 10:27 AM > To: dev@dpdk.org > Cc: stable@dpdk.org; Maxime Coquelin ; > Xia, Chenbo ; David Marchand > > Subject: [PATCH v2 1/2] net/virtio: fix legacy device IO port map in seco= ndary > process >=20 > When doing IO port map for legacy device in secondary process, vfio_cfg > setup for legacy device like vfio_group_fd and vfio_dev_fd is missing. So= , in > secondary process, rte_pci_map_device is added for legacy device to setup > vfio_cfg and fill in region info like in primary process. >=20 > Fixes: 512e27eeb743 ("net/virtio: move PCI specific dev init to PCI ethde= v > init") > Cc: stable@dpdk.org >=20 > Signed-off-by: Miao Li > --- Tested-by: Wei Ling