Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp450105imm; Tue, 3 Jul 2018 23:27:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe6VS8tvZwnkYQVF/k3o98OMhd+WAb370kJLHsIBWTNd/LWRwnNq4rwfcyrw4B6fuvU7TIu X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr827534plh.152.1530685640991; Tue, 03 Jul 2018 23:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530685640; cv=none; d=google.com; s=arc-20160816; b=gSRvAttdSVBZ0EBtncxZXEuPsohmReRJE2XzNek3g5twliFZPzbGBCJczthaDx2FJY a0CBdgK8i4JC2o3CtIucHVsMhhm9PiLlzTAiEICM57suvhqIKiiZMxU/Z7s19AxCLQmF +tXvKZqjnmbqun6OuZTfcPSyeSJscjDzrIkxoz87+YAUfK0mjwUy1GztxgqmYWsQj8q/ ZPgklx3MDhyT/NCSyb3SIACa9FTukIbw7v3pFBhlj4m8rPDQ5phOClxDUALT1sWi5dcV dMXk+8JomYQX2t446230op375lO0x4TX9ZuOUvueDMT27y/edK6z+q0Gf4v0cz8P7v+M qOBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=KE8TTgFLrH6k+u8YVHi5h2YX8HPQvCh3/J/NZtADVFA=; b=T7JhNM4+YwNUVQc/9siq0SkWf9VyP05FfghBLLu6ldfdNHO+n2Giv7NYArkvRWvN7B 2y7uFRYC9esfuEe17+Okkvkj6AmKkBQFvFAYMMkjnDNPIHyNm9qkdQa1VrpUNAbyOozC PoDE1UoEBc077hgUZJ5GtqxOIQX9tsN6/VXk6y6cEfw5faVRnjZab5olov19cjHKWdLY x7CUtVxuk2xyZFB588XQqSSWkWGE5kjmMMVH0iLlGNNwcKybKw02oreX2wLN1UzXemPc OeMR3YZm+PaZNej+RP5z0fSxrXDAX+nWXjCsV8AcicfMAB6KMssYyXU3wML0sWZd9Nhe WbLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=hBjhlIup; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az9-v6si2591868plb.454.2018.07.03.23.27.05; Tue, 03 Jul 2018 23:27:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=hBjhlIup; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932835AbeGDGZI (ORCPT + 99 others); Wed, 4 Jul 2018 02:25:08 -0400 Received: from mail-pu1apc01on0129.outbound.protection.outlook.com ([104.47.126.129]:22688 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752990AbeGDGZG (ORCPT ); Wed, 4 Jul 2018 02:25:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KE8TTgFLrH6k+u8YVHi5h2YX8HPQvCh3/J/NZtADVFA=; b=hBjhlIupqHcgKBJ+adeKZfuKc0fN5ux23bmYX0BZRyGr7roOTTZKy0nYuj/rkX80K1fglm82+irX5XlI0FTaqpeW1TzhVhSZFv5/KPX9iqYwflPn8kaw/lY7+GZhKOD1/J4Qj9+9n8TtZNtUx2jjtjD2tn8fND/SOjnx/IMXhtA= Received: from KU1P153MB0150.APCP153.PROD.OUTLOOK.COM (10.170.172.151) by KU1P153MB0120.APCP153.PROD.OUTLOOK.COM (10.170.172.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.7; Wed, 4 Jul 2018 06:24:58 +0000 Received: from KU1P153MB0150.APCP153.PROD.OUTLOOK.COM ([fe80::3117:172e:121:d0e]) by KU1P153MB0150.APCP153.PROD.OUTLOOK.COM ([fe80::3117:172e:121:d0e%5]) with mapi id 15.20.0952.005; Wed, 4 Jul 2018 06:24:58 +0000 From: Tianyu Lan To: Sean Christopherson , Tianyu Lan CC: "pbonzini@redhat.com" , "rkrcmar@redhat.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Michael Kelley (EOSG)" , KY Srinivasan , "vkuznets@redhat.com" Subject: Re: [PATCH 3/4] KVM/VMX: Add identical ept table pointer check Thread-Topic: [PATCH 3/4] KVM/VMX: Add identical ept table pointer check Thread-Index: AQHUEg9paY7djkcpC0ykdZ+fV8ZzGaR8MHAAgAJq3IA= Date: Wed, 4 Jul 2018 06:24:57 +0000 Message-ID: <0551a777-880a-5019-6e9e-6c0fb5816525@microsoft.com> References: <20180702141653.88936-1-Tianyu.Lan@microsoft.com> <20180702141653.88936-4-Tianyu.Lan@microsoft.com> <20180702172950.GA27827@linux.intel.com> In-Reply-To: <20180702172950.GA27827@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tianyu.Lan@microsoft.com; x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KU1P153MB0120;7:yZEMKh4of/MtS5kUr3et4FKMHkz4qa4TkOM74UHu3y6CRxkOs4/CNuIFa6l9aC2GSAhQPDNAGEPZwyewLElKpymldQ1uEqzp0F+oF+Jz5CK0QG3FpVO3va5pwAadOagKdqHG224ZB0zdjJnmDCNv5mCFRiUuMptcRyaAlsgP1d8Ihbf8PTsbWB66E9Yw6U6blEn9W+q/3HVzmC+4EnTwfo+NPzJdfyD+pbEur4n8we1NqElJUl4L6qCHbnpmmnRB x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: c9202e0c-6dae-4f41-87cc-08d5e176dd70 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600053)(711020)(48565401081)(2017052603328)(7193020);SRVR:KU1P153MB0120; x-ms-traffictypediagnostic: KU1P153MB0120: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:KU1P153MB0120;BCL:0;PCL:0;RULEID:;SRVR:KU1P153MB0120; x-forefront-prvs: 0723A02764 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(346002)(396003)(376002)(39860400002)(199004)(189003)(97736004)(22452003)(486006)(110136005)(6246003)(2900100001)(53546011)(446003)(53936002)(476003)(305945005)(6512007)(6486002)(14444005)(36756003)(2906002)(86362001)(1511001)(7416002)(5660300001)(86612001)(256004)(7736002)(316002)(11346002)(6436002)(54906003)(31696002)(66066001)(6506007)(99286004)(105586002)(8676002)(81156014)(81166006)(31686004)(2616005)(229853002)(25786009)(3846002)(26005)(14454004)(10090500001)(186003)(68736007)(6116002)(102836004)(10290500003)(72206003)(5250100002)(76176011)(4326008)(8936002)(106356001)(478600001);DIR:OUT;SFP:1102;SCL:1;SRVR:KU1P153MB0120;H:KU1P153MB0150.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: w3g2g0vzUn5iVTrrFMZZn9wpnJ0IFskO2QAhiRXEhjmoVb1OLMC3oXBwHmYIP74HM8JkFRqN0v6Te3uTfhHKPJ9N4G+cwXpLXGwr3Y+jCClH+0oyFCioVsatXtZOz8SG5eA2P+WKrr1KomiY+M7Ck1oejs8Mpooz+TDx/SxFG+GNgpIbDIGNrOkZlMeJpjMA598FtwXsEj/conoW+rMr9GfwM9B+DIpb3C35DQ+1H399S9gl7ZjyeReW2Gb0HJWfd5BPRMxVOLa7+jObSuTP4i8YpFQqeQFRv1g+u8WEykCr1FwWH3w8mYGiELHo6OzHtQxDv2J8BXK4JdiaohJ/SpWMREA/zBmAfeUZlnM7hNQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <550A78C9D826A8438502E42CFE31501F@APCP153.PROD.OUTLOOK.COM> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9202e0c-6dae-4f41-87cc-08d5e176dd70 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2018 06:24:57.5010 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KU1P153MB0120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgU2VhbjoNCglUaGFuayBmb3IgeW91ciByZXZpZXcuDQoNCg0KT24gNy8zLzIwMTggMToyOSBB TSwgU2VhbiBDaHJpc3RvcGhlcnNvbiB3cm90ZToNCj4gT24gTW9uLCBKdWwgMDIsIDIwMTggYXQg MDI6MTc6MjlQTSArMDAwMCwgVGlhbnl1IExhbiB3cm90ZToNCj4+IFRoaXMgcGF0Y2ggaXMgdG8g Y2hlY2sgZXB0IHRhYmxlIHBvaW50ZXIgb2YgZWFjaCBjcHVzIHdoZW4gc2V0IGVwdA0KPj4gdGFi bGVzIGFuZCBzdG9yZSBpZGVudGljYWwgZXB0IHRhYmxlIHBvaW50ZXIgaWYgYWxsIGVwdCB0YWJs ZSBwb2ludGVycw0KPj4gb2Ygc2luZ2xlIFZNIGFyZSBzYW1lLiBUaGlzIGlzIGZvciBzdXBwb3J0 IG9mIHBhcmEtdmlydCBlcHQgZmx1c2gNCj4+IGh5cGVyY2FsbC4NCj4+DQo+PiBTaWduZWQtb2Zm LWJ5OiBMYW4gVGlhbnl1IDxUaWFueXUuTGFuQG1pY3Jvc29mdC5jb20+DQo+PiAtLS0NCj4+ICAg YXJjaC94ODYva3ZtL3ZteC5jIHwgMzEgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKw0K Pj4gICAxIGZpbGUgY2hhbmdlZCwgMzEgaW5zZXJ0aW9ucygrKQ0KPj4NCj4+IGRpZmYgLS1naXQg YS9hcmNoL3g4Ni9rdm0vdm14LmMgYi9hcmNoL3g4Ni9rdm0vdm14LmMNCj4+IGluZGV4IDE2ODlm NDMzZjNhMC4uMGIxZTRlOWZlZjJiIDEwMDY0NA0KPj4gLS0tIGEvYXJjaC94ODYva3ZtL3ZteC5j DQo+PiArKysgYi9hcmNoL3g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