Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1008389ybi; Wed, 19 Jun 2019 11:42:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOHhN2PCEpynOTilVrYG+L8oi6pq3tSEBaDby6NTluCkAHtVVc7m+7l7Zafc8EsNfGd73J X-Received: by 2002:aa7:9ab5:: with SMTP id x21mr29943794pfi.139.1560969757112; Wed, 19 Jun 2019 11:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560969757; cv=none; d=google.com; s=arc-20160816; b=iR/HrndnLJkdzz+WtCJe/b0PvoAytc4L38uaDuafRjV/7enM/IdnaKG80FFe2/SYDJ NZsm7MrhR2I9s9/I5CEMj5vtOqX8NzTrsfYfAhyRN2Z0CD3g3T3Gl7k++Fr4RTVfkRao OomEPrQUzdTgXXstfoX0ajsebnXFD9OuDF31x7znozk/cUNOul3J+qqFRBZx4L1+XcXo AOdEfexaYzOU2a1YzzrJUNEFLzvLhBC3Qhp3OrlQHaC3DmvP7KFofv9Q+sYyGOVR6TRn hLhf/GEEE11pjmtMcKYAEaHg4XqNN7elfv6VAlWo/LfphBM/5SzU5BlfBFROg1nUl0uE NHww== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=brOq88wRe9/B8N8MgVQvMhUdBKE/310vcjZI5iMKWvg=; b=tstImMu3Vht3HmSMeNQdsubJSg/53pvHgAUt60s98TbN4GPgHV7JofW9EWiqu+O2mN P+JfLR0cU6lFJJONnUdcM1j7rrcdjoqnDZaiIqlehLQ09WUVn9G4jdrCuj3sErwRbc4f NaW6rkpJJE3+p3/J2w9RmztyAUavZJIzuu8Ifr5e6eZET1sR6FqUojDjKC3k4f7UZwPY clX3dXbQSUqeUZ7iuUczQOuiLTXeY9gCgY4imxllGyER8URvX1MYJyZZllgb4vsHryS/ wwNMWCKqdvT0od/B/fElyZB2eZxnenrQRFJ+Du6G4K05b/WSYSvAMvm1WbpVeePToc6i Gumg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=Qic8k++m; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si3566221pgp.330.2019.06.19.11.42.21; Wed, 19 Jun 2019 11:42:37 -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=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=Qic8k++m; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730314AbfFSSlk (ORCPT + 99 others); Wed, 19 Jun 2019 14:41:40 -0400 Received: from mail-eopbgr800078.outbound.protection.outlook.com ([40.107.80.78]:44149 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726109AbfFSSlk (ORCPT ); Wed, 19 Jun 2019 14:41:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=brOq88wRe9/B8N8MgVQvMhUdBKE/310vcjZI5iMKWvg=; b=Qic8k++mzLaeSp19dxg0Ygz5kAf655oOCTLDpa7cg9uKnoh6+c5azvpwu2iQfrFs3P4Zf3u3OEtiuFre85fJ1OTO7g/jybXvY2uIy3cIg+GkL07u6DvrQ0WzjbNoRj6VjtA3MGJuE6foLhZolpfqDclAvJTf3BNSi4busu3nKxc= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3274.namprd12.prod.outlook.com (20.179.106.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Wed, 19 Jun 2019 18:40:58 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::bcaf:86d4:677f:9555]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::bcaf:86d4:677f:9555%6]) with mapi id 15.20.1987.014; Wed, 19 Jun 2019 18:40:58 +0000 From: "Lendacky, Thomas" To: "linux-kernel@vger.kernel.org" , "x86@kernel.org" CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Lianbo Jiang , Baoquan He Subject: [PATCH v3 1/2] x86/mm: Identify the end of the kernel area to be reserved Thread-Topic: [PATCH v3 1/2] x86/mm: Identify the end of the kernel area to be reserved Thread-Index: AQHVJs6IFoBxSDUkSE2s22ASPkl26Q== Date: Wed, 19 Jun 2019 18:40:57 +0000 Message-ID: <7db7da45b435f8477f25e66f292631ff766a844c.1560969363.git.thomas.lendacky@amd.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: DM5PR16CA0039.namprd16.prod.outlook.com (2603:10b6:4:15::25) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 42cf5072-a613-4912-7f22-08d6f4e5aa91 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3274; x-ms-traffictypediagnostic: DM6PR12MB3274: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0073BFEF03 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(136003)(366004)(346002)(376002)(39860400002)(189003)(199004)(66556008)(118296001)(2906002)(53936002)(99286004)(3846002)(52116002)(6116002)(386003)(6506007)(2501003)(68736007)(66946007)(76176011)(73956011)(66476007)(64756008)(81156014)(478600001)(8676002)(81166006)(72206003)(8936002)(86362001)(50226002)(66066001)(25786009)(4326008)(14454004)(6486002)(66446008)(6436002)(7736002)(36756003)(305945005)(102836004)(5660300002)(6512007)(256004)(476003)(486006)(2616005)(11346002)(54906003)(110136005)(316002)(186003)(71190400001)(71200400001)(446003)(26005)(7416002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3274;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: mbheTclXD4BvkEW3oddNcq7ST5HhzBcy7uadzq0wTauKNoRWrNnPg1lFm4XH2px1pGdLiGypHLJ5VSJ1zx5TfplA9HaqZXyI+mjVlezNM8hCbXRv8WPPGzkKD1aHoOCUJHq7GKmcs9iuH1VVzGMfyUnSYBvCrR868xOVucEfFL10ZGzZA35jVLfkU8HUqi3N4sd5Kw5Fym4GodMkopw+13saqDFh5A1pZEBYEJ+PjAzq12n9kA3jRy/tw+RFjGKYBMfb8mGhLQ3IuThNT9sf8hjb6BGS0f54xgIsS8ISqQ0frsQAxrRNCAf/ktIBtqBfk8jy/YeOpXjBBl5DODN7Wcp6cQCaQOZoN1RHahuV1BYoQ4due0xtqy0PsgucykJNV/7RitTcX98uiGoTKJsdJwjNdEQYbNQ+WHmDw7NgQMs= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42cf5072-a613-4912-7f22-08d6f4e5aa91 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2019 18:40:57.6857 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tlendack@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3274 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIG1lbW9yeSBvY2N1cGllZCBieSB0aGUga2VybmVsIGlzIHJlc2VydmVkIHVzaW5nIG1lbWJs b2NrX3Jlc2VydmUoKQ0KaW4gc2V0dXBfYXJjaCgpLiBDdXJyZW50bHksIHRoZSBhcmVhIGlzIGZy b20gc3ltYm9scyBfdGV4dCB0byBfX2Jzc19zdG9wLg0KRXZlcnl0aGluZyBhZnRlciBfX2Jzc19z dG9wIG11c3QgYmUgc3BlY2lmaWNhbGx5IHJlc2VydmVkIG90aGVyd2lzZSBpdA0KaXMgZGlzY2Fy ZGVkLiBUaGlzIGlzIG5vdCBjbGVhcmx5IGRvY3VtZW50ZWQuDQoNCkFkZCBhIG5ldyBzeW1ib2ws IF9fZW5kX29mX2tlcm5lbF9yZXNlcnZlLCB0aGF0IG1vcmUgcmVhZGlseSBpZGVudGlmaWVzDQp3 aGF0IGlzIHJlc2VydmVkLCBhbG9uZyB3aXRoIGNvbW1lbnRzIHRoYXQga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