Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp56229imm; Tue, 3 Jul 2018 13:52:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdszlcoh5inUg2Y95wcp625w+aSh7LssSoswjdxh8MC703Yco/luBNmmmTPx0SQAUuU4dOS X-Received: by 2002:a17:902:700a:: with SMTP id y10-v6mr12031984plk.249.1530651123206; Tue, 03 Jul 2018 13:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530651123; cv=none; d=google.com; s=arc-20160816; b=LPmreETzUQPGtzxeo4mA67MaH4xbuwqf6oTN4SOWl9M6oFPEObZGyQzQhY0LgKsoIP veyaqLiZ7VdkZtlVwncN2uDqxN1gV1yBb7n+Raw6Yq2xkwffNLZfBkr0kl6pL1LKFYBk SZNvNTohIcpbUNesYEcvBTOgI2eql6/rAMmtPHolMlK6Wp7gSc3znizODSr9MPg3mZOI mG5FyQxs8eQcAd6rOxZoinaWyTu6gBsDJ3YrcRUJrcwVCdbhwQBCNY8yqhwNF/XVCDY9 EgzdFL0Rcf8y1yrd8Odvwf5xJkiAIPnELfa+FozwtgR+RCir1fgA37W7SL6OR9kw2JcP ewJQ== 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-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=hMrSwacSn5hTjUwPsMHEdonkirw1ybuw0H2mhnVR7YY=; b=DzV7Y9Z7WrIpN7hh1iYb4DAj9IP3O3UE++A3EfJjv+bg3Nnwk8rl74TkwQCkeKXJOh 4abLdFsQ+3NJT9+TcRXJm7B5B5vEuXorp5lJTZIZI4mSxQSZ895EdaqBSyENYbT70GOT gRE8I1CuBTrB31UMz9+bEXVKRgrfQJOOUHPUG2T3+sWgAZ81n3NTyGhvdVeW0qXesHmR OBI01KMe8GNtG2KzsdGX2eJnK4Lxjp6x1GB1IXBxDhx/jnbqvBSqjVhBRmePwg1sUxY+ G2EYxVJY33oYnDWyVEyTufSXuwCyuDpJtJ8EQzkNvLGcTRdd3y+JDoHpcvXn7xrQLyB+ /Wow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=AYJBavWv; 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 34-v6si1775522pgs.243.2018.07.03.13.51.46; Tue, 03 Jul 2018 13:52:03 -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=AYJBavWv; 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 S1753159AbeGCUuw (ORCPT + 99 others); Tue, 3 Jul 2018 16:50:52 -0400 Received: from mail-eopbgr700050.outbound.protection.outlook.com ([40.107.70.50]:29771 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752706AbeGCUur (ORCPT ); Tue, 3 Jul 2018 16:50:47 -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=hMrSwacSn5hTjUwPsMHEdonkirw1ybuw0H2mhnVR7YY=; b=AYJBavWvsfQBhKVv9ej/2zqq7HdI/lRzalIQuIl/UO24kXrvQpCjvGri9LXxpqp0vpibGvEokk69M7d50pT/du2VqWz/DBcbKue49k6aAzNTX5CqFg6QGRJmtmKXDMk6dR0t2Nf1ibLxLLk3zcky6+X2tzOHJnCumdVy1S/qd8M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from [10.236.64.67] (165.204.78.1) by DM2PR12MB0169.namprd12.prod.outlook.com (2a01:111:e400:50ce::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.25; Tue, 3 Jul 2018 20:50:43 +0000 Subject: Re: [PATCH] x86/efi: Access EFI MMIO data as unencrypted when SEV is active To: Brijesh Singh , x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Borislav Petkov , kvm@vger.kernel.org, Ard Biesheuvel , Matt Fleming , Andy Lutomirski , "# 4 . 15 . x" References: <1530624720-32004-1-git-send-email-brijesh.singh@amd.com> From: Tom Lendacky Openpgp: preference=signencrypt Autocrypt: addr=thomas.lendacky@amd.com; prefer-encrypt=mutual; keydata= xsFNBFaNZYkBEADxg5OW/ajpUG7zgnUQPsMqWPjeAxtu4YH3lCUjWWcbUgc2qDGAijsLTFv1 kEbaJdblwYs28z3chM7QkfCGMSM29JWR1fSwPH18WyAA84YtxfPD8bfb1Exwo0CRw1RLRScn 6aJhsZJFLKyVeaPO1eequEsFQurRhLyAfgaH9iazmOVZZmxsGiNRJkQv4YnM2rZYi+4vWnxN 1ebHf4S1puN0xzQsULhG3rUyV2uIsqBFtlxZ8/r9MwOJ2mvyTXHzHdJBViOalZAUo7VFt3Fb aNkR5OR65eTL0ViQiRgFfPDBgkFCSlaxZvc7qSOcrhol160bK87qn0SbYLfplwiXZY/b/+ez 0zBtIt+uhZJ38HnOLWdda/8kuLX3qhGL5aNz1AeqcE5TW4D8v9ndYeAXFhQI7kbOhr0ru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pUBgsEIKxrp AFS1ax5uXmwYGyFzOWy034Zz5fWi260qiFplzKCij8t7sCgzOXwEbIt76L1basrRMY7urJm8 4VM6MeG2mfa92FfrMeL0pnD5ONg1FIuleGlvvKdQdFnE4AlwGcKid5GUD+vNNj/pbZyUpe4r zBFsc21/8jXSlR6zJS4mgkNDIIBGiPny3tvKINMZ8VK00mR6INpd+NErd2LxwZ/DQ5ejVyVL 080CbiD55mxxhqkbd5fHSfdhvvXIIYN+nM/RFLwaQGW9g62iFWlqeNRXezkERDV5ahFqZMP4 YDdodn0nRVZYu2kaXfOclKPcH58HlrRb8pKTE3t/TNKGY3SmKoznH0QtM27TWeZ9R9RgTYiV zSNqP+QUNp6BotWI Message-ID: Date: Tue, 3 Jul 2018 15:50:33 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1530624720-32004-1-git-send-email-brijesh.singh@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN4PR0201CA0011.namprd02.prod.outlook.com (2603:10b6:803:2b::21) To DM2PR12MB0169.namprd12.prod.outlook.com (2a01:111:e400:50ce::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c262b8a3-dd9c-469f-331a-08d5e126a530 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:DM2PR12MB0169; X-Microsoft-Exchange-Diagnostics: 1;DM2PR12MB0169;3:67mXWa+j885W5aUtotUMaz+4LJnQMJvyb0nJJUVxDA4TlHQiQUT7rXc+3wbKWbGYpGhgAOmKGVMYkm3hbDXWolx+OOgqNcSJi/L8I7W6S2PkVav3mFYUM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JDwQwnAeanMcK635+9jD3X0Kxvyax8dYjdgZCmXeTPdpkOLU+2Ssy8gSyeRXPAD6gZhbf6FqcwUI2TyFwWBq1jXTxKpXKrLwNRrKiS85omjMyTsw2v4RK/2vXvu177tB9xOdHEbyJ3fTGrmYKA2FNhjO7fae7yqRv5gGtbUHsjS4/N6gaZvpeNcZf23/DKxXkmzOtkct7ngr1Fxqk0icz95b/equLUcRVnWa1XVGAaPg/1h;4:QVAnelcXxE00bqFP+QwtHVJa/KgZqXueEb3MiUiUmYVuWGixRQtsDK8OAe79JNubwKB1gyiDU3gPlphZqas8+Ekhd8ucqiQmCsSlTePaQhkdHy4yzpxk4/2+f/VmCrdzXxPFOAW5D5hGuuj2c/GDPosImRMq17ow3WWQl3j/jEHXVqtxTeOhPI8YU3CxaWcpE86WXTrp0gKO6CFCzE5Uh2NbWGiZ/ARCW0S66CMNV6Cip7YC+hpqHoi4Ng9YtF/GHdIKPNFLjfoY8DHDWm1setEtpGgqPFg8KDSoSE1gCEz+e9XYtBsKcCLftCQKGpzew+AxiWuBgJBY1A/m4KPVyQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:DM2PR12MB0169;BCL:0;PCL:0;RULEID:;SRVR:DM2PR12MB0169; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(366004)(39860400002)(376002)(136003)(346002)(396003)(189003)(199004)(8676002)(26005)(31696002)(47776003)(68736007)(7736002)(81166006)(81156014)(53546011)(4326008)(486006)(106356001)(86362001)(54906003)(386003)(8936002)(305945005)(65956001)(65806001)(66066001)(53936002)(6246003)(97736004)(31686004)(476003)(105586002)(2906002)(2616005)(14444005)(956004)(3846002)(16526019)(23676004)(2486003)(52146003)(316002)(11346002)(77096007)(186003)(3260700006)(6486002)(446003)(25786009)(6666003)(6116002)(36756003)(230700001)(65826007)(16576012)(58126008)(64126003)(478600001)(52116002)(229853002)(76176011)(7416002)(72206003)(5660300001)(50466002)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR12MB0169;H:[10.236.64.67];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-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjEyTUIwMTY5OzIzOnBmZHVxUTNSUExxdWx5Q1Z1SnZJSUlqa013?= =?utf-8?B?SXQ2anZBWkFkSGlrSjNCL3B1SjlCUVJDL3k3WWZNQmFDSXB2VzNib2RkQlFv?= =?utf-8?B?S1JTaVlYVUtEaUhSbFpLRHN1TlFlR2lZYkNETVA1NWJZSGEzWG91VEtZNWxu?= =?utf-8?B?NDV0bEVoR1Z1bm8xMU0wa2dUVTlTMUxtN2hnbEpWeldqbnFRb2gvK29MQS9L?= =?utf-8?B?Yy9ya0tPMktSdmFNOUZndkNiQWwxeXJLNEtJeWJhU2xXdWU4SGxxMmFxVTNu?= =?utf-8?B?ZjhUbDRZTlRHZU1XL2pSb0NIc0hzemdiYzkvSHZlYzJNc0l0cVZVTVAwMDUz?= =?utf-8?B?SC9ZY2dxK2pXMmY1Q2grRnNyeDlJNFA1dHlHRWZWb0xUL2Q5ZXEyMEhuRmw3?= =?utf-8?B?ZUtpM1h4TE4vOEZYbHN5V1ZQTXFBZkcwRE1uUTdkaGoyTHNoWFRoeHpBYmJT?= =?utf-8?B?eVlyNEpwUWdNazRUUkEwRmdtZDNRYXBGSVRBZWxtSEd1ZHdwVVJlWlZJeXBz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QDr3noOe/WH4ncuPoa+ZH7qGf6QbJPRhCeAJUOnmHgkyFeQVJYVm2rm4T++9glER0g0Yrfl7MhwfJLQkvNJiz/sDFvtUhQDqDwqaRC9DpuOk0DngdWLdEVLNp6MdJwapv/9MFC2ZdqB07mSRmw+;20:+i/Y3lWNDaGGGEsX5Ug2+mMpv4JdhtqBzSfqu86jvs1LG5Cs5CfuVjFH549qDqnDc9dPHNV4cUshDogCDr41svVzo+nNMWC/m8pmWdFqExvYB+qS/540+MLUnxTb3nceDG5+y+5RSvNXTqljwnDhjAcQBqPgg6cu885dVKOLzOt1Wvm8rScU86jFBjK1yLmSJKbdFI4nVfkRhuZXbyd1FMtZavp8J8K7yx7rsUG1aFyZMXoSzG3w2diuadkPyecL X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 20:50:43.2394 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c262b8a3-dd9c-469f-331a-08d5e126a530 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0169 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/3/2018 8:32 AM, 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. > > Fixes: 1379edd59673 (x86/efi: Access EFI data as encrypted ...) > Cc: Tom Lendacky > Cc: Thomas Gleixner > Cc: Borislav Petkov > Cc: linux-efi@vger.kernel.org > Cc: kvm@vger.kernel.org > Cc: Ard Biesheuvel > Cc: Matt Fleming > Cc: Andy Lutomirski > Cc: # 4.15.x > Signed-off-by: Brijesh Singh Reviewed-by: Tom Lendacky > --- > arch/x86/platform/efi/efi_64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c > index 77873ce..5f2eb32 100644 > --- a/arch/x86/platform/efi/efi_64.c > +++ b/arch/x86/platform/efi/efi_64.c > @@ -417,7 +417,7 @@ static void __init __map_region(efi_memory_desc_t *md, u64 va) > if (!(md->attribute & EFI_MEMORY_WB)) > flags |= _PAGE_PCD; > > - if (sev_active()) > + if (sev_active() && md->type != EFI_MEMORY_MAPPED_IO) > flags |= _PAGE_ENC; > > pfn = md->phys_addr >> PAGE_SHIFT; >