Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3489519img; Mon, 25 Mar 2019 11:18:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQXpuWnyW9kPFdCNeEwslW1yz7y68Ok3PwyGp+l3URpA+xpRjgGTvD/qsl07V1f0t3lltF X-Received: by 2002:a63:5366:: with SMTP id t38mr17031166pgl.425.1553537921507; Mon, 25 Mar 2019 11:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553537921; cv=none; d=google.com; s=arc-20160816; b=BIo7B/vOiiqf5QD6AyvhnkUHoECppMVbG/3csvhx/dcL/uYFXISL/A5wIq1a0r/cCy D0htd+XVkWeVWcN6Nuzgu6Jj0GBcU0JliOHMA2HGw70/ZLQFKwJs195kRkASO79mRYaw ucRDUk9OccfZECBseLi3NRg4ru7ZXZqJrL4CQLB26tR01aA1GTensAlF204FU1vMLiGI h7WMl+ZopLPl1tQkNAskMdHqdR+6HD+Ex2t8ACXm/ptjYP+YShBGUvdHt8wSPT5ibVuH FaG/suwRQBB8fFJOOB2+yF4922qI1EjVyvNeer386xMamS247m0yVvgDAijGHI7ppLrs OWvg== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ScieUZp3/VJMtquacViPIA0KcLZUdNkVsd+PTffSEnk=; b=SFT8NnzbN1bxAlGAQeW5z78r2Z1QxqgcvdJerlIVVFDtA5cevP9hnHSY6X1PQl72Zp vFS0U2HrWGZPCWO05PcvYUkbbL0JCCsPfy4PHSp3mzNgo8YDqDZgJVR6Wga0FSTtaFAy lAR5b2knJqOLxzaTFzsXU7e49iVI313pfOaQxv1pnHKicOAFM3qL7udZtIf+G9oOpyMb KgDK0sr4+Up47TqHjY8PQYADLzZdlX2ds9km3drEdePHWwhDRFiXv0jd0skkCJeKteWc sP3cCjUhGdjqLV0pMR5lGg0awOVUlqJ9khJFB42hOa9Qnd6BokAMDQcX1XSg/sqkTPMG mEfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b="Xrt/uQVb"; 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 j17si14535142pfn.210.2019.03.25.11.18.26; Mon, 25 Mar 2019 11:18:41 -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-amd-com header.b="Xrt/uQVb"; 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 S1729925AbfCYSRa (ORCPT + 99 others); Mon, 25 Mar 2019 14:17:30 -0400 Received: from mail-eopbgr800089.outbound.protection.outlook.com ([40.107.80.89]:37081 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726217AbfCYSR3 (ORCPT ); Mon, 25 Mar 2019 14:17:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ScieUZp3/VJMtquacViPIA0KcLZUdNkVsd+PTffSEnk=; b=Xrt/uQVbtVK61ScKEbaLfR0sCpfJWBtFAZgqX2PncVyBnyNfzf+LUxIlyfxhvBsDDM3GPKTwLAS2Q/ZHWuoy2CACbkFVLFZikWwzGb3DtH5bQaPKB9d24UO7T/MGHIwvWvRyQ3jHWkbgosKJmaTDeRxEiyUXvThk833ILxVs8OE= Received: from DM6PR12MB2682.namprd12.prod.outlook.com (20.176.116.31) by DM6SPR01MB0022.namprd12.prod.outlook.com (20.176.117.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.15; Mon, 25 Mar 2019 18:17:26 +0000 Received: from DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::4dd7:e79:1607:b755]) by DM6PR12MB2682.namprd12.prod.outlook.com ([fe80::4dd7:e79:1607:b755%5]) with mapi id 15.20.1730.019; Mon, 25 Mar 2019 18:17:26 +0000 From: "Singh, Brijesh" To: Borislav Petkov , "Lendacky, Thomas" CC: "Singh, Brijesh" , lijiang , "linux-kernel@vger.kernel.org" , "kexec@lists.infradead.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "x86@kernel.org" , "hpa@zytor.com" , "akpm@linux-foundation.org" , "dyoung@redhat.com" , "bhe@redhat.com" Subject: Re: [PATCH 1/3] kexec: Do not map the kexec area as decrypted when SEV is active Thread-Topic: [PATCH 1/3] kexec: Do not map the kexec area as decrypted when SEV is active Thread-Index: AQHU2xpoydGH9EgTSE63Me6gexO1K6Ya7nQAgAC3uICAAE4dAIAAst0AgAAEIYCAAAyAgA== Date: Mon, 25 Mar 2019 18:17:26 +0000 Message-ID: <11013ad2-2eab-5a7a-d4e2-a9da4920cfab@amd.com> References: <20190315103203.13128-1-lijiang@redhat.com> <20190315103203.13128-2-lijiang@redhat.com> <20190324150034.GH23289@zn.tnic> <7b115829-40d9-e55e-dee3-ec8e4766971f@redhat.com> <20190325063742.GA12016@zn.tnic> <652b9166-f06e-c210-3c3f-c9e80a97db18@amd.com> <20190325173239.GO12016@zn.tnic> In-Reply-To: <20190325173239.GO12016@zn.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN1PR12CA0093.namprd12.prod.outlook.com (2603:10b6:802:21::28) To DM6PR12MB2682.namprd12.prod.outlook.com (2603:10b6:5:4a::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6077c56c-f258-4766-f98d-08d6b14e2247 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DM6SPR01MB0022; x-ms-traffictypediagnostic: DM6SPR01MB0022: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0987ACA2E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(376002)(346002)(396003)(366004)(39860400002)(76094002)(199004)(189003)(6246003)(316002)(97736004)(305945005)(31686004)(256004)(6512007)(6306002)(6436002)(53936002)(5660300002)(54906003)(26005)(186003)(110136005)(31696002)(7416002)(966005)(2906002)(478600001)(25786009)(71200400001)(86362001)(8936002)(99286004)(52116002)(53546011)(6506007)(76176011)(4326008)(386003)(71190400001)(102836004)(229853002)(14454004)(6486002)(446003)(6116002)(8676002)(81156014)(81166006)(3846002)(6636002)(476003)(105586002)(486006)(106356001)(36756003)(68736007)(66066001)(2616005)(11346002)(7736002)(93886005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6SPR01MB0022;H:DM6PR12MB2682.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: IFYOp67AwqJvdlvnEfUifcQO4KEov8DzvYRTMRBtkzgz0MEqdsfpSkgN9DLk5y5/vLn4LOGgngdqCTDOrIzBXXjyHJ9igwai4yjOZX/u4DgNzqwpkCAcWiIiuDHs/c/+QeCkga9NT6JS+co2v/eIoJ1WcYErSWYVpYnlD+xKEn5ARK/+VDnVS2ME682h0eGi8A+YbPu0GXjipPkmr6fRxbJrXjZ+JJ1ViWfyF7WvTxIiAnGrF5DBjfJhI9EJ1Uwuu/Q0obrkh7WXS5BkNTrLNLhEPiVzxVNWfHdht3upbP/2AnyX1kyPb4WYn4ct29wvYgoLXgzx03MRMF9Z54haGLiMqPcmx/Sa3N1icSR7EBO5V00dn6fpKXq8CqqbGoGjjmsgxbKSSH5A+gPcTL8XEDfomp4wmEb7XQegt6HbYeM= Content-Type: text/plain; charset="utf-8" Content-ID: <988B63AB973B2941AB10948A11D11527@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6077c56c-f258-4766-f98d-08d6b14e2247 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2019 18:17:26.4314 (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-Transport-CrossTenantHeadersStamped: DM6SPR01MB0022 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDMvMjUvMTkgMTI6MzIgUE0sIEJvcmlzbGF2IFBldGtvdiB3cm90ZToNCj4gT24gTW9u LCBNYXIgMjUsIDIwMTkgYXQgMDU6MTc6NTVQTSArMDAwMCwgU2luZ2gsIEJyaWplc2ggd3JvdGU6 DQo+PiBCeSBkZWZhdWx0IGFsbCB0aGUgbWVtb3J5IHJlZ2lvbnMgYXJlIG1hcHBlZCBlbmNyeXB0 ZWQuIFRoZQ0KPj4gc2V0X21lbW9y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