Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1298168rwr; Thu, 27 Apr 2023 15:46:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GMRSJOqxEHHzgLqQowtrUQQXdmX61I9q8ZaOaI4/zbWqr6q+klz4nHLHlUElSi5EtfcgZ X-Received: by 2002:a05:6a20:5482:b0:f5:ae09:cdf2 with SMTP id i2-20020a056a20548200b000f5ae09cdf2mr8667339pzk.17.1682635559855; Thu, 27 Apr 2023 15:45:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682635559; cv=pass; d=google.com; s=arc-20160816; b=IKNP5eoFiMTCnOhA3WzYh0my61sVfO79cOQnMBFBo/5uz+hUSr4zZe0jTcXaM5bWww asHiHUDoB/Bbq44NHPFnR+i1tt4CfpRNh9g6hiAlrQqQXfL2kFdhEfsfplMUhjqfhasu 2vFcHoIqB0vRgeWHRqaRvfrKzcQJjJY4bfHplSUY5w3TqYESKQVwLwybAz8sy9R0xovF 6FEhzs8bxcVP4cnbhUvq0Nm+d8kfvRkCKuxa+kRoKSqTHUaKPgz+4oJzZ1AjDNvLmZSi Zzz+8pWoneibJH+Rcfoiyr9dSx2DjMp/1Hv4xI63raqa978v79Em66AegYx3zMKeUgEU ySZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=MKWZ+SuRw7gWptD+NMS7tXgZDUBkcd0CK8OYYX6cLm0=; b=l3aVC/ltSIGTT9qUvlE897DWKjVv2R/I+hpWNbtziirqGsJ1bZ7H5s5i9mljvbp/NF Rb+np7zGZg0CZtQYqpUCYbyCcM+xSzd2f/LLLbE3r17II8gvvnu6e5f/dZzuc9xK67Bj Yj7cPo2b+4jssjwRyjEm6nnRed4v92XXFjVJznn4JKkYTl3fHadlA04TTsNhSz7isXtg V1Zv9ugPJWQzAtWD/C1SIyzn6Kl+rUdxwODeTZwtY9Jws5p5lCT2uyh6bzKw0K+30qE9 SrVX0e8GQUSyW/C5pwdi8DGEdOAOI8foxobU9wneXE+p4PfECpcvUYDm3cwQFIX7Kdbj WCGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=wQrtTlfq; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=r27ok8F3; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a63eb0a000000b0052069c10102si19684269pgh.75.2023.04.27.15.45.45; Thu, 27 Apr 2023 15:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=wQrtTlfq; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=r27ok8F3; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344100AbjD0Wjd (ORCPT + 99 others); Thu, 27 Apr 2023 18:39:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjD0Wjb (ORCPT ); Thu, 27 Apr 2023 18:39:31 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B882103 for ; Thu, 27 Apr 2023 15:39:30 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33RKPMxd017682; Thu, 27 Apr 2023 22:38:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=MKWZ+SuRw7gWptD+NMS7tXgZDUBkcd0CK8OYYX6cLm0=; b=wQrtTlfq4qPQ2E7jkrAM4mAi3btnlPVSNfD78BrwjBvWctIjF7wNKwU/zX8Up7L4YOcR 3wt2HXKUmMLoOmNpyHuDQqU4GSmYmd0LPW1jG0Y5Pxij1MJj0odRKDcjwy0ri6RvcyrH 19Bwj4QUpNYgd/r4faAXFoo5wqoxqE+wo3RWWqW0s5vPltyK7lD7Oy+dIRzKsfeUzhBv eCBDpEOh42aDyZL33W8Dv8O6yut2+s9ABC88v0RS3OgHknKQ+cf8xQTYT2hYC6lvURMt t2yONoSZVSoY38ReSi/PkXzMnK9U16TEPd32von04+8qji1Apb9Fdk5ryMeT4eOqI3RB tQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q46gbw5rk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Apr 2023 22:38:46 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 33RLh08R006753; Thu, 27 Apr 2023 22:38:44 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2100.outbound.protection.outlook.com [104.47.70.100]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q461a11ed-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Apr 2023 22:38:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NaBKzGC3JkPWUak5E/GGtef1mAEl6eEMmFeYbZoySoiil3UeywxWyoasWE71HUH/CXV4jQexJg9mpq1hmJmAfIQ9owPFDX5JIpl4BidgAXqtg4n2K3hCzwHBoalCQFtPldKLsGb8cc/dZaab6kyxV3tkyYv1jLm2mcja+rgjYeg25IEFvevlY1nbL6sAK6zbEUxVP0N8VO6uB08tB8FI3t4OLDz+8L1OLBhXKAYKS02ch6C8HRjMAQGoll7/myxV0TiBqs35JRD0L7UQIxFFyD2ku8/CR57eJvle+C4xMwa5nRo0JVC9afjyZyumvA0PRCV5td9W4LkEpef5ivKqSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MKWZ+SuRw7gWptD+NMS7tXgZDUBkcd0CK8OYYX6cLm0=; b=Sr+uZwGcEgMaNuFISnk3+VCOsB/bHESjtvelXMt08yIY0nu7HN1dMkcx2YzAGbkGUOqtoUmSm8302hrMNbeI+PJeU2zucf5nhiR0ynoU/20O6jMK7/T6p3OSK0r2xZeC3AtDC0oJAwb6m8R4Fn264OwUiMXdvwXvUTEETKaOUWb1XsksrQDF3qB3e566TzuEWcrkp/Ilk9tI7Z96hCbzrXMoTCoWx2Zt6hrCwD6ps3nWsb7o696l6Eu0LMcLaW2F7WKa5qhdR0l50oeMo5r0IA6LZ6Kmap4UyUbT2z4ZoeCPkznwg+fthGXryxCdCmWS87Vo8sobAUo063GwDX2rMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MKWZ+SuRw7gWptD+NMS7tXgZDUBkcd0CK8OYYX6cLm0=; b=r27ok8F34wgmuLmKuitOC/WD64fO1QDICqxChRlodq6NicqheaIxhoJTGrdMnSOfO1I0NOGxJASpbiXghvIT4Ihu4Bol2g0XoYNSNnRea9+BDfWLGdjPLmT9tIqPvVM6szjrdbjxtpBvI2BmJUpZUZmBbUkf8g69WhQDZOmpXZ4= Received: from BYAPR10MB2438.namprd10.prod.outlook.com (2603:10b6:a02:aa::22) by MW4PR10MB6536.namprd10.prod.outlook.com (2603:10b6:303:22d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Thu, 27 Apr 2023 22:38:42 +0000 Received: from BYAPR10MB2438.namprd10.prod.outlook.com ([fe80::5271:bf6c:adb9:6299]) by BYAPR10MB2438.namprd10.prod.outlook.com ([fe80::5271:bf6c:adb9:6299%5]) with mapi id 15.20.6340.023; Thu, 27 Apr 2023 22:38:42 +0000 Message-ID: Date: Thu, 27 Apr 2023 15:38:35 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC v3 21/21] x86/boot/compressed/64: use 1GB pages for mappings Content-Language: en-US To: "H. Peter Anvin" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, rppt@kernel.org, akpm@linux-foundation.org, ebiederm@xmission.com, keescook@chromium.org, graf@amazon.com, jason.zeng@intel.com, lei.l.li@intel.com, steven.sistare@oracle.com, fam.zheng@bytedance.com, mgalaxy@akamai.com, kexec@lists.infradead.org References: <1682554137-13938-1-git-send-email-anthony.yznaga@oracle.com> <1682554137-13938-22-git-send-email-anthony.yznaga@oracle.com> <70EB1774-A782-47FB-A8EA-534E66A551F6@zytor.com> From: Anthony Yznaga In-Reply-To: <70EB1774-A782-47FB-A8EA-534E66A551F6@zytor.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN1PR12CA0066.namprd12.prod.outlook.com (2603:10b6:802:20::37) To BYAPR10MB2438.namprd10.prod.outlook.com (2603:10b6:a02:aa::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB2438:EE_|MW4PR10MB6536:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ae8a433-796b-4d40-a0f2-08db47702729 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o6BzP6zBiNHVhfsn6n3VRZbTJfdZBPlBv5wRYuqNHZJFKoB/9qNb5t9PEVJ8KKo0RbWVLUvLIo3DCOatDbOZH5qhBXwh3QL14GbdQvXNZwHWSAp7A8L3CVFr/bHvpRiPGigHbtcUETAIkwNZyJPqXXKgI0jw5OnmZKqjYWl6WlMZAmzki9vWyBNDSU7IbkkPSoPEaFa8HC8YSbb7pL6XYClkby/Cdus25tBCLXzb9Ht0BhF9bY0B65KXYg7PJjF9EblKEutCV9b3hGhdF41av0ckphRA3UlrbaEBw1AjVeRd9ToEiul3G4UE8Fh1GqiVx+rEm+3rQDqwmIUsFhX56P3lEVYQ4b/2VE+C5liurFGeZ6zIeK1VZHCGsKcJzePrpS38Q/3t2Uuz7kaaxJYVajy9zmijlTmk4+0DIwS5snVOjKc22fT9uHkUJo+vgpJhDiJJ7aNWDrQQHNWhzfuGObe5mgRdJRSK/y7s/5DRTLZDsC+EPE64J9+T4ix+eBBIQDXsYa5O0rCDHDB/D7/jE0DGyKqJkk4lH0AYSaxYqQYKDb6SthE2Hlhlo1Wl/dnyWQZ3sJQ/qN7NwkgKBVF7ccTgkiW70hfC5khw2++4MblBTGyW1N4Q6Vb1ONLw2+5U3Xxcat5OhEtxcLlns1734w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB2438.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199021)(66556008)(5660300002)(8936002)(8676002)(6666004)(6486002)(38100700002)(66476007)(66946007)(316002)(478600001)(41300700001)(2616005)(36756003)(31696002)(26005)(6512007)(53546011)(6506007)(4326008)(2906002)(31686004)(186003)(86362001)(44832011)(83380400001)(7416002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?K2U2dWUyV3FpNWt3c1BOckJTMllZd09qUWhQMVZqd2NVOTJKVFZzZFBQMG15?= =?utf-8?B?ejdwLzVWZmlPZnc0VFA2RStzbUZvRnZJQXpieWdqbFRmS1l1elErYnpNa3pn?= =?utf-8?B?VlUxQ3NMbUlRM2t0bC9KbHFtYWpUVGN1Mlc4Nmt2RE5SZ05ZYmNoZEo3UVZp?= =?utf-8?B?TTVKcVJYRFl4L0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B?bmprMld0QlNOYnJlWlNoRUhzK0ZFNWJrcm9LOU9DRUx4WCs5aFRudUFsYm9G?= =?utf-8?B?OHEzVmsvTFA4ZHhES3lhaTJ6SUJCSHlITGd4ZXQ4TW8wVmdyTEtFUlprMFk5?= =?utf-8?B?dmgzT1FpczFOZVppVTVRWkhBOHllMEh6NmMrWXhOL0c4aldZdUNrOEVmTlVs?= =?utf-8?B?dXZQZTJ0Z0txWTI2T1ZqMXo1SFF0OU1LclVlK2dGUnJMRUdvbTFUNWFEdVg2?= =?utf-8?Q?w+Qo8bsKR9ejYtA0fjGZp1nbw1nxna5noz9lkzC?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae8a433-796b-4d40-a0f2-08db47702729 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2438.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2023 22:38:42.3802 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: j7Zplnb5y1ETnzO9SboTTUvAAOdeM3PXjZFAximp815OIjk3D30Ar24Hoc9cgaSIdrf9PpNXZO6QQLLC9TMXc2AmsDKZ1AkIfQtAd49O9jM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6536 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-27_09,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304270200 X-Proofpoint-GUID: rpupowy-FKtqEkReBNRwiWNFqJDhLoNu X-Proofpoint-ORIG-GUID: rpupowy-FKtqEkReBNRwiWNFqJDhLoNu X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/27/23 11:40 AM, H. Peter Anvin wrote: > On April 26, 2023 5:08:57 PM PDT, Anthony Yznaga wrote: >> pkram kaslr code can incur multiple page faults when it walks its >> preserved ranges list called via mem_avoid_overlap(). The multiple >> faults can easily end up using up the small number of pages available >> to be allocated for page table pages. >> >> This patch hacks things so that mappings are 1GB which results in the need >> for far fewer page table pages. As is this breaks AMD SEV-ES which expects >> the mappings to be 2M. This could possibly be fixed by updating split >> code to split 1GB page if the aren't any other issues with using 1GB >> mappings. >> >> Signed-off-by: Anthony Yznaga >> --- >> arch/x86/boot/compressed/ident_map_64.c | 9 +++++---- >> 1 file changed, 5 insertions(+), 4 deletions(-) >> >> diff --git a/arch/x86/boot/compressed/ident_map_64.c b/arch/x86/boot/compressed/ident_map_64.c >> index 321a5011042d..1e02cf6dda3c 100644 >> --- a/arch/x86/boot/compressed/ident_map_64.c >> +++ b/arch/x86/boot/compressed/ident_map_64.c >> @@ -95,8 +95,8 @@ void kernel_add_identity_map(unsigned long start, unsigned long end) >> int ret; >> >> /* Align boundary to 2M. */ >> - start = round_down(start, PMD_SIZE); >> - end = round_up(end, PMD_SIZE); >> + start = round_down(start, PUD_SIZE); >> + end = round_up(end, PUD_SIZE); >> if (start >= end) >> return; >> >> @@ -120,6 +120,7 @@ void initialize_identity_maps(void *rmode) >> mapping_info.context = &pgt_data; >> mapping_info.page_flag = __PAGE_KERNEL_LARGE_EXEC | sme_me_mask; >> mapping_info.kernpg_flag = _KERNPG_TABLE; >> + mapping_info.direct_gbpages = true; >> >> /* >> * It should be impossible for this not to already be true, >> @@ -365,8 +366,8 @@ void do_boot_page_fault(struct pt_regs *regs, unsigned long error_code) >> >> ghcb_fault = sev_es_check_ghcb_fault(address); >> >> - address &= PMD_MASK; >> - end = address + PMD_SIZE; >> + address &= PUD_MASK; >> + end = address + PUD_SIZE; >> >> /* >> * Check for unexpected error codes. Unexpected are: > Strong NAK: 1G pages are not supported by all 64-bit CPUs, *and* by your own admission breaks things ... > I strongly suspected that this was a no-go. Thank you for taking a looking and confirming it. I'll look into alternative solutions. Anthony