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 3AB71A0C43; Mon, 15 Nov 2021 09:04:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB22D40E01; Mon, 15 Nov 2021 09:04:20 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id C1EF440141 for ; Mon, 15 Nov 2021 09:04:18 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10168"; a="257145198" X-IronPort-AV: E=Sophos;i="5.87,235,1631602800"; d="scan'208";a="257145198" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2021 00:04:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,235,1631602800"; d="scan'208";a="493911908" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP; 15 Nov 2021 00:04:12 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) 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.2242.12; Mon, 15 Nov 2021 00:04:12 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 15 Nov 2021 00:04:11 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2242.12 via Frontend Transport; Mon, 15 Nov 2021 00:04:11 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 15 Nov 2021 00:04:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GAwe4ePnyY9y0Hm5jgGsVu3Et1PPBYDdSazX//MOx71e3TkvnvkqlPInKJFJfjm2q/ufjE5y7wlNceCNC5sFVT3vlS/nhCRq7AK9OiuoNgiQNTOLxWlllsUkRoUpWe/jVzk/advhY0RHFiigH7mVcP+Au3A8I7Wrgs1UBlulcpGGm/MSuyLNdxnSZeda2cbSRnVht2PGMB3hyKeTiU4iQgum8/+5wOo5nL3IglW7v5VT5lJxr2eMWCxe6kemVV5vS7nl3oBML+0qIXVvo3eMqCeo89qowZLcf6TCLSsCsswlAYkkzh7kLxBrVNpA+mvhumowB/oDoQhZUDt0wkBdNQ== 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=sBobtoDVbSRlWdTBrAGRTZdeHt5ulpqZORW+J0l4Ce8=; b=KYK1qXb3+M2k2e9ppHtshycUv0aC0tk+tM1Dpr/gSr7OlNXhGTrFjZlD6SQ7j42WTnIoPZj4YfsrIB7yl8JdT2IReZeh8/CS2HndM6JGvcKr72JwL2zfkvI88OOdGK9OLGOKEnoWC9r1/POrUTF6PKVoHWMxkJLypdlWtTjuU9jI1w2TJWWi+iOe8VC7veOPCbBTcYBHZYpPRG64U7M9DTBhgJhCSH2hlA/aLGWvCBdSPP28p8UgessJR71otv9+BTw4Zpun/Smggs1lmjtbho4fVCQinkRMj3rVgESztF0d2NMeFNmst1pzj+0C9QyzQ4FysHjh/WHrGsxxtb1G5w== 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=sBobtoDVbSRlWdTBrAGRTZdeHt5ulpqZORW+J0l4Ce8=; b=jYNnZljtGvjKHP3TXcQ7Ib7sXn26kp+DMvCn+vWzqpvujsZ4x18czkckBR9wg2ww4fcNd4veQfirLTbrUHbH2Y5ixWE9cXP1BDAXvWkGb4Gz0ZiErGR52azMwT7h78WruCVdPbKcrf89w0/HliifVQiaVfXtp8WRX5QPYVDfo2Y= Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by SN6PR11MB3117.namprd11.prod.outlook.com (2603:10b6:805:d7::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.27; Mon, 15 Nov 2021 08:04:08 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::94ce:97cd:1b5f:b511]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::94ce:97cd:1b5f:b511%7]) with mapi id 15.20.4690.027; Mon, 15 Nov 2021 08:04:08 +0000 From: "Xia, Chenbo" To: "Wang, YuanX" , "maxime.coquelin@redhat.com" CC: "dev@dpdk.org" , "Hu, Jiayu" , "Ding, Xuan" , "Ma, WenwuX" , "He, Xingguang" , "Yang, YvonneX" Subject: RE: [PATCH] vhost: fix get hpa fail from guest pages Thread-Topic: [PATCH] vhost: fix get hpa fail from guest pages Thread-Index: AQHX1sbneaIDatKKNU+KnXrGpOWL7KwEO/3g Date: Mon, 15 Nov 2021 08:04:08 +0000 Message-ID: References: <20211111062725.108297-1-yuanx.wang@intel.com> In-Reply-To: <20211111062725.108297-1-yuanx.wang@intel.com> Accept-Language: en-US, zh-CN 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: 698675ef-ef14-4a99-31ed-08d9a80e806d x-ms-traffictypediagnostic: SN6PR11MB3117: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: f/euFzj4AAYGbMLdI5gkp+PErtDwFZOjSKByrqen/fW2wr+4Ay2CtNYNqlCj5hZ9IkAe9YR8GHhPni6l2TYgoOC1W9KWtKdQ0vs/o0H0Opk0W5y2KZ0/OXXPpCCbw0qGediUs/3yVtk+5wN38xXDpICkbwBD205TNd7HzlWwtzQ+QBcquVwKOTLrL2Y+HO69KtKMwKlAeQRWFxQvI2spiUouCaGsi4T2ERj5qwMVPU/RS1mURk/uQLRC3tvW1bQT7ezhjddQ0+FF29LwrngPdFHokj25mYeiFJpHeO06sP2wBd8fz/CQTAqgrm+56O8KMuklaUOQ/6WRYmfaL4MPfORsDKPrn5RZ6/bRIBmQolXgEZGRGp35fnlFkobE/LS3eDKmX42WYzxAfA1R6STfYw9Cdmtva+Fk+8BY6JsrMN5M0+2+Hy60pLuvqx32vZ2umq44TEnxFuONf/FRHrMJWLG3uiA5VnnW6DjMymbop8ez7zWtSaJ5WPTwzYKRo3Fe40Vm1YZY0QFSEgiJMQcFkv0rTjNUDbUJ1WQClnuG7GXrGrmreyKRN7XtqGPEiSaeACoGnn+A3ZeCRGHRdlx3pJLMDWw9ZrfgAt2TrkjaST0FEQLaVFuarUR/oQzjT/aaB2Sup7VqxVG29xcByBUfLdYzXDNkWpQfGjmP865owmOaYVZ8YgGMi7j36AP3C2CPRlgIwDywuQ1g2jNBhciVeQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(86362001)(38100700002)(66556008)(26005)(38070700005)(76116006)(508600001)(6506007)(33656002)(2906002)(122000001)(66946007)(66476007)(82960400001)(8676002)(71200400001)(53546011)(64756008)(186003)(66446008)(55016002)(107886003)(316002)(5660300002)(110136005)(54906003)(8936002)(7696005)(52536014)(83380400001)(4326008)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?aDFPZzcvL0VUeE5ML1VQVlcrU053ODNTQmFDaGppYndPenMwUk9QbkN4U3JD?= =?utf-8?B?TjlVdjREZElaSC8xUGdaalBOZzdWSUZrcFlSaFZ2WS9ld256cVdad2xROEJO?= =?utf-8?B?M1FXaW1JY0kvclg4WE9iY08wZFFpNjR5cG1JWkdMMGVjTXN5amxocld2Uzls?= =?utf-8?B?SHcwK1NFWEZ6V2M5cW5zSC9yV0hqY1Y0NUpobVVCVzJ0Qys2emd5cExBMG1S?= =?utf-8?B?OENrT0FKMlBhRm9hSjd2WFRqV2p2WEtGRjJEdkorUGlIK1dkUENkVEZ5YkxS?= =?utf-8?B?bVkybGNSLzhyV3pibTY5YWZsY2d5TzA1UzRYczd5b0FabzZYTGRNbXQ5dEpV?= =?utf-8?B?b1pET1NRVUZraVZnWHpKKzN2cUpEWk1uM3lIVk9aNnZNUlpWc3RlYTNWTE1Y?= =?utf-8?B?K3NadVJGcHJ2L1EvQnF0YzZvT3d5UEJtRlA2Sk9XOXZ1a2dZUVJHUTd1MFky?= =?utf-8?B?Ulc3ZTRWYmdESkd0OGVPQitlRnZSV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IRnJDRDFzOFJ3ZER2SUhNS0d4TWNxMXkwK2M2?= =?utf-8?B?UHM5a2poUGJ4cGdkZEhnVEp1ZHQ5ZUtIMDlEQ0VFeGkzblFhR0J3L2kxamtE?= =?utf-8?B?eStLK0srOElnbFJ3RDVEVUkvVE43QTkyNDlWQzRwQ2tJTXFHQmd6Qk5kNnk3?= =?utf-8?B?Z3dsVzQ1REVLaU9haHdTSlZjVThxSXZsRzkxeUlGTEtoZVhoVVhxYSs5ejdo?= =?utf-8?B?dytyWVlibUxpU0N6OHZzcm9YakU5OXlqR0RWVHJqdWVuRmZTMUN3bEdXNjdC?= =?utf-8?B?akE5aUl3ZGpFRkRydGYxd04xL2lkTnlTRmp0ODd6ak9QR0RnMTNkTlUxWkdH?= =?utf-8?B?MUl3c0pGZkZ4Y3dsQThwaDlkaHlOVHgxNGk3YVcrRXJnWHVJdHFzUGJSeXBT?= =?utf-8?B?N0JFcTBWYklUR2xZenlZRVlaalJxa2JCSnQvTjVCZkI4ck5tUlBuUDU0RmUr?= =?utf-8?B?Q0JVNGQvdWpCMGZQbkxTdVZBWGdPeU5GSFpCUTZaQ0pvU2pWWVJ1b0hRK1BL?= =?utf-8?B?N0d5OHUvN25PQmJZVmdCNVJMT20rYmhiL2pibEcyNXF0OUMwS1J3bGVCVU5C?= =?utf-8?B?OEFDMWVncWRCNmttVGdLaFdCVXc0a1JwUzd2TDUwR0tTMG9jQVpvdFZrY0l3?= =?utf-8?B?VVl0NVEwVkdjWTJkSmgzK3NTRVdZSkVFWmpiWEUxZ1pNSkQ1VkNaL2lnQVc5?= =?utf-8?B?c2NEYkVTbk1pOHFSdUtvRCt1K0xWZTdrTGFFczBtSzB1SG9ZOGJkbTBYUlox?= =?utf-8?Q?KaXgoymzS9nd7aTEecivfR4=3D?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 698675ef-ef14-4a99-31ed-08d9a80e806d X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2021 08:04:08.5015 (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: jkpVK7Tp5h3M+iiYd1TSGzCvIlbTdH3/WRvk9v3tTsyqUddX0KHRjAVXg0jxBPh6SH13o1ib+H2SC+ggYGImCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3117 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 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBXYW5nLCBZdWFuWCA8eXVhbngu d2FuZ0BpbnRlbC5jb20+DQo+IFNlbnQ6IFRodXJzZGF5LCBOb3ZlbWJlciAxMSwgMjAyMSAyOjI3 IFBNDQo+IFRvOiBtYXhpbWUuY29xdWVsaW5AcmVkaGF0LmNvbTsgWGlhLCBDaGVuYm8gPGNoZW5i by54aWFAaW50ZWwuY29tPg0KPiBDYzogZGV2QGRwZGsub3JnOyBIdSwgSmlheXUgPGppYXl1Lmh1 QGludGVsLmNvbT47IERpbmcsIFh1YW4NCj4gPHh1YW4uZGluZ0BpbnRlbC5jb20+OyBNYSwgV2Vu d3VYIDx3ZW53dXgubWFAaW50ZWwuY29tPjsgSGUsIFhpbmdndWFuZw0KPiA8eGluZ2d1YW5nLmhl QGludGVsLmNvbT47IFlhbmcsIFl2b25uZVggPHl2b25uZXgueWFuZ0BpbnRlbC5jb20+OyBXYW5n LCBZdWFuWA0KPiA8e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