From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5FFBAA09FD; Sat, 19 Dec 2020 07:12:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3FCBFCADB; Sat, 19 Dec 2020 07:12:09 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 396B3CACE for ; Sat, 19 Dec 2020 07:12:06 +0100 (CET) IronPort-SDR: /3rVmk8AT/zjK4TTCDi0/r5eGyICVCM30KZmRpoV/5EJ4qozy+xLfHGL1rec6EtuNkCGs3zpKr 7up2sVY6pjag== X-IronPort-AV: E=McAfee;i="6000,8403,9839"; a="239640863" X-IronPort-AV: E=Sophos;i="5.78,432,1599548400"; d="scan'208";a="239640863" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 22:12:05 -0800 IronPort-SDR: BFQ/4dWOJxVfMqYRc7WUO64zA108XZ8V9PbpeZKrdfTKhdEnXiu0NRsLVvsPgS0P3jHPNaj54j 9PeGIyxmU/jA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,432,1599548400"; d="scan'208";a="343740820" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga006.jf.intel.com with ESMTP; 18 Dec 2020 22:12:04 -0800 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.1713.5; Fri, 18 Dec 2020 22:12:04 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.1713.5; Fri, 18 Dec 2020 22:12:04 -0800 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.1713.5 via Frontend Transport; Fri, 18 Dec 2020 22:12:03 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.170) 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.1713.5; Fri, 18 Dec 2020 22:12:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PrGhFlSoYZX9sPenDuLx0dmvPzRTVNc4HHPgl9vQiqwTqFUrNY5g+yyxKDaXSR/G02vLVlFNxI+Hzm1NlNRMUu6tLSxynmk1ABA3JMkZfeFFS7OxkrVlDAAhq6mUQBf6uyEZ73tqISIUvwasnTtFpj4vwwfg4Skh59HiKx7b+pmoiAsDL9kk12FrhV5o3E4F//F0SWvn/ur1a2nf3BzNIp3zCGtBsMD6LW8Ds85/j23c2Ogm/fknH5HLjTJZffk7qJbw2wyMmb/dsSvjjlo2p42WVvXHlkguqDnYnZ8HDpGxdXIT5R/CZqWmkVgcbgaL+M9YsaZNOrHU2l6chQc4Xw== 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-SenderADCheck; bh=0r4q3poKKj+F2iqb/y6ET37wotGsMKOqUL6LhcwyRXk=; b=fxhGyBYDxsc/FGjVh60CxYQ0tiwQsLn2j3aZGCXjRByTe6KmjHPbbXfy3kQsFzny9KRJfVKCOYlAN1YWbMEFPVTj151RFP42hRkb5ESb8OmhN7L5k+rGXgTKFicEQoCsB+K7htu1rb0R4YhdlKKqNNLrt3zrCo80SjBRzZYbYJNrBAlYdH00OEL++HfegPmhq7Kpr5A08/zFdfTafjCvG5QV50u3NH8Xlq1M7UgLT+L5YRaub1PtjTZ3hMr7JTJyEfbiJuaWPCjbL+Hlus8VaYAz+3ngQRnaYXBN0FXAzQrXqCTc4c8kHkX1I3IPXgoRO6DM/w/6nrsMomfdX4R4XQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0r4q3poKKj+F2iqb/y6ET37wotGsMKOqUL6LhcwyRXk=; b=LCBmm8ZHA16UgGSrOkn5w7k+F4NvLR4YIyKaeXZUy1TIsAUur1m23vRRPZpDCwbROUQBeox36TdpYB7KEeZvP+cWTnzCcf80UGIReXNTwM1E+nCD5awzYRm5oe9uBKQvfcBHCTBulaJVD8ghaXcSyoC0BEpVB3rZs5lMXVNar5s= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3743.namprd11.prod.outlook.com (2603:10b6:208:f4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Sat, 19 Dec 2020 06:12:01 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3654.025; Sat, 19 Dec 2020 06:12:01 +0000 From: "Xia, Chenbo" To: Stephen Hemminger CC: "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" , "Liang, Cunming" , "Lu, Xiuchun" , "Li, Miao" , "Wu, Jingjing" Thread-Topic: [PATCH 1/9] lib: introduce vfio-user library Thread-Index: AQHW1WFroX9x1ajbekOaPH72YvZS4qn98Mig Date: Sat, 19 Dec 2020 06:12:00 +0000 Message-ID: References: <20201218073851.93609-1-chenbo.xia@intel.com> <20201218073851.93609-2-chenbo.xia@intel.com> <20201218091358.03a82d69@hermes.local> In-Reply-To: <20201218091358.03a82d69@hermes.local> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.195] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bb5a74db-2df6-4b51-09ac-08d8a3e4ffbb x-ms-traffictypediagnostic: MN2PR11MB3743: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2201; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k1OE+VnWXocdBsm2b9a0UdjOQSyuOdpcjTcNvy/D2JzQktIpW50l/DqKsExlka7Fxnr2Bt2fPDwXoNYDLmfz2fdIG63HUkHtlCLl7axaYihnZZQi2dnJFGF0XErg4s0fdyDbhGRg1diUbLMwF8uDYLqDtR8vmiieDoHFbslPr4l3X6idWFJf93I8pCLHbShPoi1tiiWyjl1+76ISB4Wf24rC3QdR0Ku26s3T0g76o0M+NVCzAGkz7UBjp9htnzmTjKjZl6vG4ZeNiG8Uy4vFwDw4d9szJjpWjv6FddBMIZmO8VQM9UFDorktoAk8MD9SpAVwS67f4ViIH/9Y2m7Xvg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(366004)(376002)(396003)(136003)(66476007)(52536014)(66556008)(7696005)(107886003)(4744005)(8676002)(8936002)(316002)(186003)(76116006)(6506007)(66946007)(83380400001)(26005)(478600001)(66446008)(86362001)(64756008)(9686003)(55016002)(71200400001)(53546011)(54906003)(2906002)(5660300002)(6916009)(4326008)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?FNVRq6vW0U8tlsP+oOaLoGLdp9ZH2dP4wJjrQyexDQMyQvneeQ478svJBeg7?= =?us-ascii?Q?C6zGDVa2SmuBje5RZ274wpC6C0RXNUi8Khe5i4c8KJrkgA57McnTde/j1m4p?= =?us-ascii?Q?qdrSJyft4ax+jHGhkqHOxFwZYCpN8ieBiOROhodtXjXQ5Zd6qFcJf+Qd90by?= =?us-ascii?Q?Q5bp8WLXDB9ShDhildYVR/J9RIeEHNmmwmPkC5r+yp++X2inFbhlx4HFmEZa?= =?us-ascii?Q?h0dnbvrck4kIEUfw5BeK9O4jHmLtv2swcjCx7MI98gFD6LQjkJcedm4bmrJS?= =?us-ascii?Q?me+sTyDlsbZ1KO3P/xtigI3GgmpAf3z8akNZvPSNw5i6OCaH290yxwBnZFWI?= =?us-ascii?Q?GLLGnV11tnobA/9DGl28s6WQaBW+P52a6ov1OtKuT3h77coSSq7QXB6r1WXf?= =?us-ascii?Q?gsKDsMgduoq5Ul++Y56AdDfMO1asUcSOhOmzlpTKBrT/Un2Os0TpESGff9r2?= =?us-ascii?Q?Mzg5b+CdDbtr27XllIGDgGZmS4i1YZbqXjHEnEZvTp9IOsWmspn5SX9rn2R4?= =?us-ascii?Q?GO0jVJJo7sTLJnUDwiK0Gcg/91BtDMiJUxMgMhNjP5VvfCtXwbJR6sO4PNm9?= =?us-ascii?Q?JStXJ3H7VQIkD6FF9XIYtushL9HARUTBpHJ9tl3lqQG+bPRsOR6MCF/uYM8D?= =?us-ascii?Q?ZLU7jEu3fxHDECADlkJF1ivIm7pxXf6J0JAyutxkK9tURdzJkXtzjcJWK9Kc?= =?us-ascii?Q?SwQflMVXB3cYvUeJ6v6lueeNOIyN653NrGHbrFd9gAuGUCSPOemYp7Hu1QNh?= =?us-ascii?Q?C+j9CHIqkcQi7Uxn6Na+qswMvfhkgB0TkvXfSSIsth90WThL0xq5Ng6e68e4?= =?us-ascii?Q?4TbtAQSjboJRWmnAGYGRJ6mRMX4nSlpAhw0c8FwlL1LmZ5ug+C0gGDoAPKlO?= =?us-ascii?Q?j0Y/Kkm629X6bfQmAezC51bd36nrMnYRPfzkjkGbcyzrCCvZnyMTPGtjdm//?= =?us-ascii?Q?bbd77KTLLFwqOSRoViVFZ3MDgMW4IoSfIaK4EyFg+PQ=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: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb5a74db-2df6-4b51-09ac-08d8a3e4ffbb X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2020 06:12:00.9624 (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: qplPX3X3cUrYcjJKtXzLDjguJY4YXvQls5qi+NFWEJpDzCi1ezCq8JTTWnkoVeOeJU/2gq97+tu5+rWLUSL0pg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3743 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 1/9] lib: introduce vfio-user library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Stephen, > -----Original Message----- > From: Stephen Hemminger > Sent: Saturday, December 19, 2020 1:14 AM > To: Xia, Chenbo > Cc: dev@dpdk.org; thomas@monjalon.net; david.marchand@redhat.com; Liang, > Cunming ; Lu, Xiuchun ; Li= , > Miao ; Wu, Jingjing > Subject: Re: [PATCH 1/9] lib: introduce vfio-user library >=20 > On Fri, 18 Dec 2020 15:38:43 +0800 > Chenbo Xia wrote: >=20 > > +inline void vfio_user_close_msg_fds(VFIO_USER_MSG *msg) > > +{ > > + int i; > > + > > + for (i =3D 0; i < msg->fd_num; i++) > > + close(msg->fds[i]); > > +} > > + >=20 > Please don't use non-static inlines. Got it. Will fix in v2. Thanks! Chenbo