Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp187197rwb; Mon, 26 Sep 2022 10:55:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iND6Fp9dK//Y3Ea40OLpVLqtGPRk2AD/KZt9okqltQ0BlzUGW7hgxYdJduS/Te3r4AIcL X-Received: by 2002:a17:907:6e04:b0:782:ff2:fa8 with SMTP id sd4-20020a1709076e0400b007820ff20fa8mr19497636ejc.749.1664214909263; Mon, 26 Sep 2022 10:55:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664214909; cv=pass; d=google.com; s=arc-20160816; b=aoe/3CpEofZYGDAeEAUvX1GkjY2L5E9FTKjKmxRiUvMzkvu5T9ky0tor8AoQeO25f4 R2DGsF0BQ/w7qZxUoNt5WaCK0wH8gqaGCFOkXQMGa4aVPZ45mn/1SI5EziglssHTlAvo E5NMLIxfxbW0vO/cn7y5fdI61nYLV1H/91fUXY5ODN/TJKuDuwato+ythh5Ua8BbxnNZ ryT1bBHIOMWvCZSTX/8saqc25lJaqu8ESQeSD5xr8xubbgCAFTSqj6Tz/wKeuZ1uUMlt WOnF9tz65Ia0sVp/GYbzAMcyUD+dOEAmn5H4dz1Bx8hVOs/4Y1gwO5HNcxTcxsrRDKZ6 VOPw== 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:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature; bh=DeLMbKsxLSQ8j5etohjB1FJyA5SjpR6pJq4vwExPi30=; b=ttVuRGrhZZtQAjLsl3wytmzaZffqYvw3Rrx9gHoDvBPP0LJbNFrtUfFoVihtwCQGL7 dM+g8ztMlU7nvPk7kXHyJCFNe0zK58x6WfnZnOWR9d4dkTuSLzqL34WC4RU29MYT0JSX MiVzm3GXNNkrzJTuTlP+j+YEwt10PBBvJ5KxI5Sl9jIZPKbZW4l4PFRnZ/CpKS7xfW0j BVJ/WtXAdu8Li57+B7XFl7x8MSozCQlHXC3srei6qWEyT9r1dhm5lvtdit3et9ntkUW3 h5E8QhK5T9DnDzUXzHldvioWgEIcOO3Zr9KCxWseT2fMTye8qO+r3Lu5sM/Xu7zid2O5 YXRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=0fC88Aww; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a50eb47000000b0045142ba98ffsi15171972edp.593.2022.09.26.10.54.43; Mon, 26 Sep 2022 10:55:09 -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=@amd.com header.s=selector1 header.b=0fC88Aww; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbiIZQtU (ORCPT + 99 others); Mon, 26 Sep 2022 12:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbiIZQsM (ORCPT ); Mon, 26 Sep 2022 12:48:12 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2070.outbound.protection.outlook.com [40.107.220.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBAC24F07; Mon, 26 Sep 2022 08:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hh3S401MLvn+Bg9iIq+504Jm0TaU0Whr/cG1dL/5//461c741hXe0C27cqEGO8Y/j1JZ7UdfHzurs/cMa7BdNQLF363ifpMhhiWtG9A8KLFNUjYcYcBk7BgEins1fjYKaRr8MEtHQWLXkavKWnLK1nxC/RMA1gq+IyA4cCyNGbEfZOj67qqf0slbJEUyMZIsdeN9DSaEGQw2Nq87II/G4Qr6GBvzyR6f+FwomD/gAyeXPtX2qclricfVsxlgRYjkudJBTn9qh7NkP9ksJ7cBtvJCvQ4q2qYVzdFSGLyeUy8DaDkEZ+2rBSgeeBAiQUq5Zr20h+yxEHjFrGaKeQcxgQ== 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=DeLMbKsxLSQ8j5etohjB1FJyA5SjpR6pJq4vwExPi30=; b=jQpSmKgB95vPLBAaQWVQTAZbL+aFFZiHo+pPFKYeCz+yTNbWifl4LsdUQWA/wT7RgsUNZlliQvhGXGMCN9rsSL1PFszzMZb3hXD9TcnpwjuF6UV+J+vxzQM1z+GnUwmLktoE7CFVYT2zadPfDbF+nfDCjGS8zAatBjEmc1uH79pqjkOrUluUkuzapc/uyAFUrupUpRkVGI+ROKZE+hmdolpN91VXh0j7sZd3RGRIhPQgOPaYXBhrpQxYSKlPxU82IgYWbm15DvGID6vaaTyZPSj1YOGFS42OPTY2iCQMZPLZ8L1DAdmdfdEcKGoDBLk+EOp8i3H4dHUyb/hJY3alRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DeLMbKsxLSQ8j5etohjB1FJyA5SjpR6pJq4vwExPi30=; b=0fC88AwwwE8J0bPJEcVJ/uFLTjlk3QOjUsv93bfmC+650OR3MnMWGo/o7NKh3AiydkUkxWl6ZqbgczvDQquceZrlyAT/LCyPDU9WvrhoRQ14KWA0Wh7DVN7RPJGFmeubLKl/jC8RUo7ju13mJAMup/spVVJoEshVgZJss6mDg7c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) by SJ0PR12MB5439.namprd12.prod.outlook.com (2603:10b6:a03:3ae::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Mon, 26 Sep 2022 15:42:29 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::c175:4c:c0d:1396]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::c175:4c:c0d:1396%4]) with mapi id 15.20.5654.025; Mon, 26 Sep 2022 15:42:29 +0000 Message-ID: <6188f3ad-721a-cd00-2398-5ce3b0cd12d8@amd.com> Date: Mon, 26 Sep 2022 10:42:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCHv7 02/14] mm: Add support for unaccepted memory Content-Language: en-US From: Tom Lendacky To: "Kirill A. Shutemov" , "Kirill A. Shutemov" Cc: Dionna Amalie Glaze , Dave Hansen , Mel Gorman , Vlastimil Babka , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Mike Rapoport , David Hildenbrand , Marcelo Cerri , tim.gardner@canonical.com, Khalid ElMously , philip.cox@canonical.com, the arch/x86 maintainers , Linux Memory Management List , linux-coco@lists.linux.dev, linux-efi , LKML , Mike Rapoport References: <2981e25e-9cda-518a-9750-b8694f2356b5@amd.com> <984e07ed-914f-93ca-a141-3fc8677878e0@intel.com> <20220924010302.bwas4zbro37rrxai@box.shutemov.name> <20220926121027.xc2cgzuiafcssmea@box.shutemov.name> <6a38e382-b9d6-98a1-d2ca-cd92fdfd8ecd@amd.com> In-Reply-To: <6a38e382-b9d6-98a1-d2ca-cd92fdfd8ecd@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL1P222CA0013.NAMP222.PROD.OUTLOOK.COM (2603:10b6:208:2c7::18) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5229:EE_|SJ0PR12MB5439:EE_ X-MS-Office365-Filtering-Correlation-Id: 894e2416-8c4e-4f93-e393-08da9fd5b800 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yIpNY7uBynp0qARSuucBIUednUeLD3HR6dfR65hU2lETi9aafRtAl8jgOI5wmebOysmJGJ2mIw5g+vfYW7nziJt+uXpURYbZZaiFAzFi4guYJ+fI/qHSlmbyJSVCQKr6OVW7ypRDmJjApcQ29Xuu9J+7fLpPWJQNlEBk/E8zOxxWAcY+1ZJh68vevjLzOK2j9pZIdoP5PeKXbmUBLSNrjuICPRFcsVeKhq5V3hs5d4/IZzTOBlUa1pZdDcyxcmo1DD2crXRdss/CD4CO5MlDkv/ucJfnOKjdyrY052NO9y2Jdo3SBh0rI6nLSZ+NvOhsBPLp8Dwyn2EDDt3Ew0eLjKbl3g7+kAm0OJLQ/Z7O1lmnNwSVQczSb1gc5zith5jOLr5LDdIQ9O1ijETDLxl9ghZGQi3NcwN5FepaUe6vGRwzs6e3DfSubIOm26Xe+4s14qRaYYTA1etNQp5oiwg4dpXjO116HUzBdm8m9mw2kcSdAC09K2pAeESGZODt11cZ2Oh/Lw9Qn0PodhNtYiNT3XU/w0W3xPjFSH0LDmCqdAs387p14lNBrXy7S1eAM9JG1P+pLErQif6wkUaAkCMCEb3LUq9XPqTztVc/mspvXCbiC6GmJr2wBMdtkJavpYhlssrFiAyo4l0MrupVsR7bXBn9uxcNRILNCAR39gwx4tgOeRbj8ux4LXNZF1vSbAv95NkdcRpVwPD5uPo4TNlXIepqtwubCEreExoRv3P+gyvRPLuJZCfr9VAQg1zuDP2KMpfLdhwChOXFCSSAYATyKUncNOoFKPQrwY0h7vljEeI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5229.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(396003)(366004)(39860400002)(376002)(451199015)(38100700002)(86362001)(6486002)(31686004)(31696002)(478600001)(8936002)(83380400001)(110136005)(7406005)(7416002)(6666004)(53546011)(6506007)(316002)(5660300002)(26005)(6512007)(2906002)(54906003)(2616005)(8676002)(66556008)(66946007)(66476007)(4326008)(36756003)(41300700001)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZmNNRkhoYmZIbm92Sm5jcXRmSWZUTHNhQ0RoRG1aK212SS9jVW9IKytCMVN0?= =?utf-8?B?cEJHY05rS3BieXp0U25KYjNBR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Qw?= =?utf-8?B?RDRjcStPeUc1TlNyN0RSc3FCM3o0UDRwWE9wcjVEYVphVnA3cW9VV0ZWTlFI?= =?utf-8?B?c05HU2RYSDNsaUpIejg4amxMRzc2djVpMTNpSFFpMG1qTW9KNVprdWphNFZl?= =?utf-8?B?QzMwdnM3ZjR6aHptK2YvUE9NS1psZlNBZVdvdlk0Mm1BTWdTNzA4SUhzUTc3?= =?utf-8?B?ZURrd05kVytMVXh1c1dFaGVHaHRPUjlyRndEbkJzc0JBbGU3bnlzN0dCK2ZX?= =?utf-8?Q?3dJJTY1jllamUBFB8+pS4TnRZ?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 894e2416-8c4e-4f93-e393-08da9fd5b800 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 15:42:29.2137 (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-CrossTenant-UserPrincipalName: aFtXEel+SdQ6J4EtWaKXrgSahc3WEr84QEczZFKrZyV6LhICBUUVm3DM2Y72q2XaX2PqXO22G4oRDx9Z25Qj4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5439 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 9/26/22 08:38, Tom Lendacky wrote: > On 9/26/22 07:10, Kirill A. Shutemov wrote: >> On Sat, Sep 24, 2022 at 04:03:02AM +0300, Kirill A. Shutemov wrote: >>> On Thu, Sep 22, 2022 at 09:31:12AM -0500, Tom Lendacky wrote: >>>> On 9/8/22 14:28, Mike Rapoport wrote: >>>>> On Thu, Sep 08, 2022 at 09:23:07AM -0700, Dionna Amalie Glaze wrote: >>>>>>> >>>>>>> Looks like the first access to the memory map fails, although I think >>>>>>> it's not in INIT_LIST_HEAD() but rather in init_page_count(). >>>>>>> >>>>>>> I'd start with making sure that page_alloc::memmap_alloc() actually >>>>>>> returns >>>>>>> accepted memory. If you build kernel with CONFIG_DEBUG_VM=y the >>>>>>> memory map >>>>>>> will poisoned in this function, so my guess is it'd crash there. >>>>>>> >>>>>> >>>>>> That's a wonderful hint, thank you! I did not run this test >>>>>> CONFIG_DEBUG_VM set, but you think it's possible it could still be >>>>>> here? >>>>> >>>>> It depends on how you configured your kernel. Say, defconfig does not >>>>> set >>>>> it. >>>>> >>>> >>>> I also hit the issue at 256GB. My config is using >>>> CONFIG_SPARSEMEM_VMEMMAP >>>> and fails in memmap_init_range() when attempting to add the first PFN. It >>>> looks like the underlying page that is backing the vmemmap has not been >>>> accepted (I receive a #VC 0x404 => page not validated). >>>> >>>> Kirill, is this a path that you've looked at? It would appear that >>>> somewhere >>>> in the vmemmap_populate_hugepages() path, some memory acceptance needs >>>> to be >>>> done for the pages that are used to back vmemmap. I'm not very >>>> familiar with >>>> this code, so I'm not sure why everything works for a guest with 255GB of >>>> memory, but then fails for a guest with 256GB of memory. >>> >>> Hm. I don't have machine that large at hands at the moment. And I have not >>> looked at the codepath before. >>> >>> I will try to look into the issue. >> >> I'm not able to trigger the bug. >> >> With help of vm.overcommit_memory=1, I was managed boot TDX guest to shell >> with 256G and 1T of guest memory just fine. >> >> Any chance it is SEV-SNP specific? > > There's always a chance. I'll do some more tracing and see what I can find > to try and be certain. Indeed, it was an issue in the SNP path, shifting the number of pages as an unsigned int by PAGE_SIZE and adding to an unsigned long. The value to be shifted was 0x100000 and resulted in 0. Changing the number of pages to an unsigned long fixed it. There are a few places where that is being done, so I'll address those with some pre-patches as fixes. Thanks for verifying it was working for you. Tom > >> >> Or maybe there some difference in kernel config? Could you share yours? > > Yes, I'll send that to you off-list. > > Thanks, > Tom > >>