Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3568940img; Mon, 25 Mar 2019 13:00:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqypHq/1AG2Ge1RCntt2kZ7LtJE+PhWzNOqIE4h+AKeticSb6VJp4ZQSjYsG/17c6iDUB+zF X-Received: by 2002:a63:c10b:: with SMTP id w11mr25369006pgf.39.1553544024797; Mon, 25 Mar 2019 13:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553544024; cv=none; d=google.com; s=arc-20160816; b=f/qqH1jehI6Pupz/0h8DWnt3hCFtLXJVXlq8aU3xT0jh6msCH5XvoncfHQyMwQGaMv eeMljP9TyL/igLasVTnYUXDKFZxHXYH8NeJ1YG2h7EnFDiQ6aJyw3ktve/Krb6m1/8MV /o36n2byWmaSawRzukBgsM66NnhrqPw0ToYdfZKxXuHZEbC3+s5WwzFzlum20W8z+8Er IHEo7vjurPB8BlICeTs4loLkl3finVjrhJd+6HN0i1J+I6ZKqdgAuljrv5pVnyBz0TJj K9+0IQGsu5R1/CATLD4YY49m5B0NygpoVKSQNvhKPO+g7whDqi2PFVsovmmT5DaSFmII L0Ug== 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=v2f7+vCtCGYZqKD7q19c7Y2xs8uqe0AOMB/PY1TTG2U=; b=ZfYtoHQS5Vk/BpXUHBQsgR3jiDea/pYQdz+Le9zwUG8vKWjFLMVx8HeDS9VwIDGEQV 4rDtCLMnMZa5/uzOREQdHUradNHLc8G6CaASIpjo0Sxj8JX+riptCdnHk9sLiLxyF67z VmSFvyYhoK++5tpTepNeXnZMiYbY722XcMXtbXUy+m2MD7ySa1QWiK8VzruaQp46HKpF LW5Zxvo+H1dsAwfN4IaPI0IBwPwznzUj36NLaiQaKD7QNEbmaFqN+2kUrJ4iqMmXx6UL Rw9yyIBcIocu0gyMFsswsep1JHqLQk0AxqFrKiEdYSj+RbMuhMqc5zLe5MCxAeCdaHHw 8kAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=5ZxlS0Q0; 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 v16si14946374plo.33.2019.03.25.13.00.10; Mon, 25 Mar 2019 13:00:24 -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=5ZxlS0Q0; 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 S1730076AbfCYT7d (ORCPT + 99 others); Mon, 25 Mar 2019 15:59:33 -0400 Received: from mail-eopbgr680046.outbound.protection.outlook.com ([40.107.68.46]:54579 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728912AbfCYT7c (ORCPT ); Mon, 25 Mar 2019 15:59:32 -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=v2f7+vCtCGYZqKD7q19c7Y2xs8uqe0AOMB/PY1TTG2U=; b=5ZxlS0Q0FpnR6vHtBM+l4eWQlKBJ2yn+Z1qVNXcaAYeeBEojD9GQ6NNttsvebeoEoa+79m4oRqaqDAouJ9BQHLtQTon3lZIJQksmTG9a9afjBBvFCIosXGvjjdHFBtWpZKj/+CvzOMVpMcc54ACgQDBApBrwFNGpjl+x+qvZJHc= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2810.namprd12.prod.outlook.com (20.176.117.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Mon, 25 Mar 2019 19:59:29 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::a8aa:c9af:1f69:2a89]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::a8aa:c9af:1f69:2a89%6]) with mapi id 15.20.1730.019; Mon, 25 Mar 2019 19:59:28 +0000 From: "Lendacky, Thomas" To: "Singh, Brijesh" , Borislav Petkov CC: 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: AQHU2xpoSs3WgtcWjUWUiL4VzQYPkqYa7nQAgAC3uICAAE4dAIAAsuCAgAAEHoCAAAyDAIAAHIAA Date: Mon, 25 Mar 2019 19:59:28 +0000 Message-ID: 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> <11013ad2-2eab-5a7a-d4e2-a9da4920cfab@amd.com> In-Reply-To: <11013ad2-2eab-5a7a-d4e2-a9da4920cfab@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN1PR12CA0081.namprd12.prod.outlook.com (52.132.192.144) To DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0811f786-53fe-485c-ec2b-08d6b15c6393 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:DM6PR12MB2810; x-ms-traffictypediagnostic: DM6PR12MB2810: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0987ACA2E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(136003)(396003)(366004)(189003)(76094002)(199004)(6506007)(386003)(105586002)(106356001)(53546011)(68736007)(99286004)(66066001)(26005)(6346003)(102836004)(81156014)(81166006)(476003)(2616005)(186003)(446003)(8676002)(71200400001)(52116002)(6116002)(71190400001)(25786009)(3846002)(4326008)(478600001)(11346002)(76176011)(256004)(72206003)(5660300002)(14444005)(86362001)(31696002)(14454004)(966005)(7736002)(53936002)(7416002)(93886005)(110136005)(305945005)(54906003)(316002)(36756003)(8936002)(6246003)(6486002)(6512007)(6306002)(229853002)(97736004)(6436002)(2906002)(31686004)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2810;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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: roWa4bTy1ScsHc0TAEDMGeZHnRtW4yC+TY70W5lbuV26PGjsnwTu5TYhM0eHoMkcMJEVVWVw+gh2c44DOSUpSxjIaLcNLdkqwsu5rwzAtfdECRItPZtxSeiOVm5949Mkcioqr06GwDp9Gq4oFGf7Dmp4MZ1lbsnvEAKrEV0I6trvjT3NxJh9t5J+4qMSH0PLqdwImZzGkxO+W1Eadu+wLpEoXx9j6CiQi1za5WQyY6ZGOioDwdLrU6C8YZ7r2ld2zohAVS9vBA94gOP8Mjjy2LJE/LbMybg1Y5hh84sbrjGzKxQIP/h4BmZlfWV9TfCZbr2tJDG6XqDcwSKrwlSOiRhMcsyPLuqPc2iI824NM5LVv6aCYcFecWhpDZ6AkQ+etll4RAxqNuMx07e/rXvr3LpUByYfrEhBuFUHHUrcs+Q= Content-Type: text/plain; charset="utf-8" Content-ID: <55B1418933BAD443B6014793C219213B@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0811f786-53fe-485c-ec2b-08d6b15c6393 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2019 19:59:28.8742 (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: DM6PR12MB2810 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMy8yNS8xOSAxOjE3IFBNLCBTaW5naCwgQnJpamVzaCB3cm90ZToNCj4gDQo+IA0KPiBPbiAz LzI1LzE5IDEyOjMyIFBNLCBCb3Jpc2xhdiBQZXRrb3Ygd3JvdGU6DQo+PiBPbiBNb24sIE1hciAy NSwgMjAxOSBhdCAwNToxNzo1NVBNICswMDAwLCBTaW5naCwgQnJpamVzaCB3cm90ZToNCj4+P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