Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp78383imm; Tue, 3 Jul 2018 14:18:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcpL8/GgmjhaIPa0xLfPSoKD0jAlUTOAROTdESMnDO2EZ0PQkCFWXEKgCqJwtnHi6CdwQoF X-Received: by 2002:a62:d34a:: with SMTP id q71-v6mr25959539pfg.17.1530652689908; Tue, 03 Jul 2018 14:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530652689; cv=none; d=google.com; s=arc-20160816; b=PUTmupArdXnvyPTjs8+RnpXnnVTr7aVpT3AGRzQ87s15Xck/b8JLp+yc5O5NrJC8Sp Xk15hRBW+ztVe2sOTZOERafUa+FNxj2RspLu7pCWUHuiv83BCvQaoV0Y9Mrs/LZMnDjj 2vmW8m57MDNS8BELmNbJ0qAwWaV14qV22unMf4/C0tDFFXIreUGO7HpCYV3kwXWZSvcg KwhAW0dSHOV7Iuzt40f5tlLndpWr3Do6R9tbnHNkcimqHRit7sxnaFIgHmC0fM23S6Ti 2juysbg7X1S8l7jj8vD4q6tKj5g3XkDEQiOLMWWUyJ1p1FoCD9fgCRyuj+XjVCCNxJy+ 2cmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc:dkim-signature:arc-authentication-results; bh=Lu4UsMZ9GBbaN4WW2EntV76gbOcqthxk8BjEbeGYteI=; b=o9zq+4jf7hY65+CtVEnbFKkiAuuMkSNp9vnRnrih72jlRUgvDp8eFExZwDAc2oRTW4 521106ZcAAheI8Cabr3LIt3lRj+D/n+FlGGvYwh0+7EDq/tun2zehzey1TtC2txgeSj4 zfVcaJ/krzbwT8LwGuShkM2J99IIiybqgJq5GRPyUSOBzEF0JgxflRoS6DD75fP9dXpm xq7JaqzffRQQd/0zI1wzevvUxP/jECQBlBHdcIv6+Av9koRoUR7a95f+MEo9Dlaq+mDf KcvexBJ3ucEWPlKur6JmZ1ke/mD5jc6panYWo1QNE+/RjcOS3xQjkIBS4WKX0iXW18/R Mtdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=Hp84mzKZ; 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 x19-v6si1391223pgk.80.2018.07.03.14.17.55; Tue, 03 Jul 2018 14:18:09 -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=Hp84mzKZ; 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 S1753294AbeGCVRG (ORCPT + 99 others); Tue, 3 Jul 2018 17:17:06 -0400 Received: from mail-eopbgr710043.outbound.protection.outlook.com ([40.107.71.43]:35904 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753085AbeGCVRD (ORCPT ); Tue, 3 Jul 2018 17:17:03 -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=Lu4UsMZ9GBbaN4WW2EntV76gbOcqthxk8BjEbeGYteI=; b=Hp84mzKZV6avjQehRFE1w4EEaP9d1orCOWAflN0oC9y2QE/W5GYqng3acKAkusY8SwVnwwlhtvIDkLmrAp3bY3t9NB19uL1vqR5Ql7D0AoVNcI7HaeKuwATlhjy5l4HaI2Orcv1RiBS73ssbMbPz/5lJmyGm3wPIMtOul9wlvag= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from Brijeshs-MacBook-Pro.local (70.112.153.56) by SN1PR12MB2462.namprd12.prod.outlook.com (2603:10b6:802:29::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Tue, 3 Jul 2018 21:17:00 +0000 Cc: brijesh.singh@amd.com, the arch/x86 maintainers , linux-efi , Linux Kernel Mailing List , Tom Lendacky , Thomas Gleixner , KVM devel mailing list , Matt Fleming , Andy Lutomirski Subject: Re: [PATCH] x86/efi: Access EFI MMIO data as unencrypted when SEV is active To: Borislav Petkov , Ard Biesheuvel References: <1530624720-32004-1-git-send-email-brijesh.singh@amd.com> <20180703154418.GC4643@zn.tnic> From: Brijesh Singh Message-ID: Date: Tue, 3 Jul 2018 16:16:57 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180703154418.GC4643@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [70.112.153.56] X-ClientProxiedBy: SN6PR08CA0012.namprd08.prod.outlook.com (2603:10b6:805:66::25) To SN1PR12MB2462.namprd12.prod.outlook.com (2603:10b6:802:29::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e328f27e-ca8e-4e47-8f80-08d5e12a515c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB2462; X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2462;3:lGKU/Ph2i9KFESNM69goguXSgU39ROsIJBvhz7JeJOwuXnPUawGJj+UVuT7gcgUShyE3PEsMZ07DIslLCBt0N1tUfLcBg8Y4kT9WMBS8rzF7RxgqRNf8ujL/ILYbpgCZEVGfPQ4kwXC4I0QCfcRDI9YQBkePvDi64DGp6qYI2hpyMMrUuU+M8g1OmWfw4g9kYylZCURpCL0/6I/rMqGwaVgR1vZXwSC5Nl0P8oM0qDupQ33P6f1Ai/CYKBg5p5f8;25:1P530QUHZXaTC6x8D7/3U56zCpEypN48D2I6nO6z01s1SBPJx1/QZWTX6OO7IA+uPD+e6H7x6CZmjKIStiSq71MXw0P/fY0CYadpcizEYCp7DBjmNhUGJcCNPDzhOdfrc09VjsUu1bo9h8RTvLsVKs5KmFT9dh9J/GZV0fzw2x7TjcSbmhwpxND52AkzAUWKGvE7QuRSDrf+ixEj1JZyFPjbDR3qs9Wi3FfiURHeDHvXMfIpyJno5chNovhpSlb3qXn/3OZ79dybYNMq/irk6doD4uak8QY3XmuC+/Xm3IrvWWl4t1SqCSy2WsR7+CiIhxoipogQTw1ahsCxM5KX7A==;31:vMu1ud8G8xPNzxsuOYMVy5v7v5Y6GsoiImKqck5dta12T6Blg62dgib35KIQl+Ojnkav4Vk7jRYmGfcWOE1vC5eICepdVCkXMPDJVdr9e6qjCoKVVytfEqYaLANuU31ZY/r9oPYucoBzii8X7qj8hqKQ76fPW0DEKQsSd+VbvC8QkOdZErXOYYj7CfEB+xmQxKcwG87d8dgs8n1SLSPsAT8nqD6X4BOlBi0ZQDrLFYw= X-MS-TrafficTypeDiagnostic: SN1PR12MB2462: X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2462;20:IKAMBWKKKU3axNEJ2+LyOiYqXxuMZSPIRy+mAjgx6IPqyChDj8WfRM13bSzrRSg14PcH4oOXFx+tEDo8Mj8KfdENLD6ZpZ1SF5v7zRf9ovlVoN9oMh9vt/AExOB0OONsxEJgf3K2UCLmjxdtFpuNYsuYWu8VDcxJBgwlrSeclmcxncQ6tloimOz/Z8TM+HhM4VmkGJlXClt/fTjs7Kryf6Nctun13KUm7HaAG6MKcpZ8vAeGVR+vi/+7G46UO5h66CuvkMAet2OXsTQUezpQIFhEVNSB7OXJpib/2He6yxtc/lzb1ByLoh5S5DOYpVxXbTLssQOs9gDKNlzm05NriXbidDoJn313AjS9mVHndpM1GzZb6jiJ3cjNEmcvIo8ciFaQ0oPbY6AdUaL0YFZ9gS33rc+x3WjaaFl6l8Piu7n/8gpDhTdrOgg7aqK52YTqsseS6ibO9IYHkltdBQxxiCUb7vcFnh9UCQhNvhWiCWJ2y0a/7YkYdzKHFjsGJk72;4:WAUCeO94gZK4xxAEVD1KNukGxgqJqf5nNovozfcigsl+TqlV511axzVLSHUdJ+oxTgyuTiSbdivd0ktNKBFXJx+wdosU2TF4x7hCqSZIgIp/Vxby8UpPrxls4QlKmNuPQpDI1pPOH4b/AAeh2wfG2dfMArLi2pGiSjBQZP4VeNVqpWEOTbgEd+Iur9KHdFL+JDW6fYHBV2EI8pwyh0KOsonZFZIf/ABUek9YONxrxuMIvEO/PfmBvvsOT9yEMhgdlimdQZges6NfNvq08tD/o4NpWjBK70o2aar0ykumCjJsYqydVibVgc55Qy74Uq59 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:SN1PR12MB2462;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2462; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(366004)(136003)(346002)(396003)(39860400002)(199004)(189003)(36756003)(11346002)(2616005)(2870700001)(65956001)(65806001)(446003)(956004)(64126003)(4326008)(16526019)(2906002)(476003)(6666003)(44832011)(97736004)(186003)(478600001)(26005)(68736007)(5660300001)(6506007)(386003)(25786009)(7736002)(47776003)(66066001)(50466002)(53546011)(305945005)(76176011)(58126008)(2486003)(52146003)(23676004)(316002)(52116002)(65826007)(3846002)(86362001)(8676002)(31696002)(6486002)(110136005)(105586002)(6116002)(106356001)(81166006)(54906003)(81156014)(6246003)(53936002)(8936002)(31686004)(229853002)(14444005)(6512007)(486006)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2462;H:Brijeshs-MacBook-Pro.local;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-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIyNDYyOzIzOnkvYURuTEIrZzhsWmcxdkNURlB3dTdPMWNh?= =?utf-8?B?clJ2T3JKbmhQVHkrSm92L2hyNGd1MU9PbVUxNEJDVy9nMkY1OFFTbEVjTlc5?= =?utf-8?B?cm4wRXNZb1JHSFhVV25hVk1VUWZPaTA2WFpnYUVOS01RUm1EdTJEUzFlNDdp?= =?utf-8?B?WEdwMTRqU0gvMUNVcGZSRno2bFE1MDl1MmlIY28yNFNwUGhBV3RKMSt6S3BX?= =?utf-8?B?NldYMXRkL3hUeGpmNWJZVWdaa0FiaHBQalNsSmVLY29BUG1RYy9XZFVHS2hT?= =?utf-8?B?VTc0clZPMzFlVWtMUVNMUTF1S2tOdXVVaE9Od3JqNml2enkvcG5sd2xYOVNJ?= =?utf-8?B?RzVpcDVKK2xEajJOeWFzM0JCS2Y2eENwODBqN3ZLQUNWVFpVZy9QSWJ3cklH?= =?utf-8?B?MWQ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3bKVVKMWQMcyDjxm0pn2O9+4yP6aQAFIr5a0KDvGcGNxL+hoLf5RsYHrMtKmKf/YTNpCe9T6+5sHRFcrxtOvJqddbTUhW2cOngU9fnv28Q+rsGVsyNfS2T50XqwBOTCWvcmAPmfjCSfn/WKNU7CLG6Mli7+Lib;20:o6sqwa6B2/4JVvNRJR8K+aq1DBCF6Y6c+pWyPGZ2/9Ww8djSEwH14U7iUutX5f5i4Ec93kEJcn3XKMGaaYk23Mw17GJ7oWBzHwoIFhznHgTuAhv5GfpEdyeCsYTCfEuxUx0sVIe22yDlNVmsVv3yJ9O+BVdY4zLvpkO8Dfk3+BYVW+4NaI4Brc1nvAvPE86ifFqQ2ts6Eb67yL7N4ARw8JNW6lp2VB3zXj/r3EK495XI15jK5/cyWIcjo6KCzL1g X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 21:17:00.7876 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e328f27e-ca8e-4e47-8f80-08d5e12a515c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2462 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/3/18 10:44 AM, Borislav Petkov wrote: > (dropping stable@ as this is not how you send patches to stable). > > On Tue, Jul 03, 2018 at 05:37:18PM +0200, Ard Biesheuvel wrote: >> On 3 July 2018 at 15:32, Brijesh Singh wrote: >>> SEV guest fails to update the UEFI runtime variables stored in the >>> flash. commit 1379edd59673 ("x86/efi: Access EFI data as encrypted >>> when SEV is active") unconditionally maps all the UEFI runtime data >>> as 'encrypted' (C=1). When SEV is active the UEFI runtime data marked >>> as EFI_MEMORY_MAPPED_IO should be mapped as 'unencrypted' so that both >>> guest and hypervisor can access the data. >>> >> I'm uncomfortable having to carry these heuristics in the kernel. The >> UEFI memory map should be the definitive source of information >> regarding how the OS should map the regions it describes, and if we >> need to guess the encryption status, we are likely to get it wrong at >> least some of the times. I agree with Ard,  it may be good idea to extend the UEFI spec to include encryption information. Having this information may be helpful in some cases, e.g if we ever need to map a specific non IO memory as unencrypted. So far we have not seen the need for it. But I will ask AMD folks working closely with UEFI committee to float this and submit it as enhancement in Tianocore BZ. > I think the problem here is that IO memory can't be encrypted, at least > at the moment. Thus this patch. I believe future versions will be able > to handle encrypted IO but that's something Brijesh can correct me on. Yes you are right, IO memory can't be encrypted. We map all IO memory ranges as unencrypted everywhere else in the kernel. The EFI_MEMORY_MAPPED_IO type should also be mapped as unencrypted. > So it is not really about the UEFI spec but about what the hardware > does/supports currently. > > And I don't think that change matters on anything else besides AMD with > SEV enabled... > > Thx. >