Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp787160imm; Wed, 29 Aug 2018 12:08:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZLz3Ec/MH4ZOjP1qJoPMpEVb5UPEOt6jNMvrpJyZOnpQJUUNe8YrcZz42/iSX/quKjV3hZ X-Received: by 2002:a65:49cc:: with SMTP id t12-v6mr6781352pgs.27.1535569738260; Wed, 29 Aug 2018 12:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535569738; cv=none; d=google.com; s=arc-20160816; b=zRypLcW0rFJZcUlUUIPQ+GX29rsbnN3KdqVyo7g2cilQ7wS46XRHlGgAUbGtnTASoX nBultbzt6bbqt6uL2ZDV9S2RVjV3ErgalC6aQd+fVOA+Le2+GRjN9iwXRtlirbKB+2mf 4OXDVu4qREIohg7baa/NV1PKS9t/WllbrpdVq/3IAQY34REjn20trVCVV7qSOpmJDnDJ IGYUat4r9Z5TharWaK0l2cbtFNhmFLwAMZFFPGr/JKfTg4d2li++S+jf9SXwD5I9JJGi iRwNE9VRdNFSgdKBRueH1bA/VPy7bWiQQ08Vyr+y1ijeGa2/q/kA1S4tGHYcH7pH8ZWi YcUA== 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=4nP/RD+3GcTPVll1fYlDYMgWrK4Z39naYwthdCEWb4A=; b=ORzRVVInDq75iosABNlYCSQf3QcnSH71tTOyQGVvAut+HnCaHYezO1Hqd0d3WtOAn4 6XSCCEqC6cH6LLDjRHnEMO4eMLSHD4qb9Ity1BWQmG17dlNzwFDsZJyyQ1OGm0DSPTDH nn1Db4KKUhnuIQAIa4+1tUqGdYwh6SY8X8IvR2wD2zyI4akAP4VkTcWSgUVG98ZU/Rt2 FEqxJI9WXZpPhFGIvVUtIzsFMyv/lZ0zgOn9kSeMfXXrDsFua1T2rgr7+9t2MY2jgLJF Dz7+2aNQfo7fVdYEoKpxzV1XNKJbTG6tgXW5U1rNfSEehK1dv2EMlR8TgPffCGyKalp3 VR9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=WkNq9K5X; 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 c10-v6si4182333pla.450.2018.08.29.12.08.35; Wed, 29 Aug 2018 12:08:58 -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=WkNq9K5X; 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 S1728366AbeH2XFF (ORCPT + 99 others); Wed, 29 Aug 2018 19:05:05 -0400 Received: from mail-co1nam03on0057.outbound.protection.outlook.com ([104.47.40.57]:30785 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726633AbeH2XFF (ORCPT ); Wed, 29 Aug 2018 19:05:05 -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=4nP/RD+3GcTPVll1fYlDYMgWrK4Z39naYwthdCEWb4A=; b=WkNq9K5X6yBsf/DurKUkhGlbO/5vPsayVde3/BtGeTM1KRcfYEw4CnzWl2oXZp6pkMPvkAqsfrcg9XYHa9ZlqjAJgqkT8e7ANI0mRNBeLMWtRsco44yxMfCoA5XjlQElSOmPocMub9NNDv5r0z4oV98viD7ZoZntwxIOf5iMrvM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from [10.236.18.82] (165.204.77.1) by CY1PR12MB0168.namprd12.prod.outlook.com (2a01:111:e400:50f6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 19:06:43 +0000 Subject: Re: [PATCH v3 0/4] x86: Fix SEV guest regression To: Brijesh Singh , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Thomas Gleixner , Borislav Petkov , Paolo Bonzini , Sean Christopherson , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= References: <1535567040-1370-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/8kuLX3qhGL5aNz1AeqcE5TW4D8v9ndYeAXFhQI7kbOhr0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SpUBgsEIKxrp AFS1ax5uXmwYGyFzOWy034Zz5fWi260qiFplzKCij8t7sCgzOXwEbIt76L1basrRMY7urJm8 4VM6MeG2mfa92FfrMeL0pnD5ONg1FIuleGlvvKdQdFnE4AlwGcKid5GUD+vNNj/pbZyUpe4r zBFsc21/8jXSlR6zJS4mgkNDIIBGiPny3tvKINMZ8VK00mR6INpd+NErd2LxwZ/DQ5ejVyVL 080CbiD55mxxhqkbd5fHSfdhvvXIIYN+nM/RFLwaQGW9g62iFWlqeNRXezkERDV5ahFqZMP4 YDdodn0nRVZYu2kaXfOclKPcH58HlrRb8pKTE3t/TNKGY3SmKoznH0QtM27TWeZ9R9RgTYiV zSNqP+QUNp6BotWI Message-ID: <027f1fc5-07a1-1150-84a8-822eac9c6504@amd.com> Date: Wed, 29 Aug 2018 14:06:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <1535567040-1370-1-git-send-email-brijesh.singh@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR0101CA0026.prod.exchangelabs.com (2603:10b6:910:3c::39) To CY1PR12MB0168.namprd12.prod.outlook.com (2a01:111:e400:50f6::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 63c1469a-36f7-4677-911d-08d60de28f87 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:CY1PR12MB0168; X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0168;3:pYGzOc+u61LIuXjUBMYWmqcRK8XV9JnZ4gXgrOH91GrvIHOBwoTlraIA3IieEEZBK1z/hKZsIyKRa+Iw43wxfOqQPYEysNqO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VyayPia2AMwYaLoIpFqaSK2uh9sYFT0ER/e/xOVm5pJmewVvmg2kIWoDDEFAdssuwI0rywVe9fFpV4O3wTeK8500gac2qFwdZwImzys13IPf/PSI2jzNAqQw74PZcn743dLu1o/6LI4gFJN6OCxU5Y/CIVH9NZqH41sa6O8PQQHR5bnfNUPFuDHOJLMppn7uhrjJfILp0TPivoCBJUCzbCKNCkU0Q2+MFzrRQUaMGgNteuy;4:+hiUPyONPhMkDuhDsXetl5jYN4+8BkNfqBqZPSr0OsBW9ZfQUVWKpYPqHbRH2hroGrtVebdDTB4gwdwXsKfM04fKVH1bhPcYJw3WliuiZybsTZwx+deAOy/7onByeRncQv720NtoybHMjCv/zH+DBHdLgY5NQLFP4sQffieRWhTa/qk16ArQ2kALXEUH5B1M0ok4koMw0kEaJEVRAeAFGNDB2GHZQig5kXjEOVKzflRwTilBjrTHI+qLR+P9i3Qp/1f1bf6Esr1Nzni5dXaiMbfGhwIWFO89nC0D9Zf6Ofdy4+ZMwrO/fbDH++OwaKsM37iC7Nm/bxcXGAR8CPCd4KeUNxa8llQQ54Dffk3PkkXGDgldKgA18Nagps4LIczd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(84791874153150)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:CY1PR12MB0168;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0168; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(39860400002)(376002)(396003)(136003)(366004)(189003)(199004)(106356001)(6246003)(14444005)(64126003)(65826007)(72206003)(25786009)(478600001)(65806001)(966005)(956004)(476003)(2616005)(11346002)(486006)(86362001)(36756003)(8936002)(66066001)(4326008)(47776003)(65956001)(446003)(53936002)(81166006)(31686004)(54906003)(6486002)(58126008)(23676004)(229853002)(50466002)(8676002)(2906002)(105586002)(3846002)(6306002)(305945005)(97736004)(53546011)(386003)(6116002)(26005)(186003)(68736007)(2870700001)(52146003)(5660300001)(2486003)(316002)(16526019)(76176011)(81156014)(52116002)(16576012)(31696002)(7736002)(77096007);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR12MB0168;H:[10.236.18.82];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?MTtDWTFQUjEyTUIwMTY4OzIzOm45eGEwSFhacjRlYzdpWWVXRWZPMEZvRmdR?= =?utf-8?B?ZEw0ejdBdzMxMDFrMlUrS2JjQUxJUXNpb1Q2TkorOVdVd3pCT2hjakxOb3da?= =?utf-8?B?VCtDRGpVdW9kK0RiclV4Y1RyWGN5VTN4RE1IQlNSSGM0WHcxOGNNSm9sanEy?= =?utf-8?B?THJDUU1BTExwWDZaWWxSS0FkU29wZTBnR2FTUzlPT2RESTJNa0Q4WWJ6eXFa?= =?utf-8?B?d1d6SU1ock5mU0wxNlRRRENlTDBvMFVYbTN2aVJsRUtTdG5nNEc5K2JkOGc4?= =?utf-8?B?cXpFMXdNRWh6QVc5VzhIc2p2UFdZaVZjVFZySnFteGZFTEo5NTdTdVpvajV3?= =?utf-8?B?M3pWK08zUWJaUDJQYmhVMG9BZ3hQbFBJRXBLUm5qM2d0ZGttU0cyNXEvVDVB?= =?utf-8?B?djExejl1eWU1cGc1b3pHSVRBOHhndFNkMUZiMmVFcUVaNkxiVjd5WHR6YWls?= =?utf-8?B?Y2toUkJaSHc2MWVSeFFYKyt0TVBoZU9QUlFUdnVXK2srTlQrcVNNZkVLUnBE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oft-Exchange-Diagnostics: 1;CY1PR12MB0168;6:zJq0fMp81GX0N7nzDZleIneODQxQ0p+RhJrHhPsdIQ6NtR6d7nvRUQ0uvSvur/pMdHk9o0rLMBYE7ATVq2OVmPL6Nv2l/NyQeCbovnjDmZYv2QdPeB4lOp3wigHFgT9CuZnijYNK29HLIskleSTfzX3eWMkhCpC09UmRgFw0zkQQP9dmEa32w6ldcQKQbiHMo+y2VSzI1rNvldHkQVV6ueCG+Z09/mE8hmKQMDj/oLfOMVQoLj56YG84U39JUYp0wWcUKISyqtqbSYHWh3SQOZG43hDyeiXQw+wPv4RTCprx2oK62/jhcBdDLjWkZJXFhG0g6I83aJRImkAo20RCPgZtAH7PZ6iKJfhAPbmps7BUpleXvI9Ef/XDwqY8MwFlsGH8zFt/inYitBImQgqB+mh97sDt2WYxNE+IdXDr8XJOGNUtHD5UlAZkwULp73yrjmpPox7nQ3xEPH6PY/zC/Q==;5:HGbiTsFeGTJEwixdFtZtdcRSpmr01bcXlrH0K1I+L6zD+qiwPbGwcAQGDxrWoa8oUH038ya+OlOQQtKWe60CJ6gvO3r989qX99gTQFVN9PaBX1mkDUx0ClZR1r/qm4EMXdpM+xXoC4GNQxRdk6e3NNvUpIEK1q8EjKsNVDfpDO8=;7:uCdGvyw6EeQonnpB2T7zmquYXR2uh+wvgLlXvVuIOXMNuvohR5YZ42alvli6n9VD4GTbvnRB2lLHS+K4dG6N07d5SRHQZiIpUBH8zJV3XWx7u6zZ/0ZY3vJbS2nopQrgSuIg1xUkhxOKcuxTwBX7ng7oShaJsxerittvmWaanWKNH97RBKHwWIAfciqxPE5U3nEURYo19E5LAheoLmeNrpkzmxTn4yBqM7ney4ZgzUtO95RFFGzPExzOL/wz23oc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0168;20:zVyTkhbZTJ8YaCA6pV73HddxFEMNsBDx6whsFmi9tRQ+II8y4q32RW1YSo57qtyRctVZi7YwZGFl5h/hcdvFVrz9Rs6L4msZ/Z0DWRWFiDvXn0lJHSrF6hM6sZMh7NRm1aK2Lb7GAe8BEvsM4saoQOqw1wDD4CBC4TbEVTnxHA8DiOowHn36KHPb5sUBysfKlp1tXebb2Tj1g24nvXPNE/0UOmvehN2lsJ4FjnkSwHB0EHjpjp+WlnlacBDupyU8 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 19:06:43.6666 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63c1469a-36f7-4677-911d-08d60de28f87 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0168 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/29/2018 01:23 PM, Brijesh Singh wrote: > The following commit > > " > x86/kvmclock: Remove memblock dependency > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=368a540e0232ad446931f5a4e8a5e06f69f21343 > " > > introduced SEV guest regression. > > The guest physical address holding the wall_clock and hv_clock_boot > are shared with the hypervisor must be mapped with C=0 when SEV > is active. To clear the C-bit we use kernel_physical_mapping_init() to > split the large pages. The above commit moved the kvmclock initialization > very early and kernel_physical_mapping_init() fails to allocate memory > while spliting the large page. > > To solve it, we add a special .data..decrypted section, this section can be > used to hold the shared variables. Early boot code maps this section with > C=0. The section is pmd aligned and sized to avoid the need to split the pages. > Caller can use __decrypted attribute to add the variables in .data..decrypted > section. > > Cc: Tom Lendacky > Cc: Thomas Gleixner > Cc: Borislav Petkov > Cc: Paolo Bonzini > Cc: Sean Christopherson > Cc: "Radim Krčmář" > Reviewed-by: Tom Lendacky > Changes since v2: > - commit message and code comment improvements (based on Boris feedback) > - move sme_populate_pgd fixes in new patch. > - drop stable Cc - will submit to stable after patch is upstreamed. > > Changes since v1: > - move the logic to re-arrange mapping in new patch > - move the definition of __start_data_* in mem_encrypt.h > - map the workarea buffer as encrypted when SEV is enabled > - enhance the sme_populate_pgd to update the pte/pmd flags when mapping exist > > Brijesh Singh (4): > x86/mm: Restructure sme_encrypt_kernel() > x86/mm: fix sme_populate_pgd() to update page flags > x86/mm: add .data..decrypted section to hold shared variables > x86/kvm: use __decrypted attribute in shared variables > > arch/x86/include/asm/mem_encrypt.h | 6 + > arch/x86/kernel/head64.c | 11 ++ > arch/x86/kernel/kvmclock.c | 30 ++++- > arch/x86/kernel/vmlinux.lds.S | 17 +++ > arch/x86/mm/mem_encrypt_identity.c | 232 +++++++++++++++++++++++++++---------- > 5 files changed, 229 insertions(+), 67 deletions(-) >