Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1403864ybi; Fri, 14 Jun 2019 14:16:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk0s+eE0pvF8e4S9ow88XsWw+XqNAvsuTPH+MdA3SuH4de9xYe7QXTIu1pcc95C6VkVsTX X-Received: by 2002:a63:a41:: with SMTP id z1mr36897048pgk.389.1560546961442; Fri, 14 Jun 2019 14:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560546961; cv=none; d=google.com; s=arc-20160816; b=xO4HbZBeVu8wyvSL+bitIboTvNc1t33tt1yGRPhlYh1gsgT7EwNy5UVLApOk63pW4d NaCCjleWe1BF+InKQ81rZ1gjBjUkPDNJ4W4yUOO3nYqiKFaOGA8ETwvNHJSauCxHwWKI xLW/3uraXntJb5sNgNBTgiMrsTq6uktqSSYbgeGHBes9ac6NZngRF/uOCMFGCcYo9NWC hiD0Al+hMYA+Lw18NzRB3rLikP91s7xzwfWX3uSJdCcH9jJQ+KnrSC4o5UXF32vYdIPf v4EMEIRiGTpJOzrS1o+SQFGHiF99ZB1HuEFoP/yPXJE3blHyIwQMYhuiNkaHJyh2Dsiu MWkw== 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=zJd/Dfvok+t7dvOCfPUnaAJQbonbZEog2iDOiETz3us=; b=fM96oSFwUDZFG9yVRKUmPJnlSKN3inXCmWksjxVIpOAdC0FmmCnjGQJgALpIxbvQc3 YvkZcY1oEioOTCE9YbeLWslrw3yZOrhYh7i7mpzuNR/E2zt5VaHuY0RXodVuiH/y36pe zh8CLWVbNJvlhuguyH9s+n9xIpxHa2jaC/CaUL9qEynvzIVx0JhfUA07a0yVA4dyARF7 PB899gxhhNVj/Pwfa0YhBdjhPic2BkK7sMRY5oQzFTBO0CHNYTXS+dg6t11YloZsV7Jd Q2prZ9p/wvxBGv1PLbuzfhuHJoVleIQX/+aOJxVlQmu6y6VxQvvp0fkzBTNMG4SgmupI O8hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=pY6A1hP9; 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 n34si2735770pld.202.2019.06.14.14.15.46; Fri, 14 Jun 2019 14:16:01 -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=pY6A1hP9; 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 S1726755AbfFNVPX (ORCPT + 99 others); Fri, 14 Jun 2019 17:15:23 -0400 Received: from mail-eopbgr720043.outbound.protection.outlook.com ([40.107.72.43]:64064 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726638AbfFNVPW (ORCPT ); Fri, 14 Jun 2019 17:15:22 -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=zJd/Dfvok+t7dvOCfPUnaAJQbonbZEog2iDOiETz3us=; b=pY6A1hP9EjYwG3wrinm9I640nSCKUGM2xWSPagn0389nRG8NaCTKCeznypowxTZcX7jhkNfCPUZbKLGATufXCLcXDxCe1H/zLUN3Vm4IyfqWhhTgTZE5Vv+WgzJu+haNWXk8AwnROHC/jOK4UUTsZdszHFzVYuhvDtQm5mJtxkk= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3724.namprd12.prod.outlook.com (10.255.172.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.12; Fri, 14 Jun 2019 21:15:18 +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.012; Fri, 14 Jun 2019 21:15:18 +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 , Baoquan He , Lianbo Jiang Subject: [PATCH v2 1/2] x86/mm: Identify the end of the kernel area to be reserved Thread-Topic: [PATCH v2 1/2] x86/mm: Identify the end of the kernel area to be reserved Thread-Index: AQHVIvZEz1ndLb3IT0abs+80RMkH5w== Date: Fri, 14 Jun 2019 21:15:18 +0000 Message-ID: <284d3650e2dae50d5645310a8b49664398fe5223.1560546537.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: SN6PR16CA0054.namprd16.prod.outlook.com (2603:10b6:805:ca::31) 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: 9da8c45c-cfe1-445b-8e6b-08d6f10d66e8 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:DM6PR12MB3724; x-ms-traffictypediagnostic: DM6PR12MB3724: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0068C7E410 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(346002)(39860400002)(136003)(396003)(189003)(199004)(446003)(66446008)(54906003)(71190400001)(71200400001)(110136005)(76176011)(3846002)(2906002)(7736002)(66946007)(53936002)(305945005)(52116002)(6116002)(66556008)(66476007)(73956011)(25786009)(256004)(36756003)(64756008)(102836004)(8676002)(81156014)(316002)(66066001)(6506007)(386003)(2616005)(186003)(6512007)(26005)(2501003)(81166006)(99286004)(6486002)(8936002)(486006)(476003)(68736007)(14454004)(86362001)(72206003)(478600001)(11346002)(5660300002)(7416002)(118296001)(50226002)(4326008)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3724;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: 9V6ngpirUQ/xYB1uFUWQaWLbkr63gjbo4u/T7BNlBj0s0DbZD26iQN0345TX8yYBHFqnZ/9+rD0qz5b+6frwzdPFW3CewK/4GsZHE5itxscwiEDumjdaIvFiMfyoOI9+B59lhekyC206gqGkm07C7Xgizg+QC6g0+GemUjn4opT5FsNq0JL0c5Ds5btNICRPwzoJxvwJFCKV+q244iBWWBBu04UhCF0HGVgainvwFyW41/ME9o+ok4ToufquaTlA8q5RRBuz2oMCjmMNI5IvO8KnnptS/l38DVyvsQkoCN2tACtMezXNB8K+UXdPh1WK5mGS6ltKr5+Z86+NlioW7rnxZWQVCrBRClqU8eG/SrqAX5/t8CNh2hm27aeMZOsO98NlLiUBkGY84Vzs6Haehl8Bbzv0EDp5AF5b23fFuuU= 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: 9da8c45c-cfe1-445b-8e6b-08d6f10d66e8 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2019 21:15:18.5877 (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: DM6PR12MB3724 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 aGF0IGlzIHJlc2VydmVkLCBhbG9uZyB3aXRoIGNvbW1lbnRzIHRo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