Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1002855pxb; Wed, 15 Sep 2021 19:28:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXfzopPl0z3uKSGR+SUEWRMxDtKuDeaU43t+Incq5sB9uoQrrD7bTNYTzpd//zgZZMZyWK X-Received: by 2002:a5e:a913:: with SMTP id c19mr2417127iod.31.1631759305550; Wed, 15 Sep 2021 19:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631759305; cv=none; d=google.com; s=arc-20160816; b=G878yA7Xi3rLnD9ChHcuUKDbKLUzeU+/DcAzmXc5M/fL19b/I8WQ9kBuipb4uA58Nv g8Q/VRo3gqgEvBxQSF4Wi+6l2VVxhEmVeCAOFDJxScJFMjj7LDwFAjRmgCKxJlx6uIhN 7hARyDMaQ84pjAiLGwvylva5sDy3xP2CR3l9KPV1wXeBYMon8mKjCiqPe2dsFKyJ5+gL p2rfcfMDDoQCnJkt3D+6CiD73KcN2CwbEyOkDT500+jUgdyJgUAYYXBFgS+UnXTlxKlm tM83AzWH4E4fABY5DGQeyushIVeM6DoHbVrTMpYXEKJWv/LLVToO0/sRP0gsC/Kn/vQc bHgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=eQpI87wwuYyIW4F7dO8Jq2uIC/0ZqirsQo4vGfnG6pY=; b=ubHO+1O9j0SVeb0R1BLAbiCB0+2pvO2zVPAH3lFbpQFZoNZB8QbqVXcW45HTZDyqja oIG7YbJcYgTca8zZ0++R1J4IJRJyR8DY3gDOoAHM6+fOxzbVFp4s5WhO8v7QpmvX/Wmq U63qFaJuoBAstLYMungAGdw0TyXHllB5IYmvce84FAGx9+9llbBv77UB7uJ9lwV9aWeW UozX0hNW7B76tXIYVsEFMzqnPX3thCFJzp4ojcJ97wf8+1Zrl5gESSFXkVXMAFZKh4Or AtNsnlfW148oX3hQBX7Sy5Mp2ljHVlnpk+D4xY85yuRomt6oWBuLxhj9lybVNjZqLKFH nfLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si1367945jaf.0.2021.09.15.19.28.12; Wed, 15 Sep 2021 19:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233865AbhIPC17 (ORCPT + 99 others); Wed, 15 Sep 2021 22:27:59 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9882 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233652AbhIPC16 (ORCPT ); Wed, 15 Sep 2021 22:27:58 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4H917P63Ysz8yST; Thu, 16 Sep 2021 10:22:09 +0800 (CST) Received: from dggpemm500008.china.huawei.com (7.185.36.136) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 16 Sep 2021 10:26:36 +0800 Received: from dggpeml100016.china.huawei.com (7.185.36.216) by dggpemm500008.china.huawei.com (7.185.36.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 16 Sep 2021 10:26:35 +0800 Received: from dggpeml100016.china.huawei.com ([7.185.36.216]) by dggpeml100016.china.huawei.com ([7.185.36.216]) with mapi id 15.01.2308.008; Thu, 16 Sep 2021 10:26:35 +0800 From: "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" To: "Paraschiv, Andra-Irina" CC: "linux-kernel@vger.kernel.org" , "Gonglei (Arei)" , Greg KH , Kamal Mostafa , Alexandru Vasile , Alexandru Ciobotaru , Paolo Bonzini , Stefano Garzarella , Stefan Hajnoczi , Vitaly Kuznetsov , "kvm@vger.kernel.org" , "ne-devel-upstream@amazon.com" Subject: RE: [PATCH] nitro_enclaves: merge contiguous physical memory regions Thread-Topic: [PATCH] nitro_enclaves: merge contiguous physical memory regions Thread-Index: AQHXqRawqxaS4TqZA0GxQ/Ip1Z5mj6ujSD8AgAFbRNCAADd4gIAA+paw Date: Thu, 16 Sep 2021 02:26:35 +0000 Message-ID: <42c05d640a30424aabac2b16f68b44bb@huawei.com> References: <20210914031450.919-1-longpeng2@huawei.com> <2a38e35a-5dc7-72fc-7cd0-5b54cd1d212d@amazon.com> <49b04e536b994795b2c4015f6a3ef8d5@huawei.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.148.223] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUGFyYXNjaGl2LCBBbmRy YS1JcmluYSBbbWFpbHRvOmFuZHJhcHJzQGFtYXpvbi5jb21dDQo+IFNlbnQ6IFRodXJzZGF5LCBT ZXB0ZW1iZ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