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 82A74A0542; Mon, 6 Jun 2022 11:24:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 23CF640A7F; Mon, 6 Jun 2022 11:24:48 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 6C9A140150; Mon, 6 Jun 2022 11:24:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654507486; x=1686043486; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=InIRjDiqSBN0ghXcNe6h+7ooTA/YPPJHdqYfqfUn9fQ=; b=CXvQsIucFG+5UCT8wsTjTwsNWTvbB/YxH5gSGbanmKVEfLMy5EOGEiwg GVCIqK4cwv4gjT6sPnZ7E7A8hVEiSYYi4xwt9hAljW42MSUz2O/9zr+LX 80Pc7zLSbn1atNISfLZaBGb5EFcZFmMEHgtT5b2cI1k2i83iGqQtYCVxL m4gafuJGP+K94ZcyD4zEK8NdseKHS+fNPFa/NnGzhPg8sJsinMH4XDO02 p21uyfsYUn+u4Rl0xSsXx+D7EaYe0kb/exf/GD9kUkXEYM1a7mQWF6JOu C3z0BSs7ebAxBb2Op6QVbhUjL1CnP2k7xyOuRu9pmM+MrxxcfnU31rJSt w==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276678988" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276678988" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 02:24:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="906464035" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga005.fm.intel.com with ESMTP; 06 Jun 2022 02:24:31 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2308.27; Mon, 6 Jun 2022 02:24:31 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 6 Jun 2022 02:24:30 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2308.27 via Frontend Transport; Mon, 6 Jun 2022 02:24:30 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) 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.2308.27; Mon, 6 Jun 2022 02:24:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emsPBbGxvRnOWD8ZVt3iaMjuw7AWx9Q1T/m6wYAm/wbrfV85YfutboTSls5F2JxETnhMBZblbxQpg8HxAxquxMUyFGdHNT70omDcteLhS0QU0ToESNeTkSpSUDWs34zXNP7UJ93ufRmOK+XYXTeqE4JBOJSnei4rFiqzKSVckd/7zCnSFeAsyPYuibFTgQ5Ifr7p68EYEvYwi1XyzP4OAE/uq3Cuc/apX3Nuam5EhGwnvftfGx4qIIuaPnhi4aGzxdBwFwhfk1Rxo/jzejVr8LYtdh36TbAVs5KG4tXjkWHSEaXFTpSziWfgXVrriPjMcQyuEPBUoN+MMmvo7M9tgQ== 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=InIRjDiqSBN0ghXcNe6h+7ooTA/YPPJHdqYfqfUn9fQ=; b=gjgIHIggTa6G7IfPI5+ozly7wvO7QMzqEuEIkiUPB+YqhXWTd9fGiB398K/NayirKrQH89iI9DJubXdUTD/l+nG1x8pCwNy3PKyETbCZsnH2a35aWqho8IXaK5pOSjHOpQGOxwKpYw9DjlgJMg2OckaQhzRozX/iIg10QCVzewXHckGChsfV4J0ysHg1kaO/LAmt/8VXjWoal6lTyj5psG/9Sj8KJ4jmIbb/VTsXZdm5pwJ+/paz0Qv1f/nKS09cams3AGBCHa/05C9cJn4M9fE+pOaDORRT51WyZFhip3pZl0CrcScgkMaadxOKHSdLDs8kAZpWQNklOx3zSz3n4Q== 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 BN6PR11MB3876.namprd11.prod.outlook.com (2603:10b6:405:77::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Mon, 6 Jun 2022 09:24:29 +0000 Received: from PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::4133:3126:8dc4:88e3]) by PH7PR11MB6006.namprd11.prod.outlook.com ([fe80::4133:3126:8dc4:88e3%8]) with mapi id 15.20.5314.013; Mon, 6 Jun 2022 09:24:28 +0000 From: "Ling, WeiX" To: "Wang, YuanX" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "dev@dpdk.org" CC: "Hu, Jiayu" , "He, Xingguang" , "stable@dpdk.org" Subject: RE: [PATCH v2] net/virtio: unmap PCI device in secondary process Thread-Topic: [PATCH v2] net/virtio: unmap PCI device in secondary process Thread-Index: AQHYeXxzPHmqEGyZlUylQHPRuPLvRK1CG02g Date: Mon, 6 Jun 2022 09:24:28 +0000 Message-ID: References: <20220421111537.935333-1-yuanx.wang@intel.com> <20220606155543.1213665-1-yuanx.wang@intel.com> In-Reply-To: <20220606155543.1213665-1-yuanx.wang@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-office365-filtering-correlation-id: 30e9da00-c405-4b88-b258-08da479e5b50 x-ms-traffictypediagnostic: BN6PR11MB3876:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cR4eUvQZNmhCbC9DBJ9EWMzu6lZh3d/zpFatf2FOJcyHkpVNUd5z6SLfcQ2h/8rcJebmipTufIyS+CYIEqZWnB9NLyLuzt1aIw+OdVwa4ojLNPPOSeiPtvYlUhikchsAemSBkw57rL/jTUs8nl8h0jmPfWuXIj1F1sjQ4GmkdDKj6AAVU/jhtq24tiJq3ZXJPIykohkPFa/EwhtdKggOFCXSqrzacg8TDIHkqflqpYerFciAdXAMWzCYFIdoAFGX3uyfOocUgAUXp9/Dc5ZjzvwLOjQJVuucZPf04pH63OP8dDlUGkYPjetKMshy0UHS21fUt92RNauAgpxQ4GXCpzHud9qccxf2nROdsSLCAekcKGRcSrMuiaEcdzUYF/H8bKP0EfB9KmBiOIjAsOufR/mOQCyFwcNrC+732QWbUbYkXIropQsB7RjH4TFjGksNI7ZxdLcXUgoDN35CjiiPHbTiHn1a+So/xT8EPQHWdQ7KfRGF/gLWeQFYCOYu5CaCro91jU94+ZcoWCc3abU16k8IjL1CI2ucYbbLqwJOfRseahSBw6Jbk1tayoQN0m0+ECW0uhriQ5XXQO5gFUKOayIfV+ql1q+0pbQtCEWCOtwzxQqpF2GEqH8stXAchCI1poE5JI5Z6wypblu+ZkhiwfYWET6A0Xa+n4yGwKXruJIgLSr0oRkaHvLibITWJbDelcCqoshlEoRKiWzzNIig0g== 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:(13230001)(366004)(26005)(38070700005)(186003)(83380400001)(53546011)(9686003)(54906003)(316002)(110136005)(33656002)(71200400001)(55016003)(508600001)(2906002)(52536014)(38100700002)(86362001)(4744005)(82960400001)(7696005)(6506007)(122000001)(8676002)(76116006)(5660300002)(4326008)(66476007)(66556008)(64756008)(66446008)(66946007)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7dNs2YEIV0W94EWd51J2hsAH9ozpGukaI0cAeX6xcbtP2f9tizGYJKFSSE/R?= =?us-ascii?Q?jKMaaBODnHBquf/XnW30riYsLvNf+toWsME1+aBjimpxM75EjeLpybRjVfMh?= =?us-ascii?Q?7BodfC9LW0ONU5euC5S3JTgFfd9kRCw64UqBfCJ6dN0d/LsK+wIVB55JNil9?= =?us-ascii?Q?BYeeL1ERct3Ihh3OMKP9ucuaYlq0wjXAz65/lD0KgbUDcsZXhdVYLI0t3DUo?= =?us-ascii?Q?WXPY9MAbLuHlb+cU+4Oz26R5z0nAHUR1QV6iC9X5fLdq+2hW0SWi8NU+7+TH?= =?us-ascii?Q?IetjKuSgIBQcApKTVIC8IqkCjgalkqHkcJKk/tMHI56jGx0r+PcGk6Iu3o6s?= =?us-ascii?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vBj7yJU4X?= =?us-ascii?Q?u/MJbJm44pjch++/7JhBrmq/pn4ZqYBzWJxn0fnjYETOlXdpsmtO5k1mc3lL?= =?us-ascii?Q?WaDyJT/QAGOmFUyD7gW9D0JqkTdRMEOSYgt9u7hS/g9CAbhzjtpvZ/c0XHSq?= =?us-ascii?Q?M9NlSM5uy6QoEoe29gjHyY00Xs5CyL3gmJJqf6fT1zlQvKeBusj7M9hkXaVG?= =?us-ascii?Q?WikuXrNEZg+xazgrfdvraMHf7W9g9wzS30GUBzbgWZv3q1kVnvmhnuJEqzA+?= =?us-ascii?Q?FymdG65Y5ls9H2aFghP4/tM2yAgsa4/gV3rBZksGWWYQ0x5SqhpT2KflMZdC?= =?us-ascii?Q?liX2WNpGPwK5m/NTvTJx0//F3Jch8VBtzkFui0RmfiI8LeDBLlFVz6+LLwQu?= =?us-ascii?Q?2X7h3gfwFNluk18I5G0+lEON5yFmDwKF4SJeVnqIq9em/+ELXdOLNicAYp0C?= =?us-ascii?Q?w/U4qPfGlm/9ovTOaFV5bzTtbUHRTa4blhjT8yGvMKClscvQse7oAylzWfYm?= =?us-ascii?Q?0kups3Jz8A=3D=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: 30e9da00-c405-4b88-b258-08da479e5b50 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2022 09:24:28.8297 (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: w1xxXRSbKxSo1bF+PYsXmO1zoW/v+DKwmgBAeNbz8djfKrB6SDeIhc6HtiL/VHsiQ0gv6FMAxDnUrA/c64kjGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB3876 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: Wang, YuanX > Sent: Monday, June 6, 2022 11:56 PM > To: maxime.coquelin@redhat.com; Xia, Chenbo ; > dev@dpdk.org > Cc: Hu, Jiayu ; He, Xingguang > ; Ling, WeiX ; Wang, YuanX > ; stable@dpdk.org > Subject: [PATCH v2] net/virtio: unmap PCI device in secondary process >=20 > In multi-process, the secondary process will remap PCI during initializat= ion, > but the mapping is not removed in the uninit path, the device is not clos= ed, > and the device busy error will be reported when the device is hotplugged. >=20 > This patch unmaps PCI device at secondary process uninitialization based = on > virtio_rempa_pci. >=20 > Fixes: 36a7a2e7a53 ("net/virtio: move PCI device init in dedicated file") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yuan Wang > Tested-by: Wei Ling > --- Tested-by: Wei Ling