Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4881887imw; Tue, 19 Jul 2022 15:23:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3tcPw94H7q7XJQpo8Dd/ckhIaVW/nanZemWHaX7oPu3ucx/di2OCzFvbTYCLBELtl03qR X-Received: by 2002:a05:6402:3202:b0:43a:86f5:a930 with SMTP id g2-20020a056402320200b0043a86f5a930mr46000489eda.389.1658269421042; Tue, 19 Jul 2022 15:23:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658269421; cv=pass; d=google.com; s=arc-20160816; b=Ae4F9B0sAtD9pR+yQJEIYonr0d2m006GNhR6D8M+JR3oFMGbY1HY5+HhGpYLtRWHkr HwUlCLIS4wQ7IOHXzL4JKQtwhAS6xBAto216aCALZrapkTkTA+c0EDtAriq45+jezVFV LbQx7ettXksh2r8NtBzLyOWH6/MqAnyz/Nc9E+H8mSW2HHnN/2tHFje1/JdnQAw9C7Qc EqgCdwaCntjHi/6bpFzv+hYMq/IbY1+7gCrwn0tb/0Ua5YNPhSfd2QwGPEFNHhJDjEyx HUDxXdUmBYnzSvppvsoIA7iNoTqqpsmH2YPKcZsksfnLbx9P+NvGgbCmLbJItcIR45Re RXQw== 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; bh=lx7ncwPdDVIvtJTHX2+WJJn+IkPY93oFYRUbzZX41js=; b=Pipw5sJorcCRuUv84ZXyaxQe7FrBNZHgzuHTerP5tp5JfFDizyjwCsYha5MbpGcV8s vS2unr4fhuuADyu7UllDuQQdjG2mJU1ZKdWtgsjdDoilVucRrDP+/uRV3EEoFqJckwfT bE+D7sQZDIr8nT8G2m7EeaHksIAOtepaKqZxKNbRIvquo8C7KAQ+wxeicfsZ5V8z5aaG niv2Wg0NBA5HXzI8IU25JnNG+MthMH3Jba3rLx4NlngpUA1lpoZ2Hb18afstnwbofDsc HGfV0MKeT2KLqwxsid8CKjb/K19PJjN5RUOUZnqmEIEz8unzttqb9p+sgXxETgi7eMxm Thxg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="x/QTyv3d"; 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 gt16-20020a1709072d9000b0072a89cb4513si1927566ejc.494.2022.07.19.15.23.17; Tue, 19 Jul 2022 15:23:41 -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="x/QTyv3d"; 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 S239767AbiGSWIp (ORCPT + 99 others); Tue, 19 Jul 2022 18:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234526AbiGSWIn (ORCPT ); Tue, 19 Jul 2022 18:08:43 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2048.outbound.protection.outlook.com [40.107.95.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189973AB23; Tue, 19 Jul 2022 15:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VuOfeCcReBCUtZFQLhUYOD/uumkqs/r7tdgE9/UXN5d7RqhfjvKhrnRotQFn6c/+PSMXe7B8dWxezHyO5v7U8D61gABKjRBFBImErTXRJzp16zBAgeORBJ1AIJmvCngKounhE6bvcyu1/fi0uarWYKGl2jb5a1tTr/ikRC2WA6ZgY5H6TU7LfxTf+LRW8t/vi/jjOg5QAUKlzbjTvSI2c+kZ0DwfLW6t/zBCgSJvt8cHl5MPECqzhYuIREe2FsA83xhAxojNSafwiRcDWVkmz0sIf3BuoeApd6t2TpiMDh5H3AOXez6otE4sawlxqfxP1upeak7THhR/Oc5Jnw8RmA== 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=lx7ncwPdDVIvtJTHX2+WJJn+IkPY93oFYRUbzZX41js=; b=FigDQIqPTcKFxsOXcdc+2TC6Ru09ZQ4BnRX+LrxYIAW8gAkRAZ8kpAQmMfkr83+gwU3OPAwYyXALghZGeSpbbSzRvtAglVw1Q9OTg62+pSA7wXMTR4BBhngkgnBPulVMKvVKs5aBuF4RGjlHUMb3O7cRvK/upUl9hFKmyU2Sl2T2iGek43jhO6GsoheIyYr/iquZEQfgYmhKo5zsNBW40H2uwXWRT5C9kywqbE8qr4ZXPFOQdb1y+Yl24FFVbW2KC0sHV3jQNcLJeNvw9G9n4dMjDPDpszjRwJ/r/oJ6+elPyiJ4PAsvEm9njcZwMeLjvqovkJIdRwHDWK241S6NOg== 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=lx7ncwPdDVIvtJTHX2+WJJn+IkPY93oFYRUbzZX41js=; b=x/QTyv3doRBr3q/+oku9J1ijaHimjDCJbFQsWChmlwUsRPGxnObA7Zkj53hCnixRetcbRMGnM91s7YYCOgmGYv0s2dUSIErynNg3iuye3sPcXXz0N8R/b93SNhDguEJHh9Et+1HE7SFarXdYH5rjQOGpJg+Y6QEEiXm7NSmGOW8= 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 CH2PR12MB4954.namprd12.prod.outlook.com (2603:10b6:610:63::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.20; Tue, 19 Jul 2022 22:08:40 +0000 Received: from DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::1dac:1301:78a3:c0d0]) by DM4PR12MB5229.namprd12.prod.outlook.com ([fe80::1dac:1301:78a3:c0d0%4]) with mapi id 15.20.5438.023; Tue, 19 Jul 2022 22:08:40 +0000 Message-ID: <990d8c5c-1995-3ebf-e583-0e3f264ada0e@amd.com> Date: Tue, 19 Jul 2022 17:08:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCHv7 00/14] mm, x86/cc: Implement support for unaccepted memory Content-Language: en-US To: Dave Hansen , Borislav Petkov Cc: Ard Biesheuvel , Dionna Amalie Glaze , "Kirill A. Shutemov" , Peter Gonda , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , 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 , "Yao, Jiewen" References: <20220627223808.ihgy3epdx6ofll43@black.fi.intel.com> <20220718172159.4vwjzrfthelovcty@black.fi.intel.com> <22d54786-bc12-ecc5-2b37-cbaa56090aa8@intel.com> From: Tom Lendacky In-Reply-To: <22d54786-bc12-ecc5-2b37-cbaa56090aa8@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL0PR02CA0012.namprd02.prod.outlook.com (2603:10b6:207:3c::25) To DM4PR12MB5229.namprd12.prod.outlook.com (2603:10b6:5:398::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22ac99c6-3ca4-4f6b-626a-08da69d33c75 X-MS-TrafficTypeDiagnostic: CH2PR12MB4954:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n0jV8ustxVfArM22H2r5d9vfqpgMfWVEjhRN8vkhvXsosoiiLR7jWz9z13Vra6oNiBwDJPbtkIdHzyTanevs4yhs5W72UC/235m+ubD2Xid3jVHYFxufhOXjXPbfxFQFQRdDb7M9qFaXZ4KKGLm1FGaFZhkNSrIB4q63+E9+nncGDD54HjUqNlMfDs3aZQ93noiGVdI1SjnD5yoWs6oK94pCKWn5u141g/60rV++ToR2BjcMjfSarno6nYTvwhgZJ+Yd+hFBsAwe4dSxY69qMFzU0up1WvCu2GKDJc3WehbXksSVQxwr81hOiNNAxPTCVwCsyTfz+z7a+ACIUlD6ejqAf1rpSxugI6Qa4fzc2SIMOV8fikCb0lBCkNAQUIsjxcKtpxsP1ZD/EVrcUOxl9vla50Oc5kXbYkTZaD88nHeBvYLbes4L/bFlglEUh/mJiWqv6NrUP6Ihuqtz+dOq0JPsGZ5OvWoFDt/MiVNIXRtWmOOdKNVWCX+EUcppfDvhU26rgbOUNDD7OCeMHEid9NNaEqJnZB6Dyb6MF+ZEoo6kE0R5Nk7kohaYMH4XxTkejkLzOGoSpw40uhzo+7oz7cG9ucBWrYpfMGuEFZ6ZIYLYGBlG0L6r1fjygU8ioPVTM280EFucaB15mGWXTLwaShNAUMss2J9rnI/qtiPmgWd9Wq3JxSK7c/MLokJK89JCk5B04DZ55Wh1OmNKg7qIP1ZZlRZT9G1o+C1Vba1I9AMXkgE2hrAE65dtfHUzpBg8dzm9GrbipO3AaayUs9Lav85UuzJfbuvrX7YdR2RO71UV0BCgNvWK7TdeWMzln10Agi8nyPeL7DHPzxgYAFsqUQ== 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:(13230016)(4636009)(136003)(346002)(39860400002)(396003)(366004)(376002)(26005)(6512007)(31686004)(2616005)(41300700001)(66476007)(36756003)(6486002)(54906003)(478600001)(110136005)(8676002)(2906002)(186003)(316002)(6506007)(6666004)(53546011)(66946007)(86362001)(31696002)(38100700002)(7406005)(4326008)(7416002)(4744005)(66556008)(5660300002)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eElyWVhKbGRudnJZeVdMWnZEWWZyVGtEUHluTlZnTmFnMkdKak5hL3ZqQlUv?= =?utf-8?B?ekpsL2J2VHhiOFIxV01DZE1Zb1FoV3pkbllpTXlQTlVWaEhCelJpandqVSt5?= =?utf-8?B?cTBmSjd5c0l1WWovcVVsd3ZISzJhTm1INjMyWDZLc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TEtJekNXU09ZVzhlK0laaXQ5TUhoYWpTL1NLamlqaklZZDliWXli?= =?utf-8?B?M3MwQUM1SUtpM1lES3RKNzJUZkZrNnhrWit1NDA4U2VSTmtZSjI4cFVPUTZz?= =?utf-8?B?Q3NLcDdIY25CenpZRjhuaDVWQlFFekJIak1ucmJWTWEvcTVoazNuK2t0c0Rs?= =?utf-8?Q?27QV1fIhjKiPLXkirjqDuQA/d?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22ac99c6-3ca4-4f6b-626a-08da69d33c75 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5229.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 22:08:40.3581 (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: Ajbe8bKthiCBFfI6mPO8LxZaCnb1nFPXxEaq7UKy2tLrdNQCxeK9DhwjRjjrzO9Lg8vAE/cwfkVsXSdtwxG8bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4954 X-Spam-Status: No, score=-2.1 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 7/19/22 17:02, Dave Hansen wrote: > On 7/19/22 14:50, Borislav Petkov wrote: >> On Tue, Jul 19, 2022 at 02:35:45PM -0700, Dave Hansen wrote: >>> They're trying to design something that can (forever) handle guests that >>> might not be able to accept memory. >> Wait, what? >> >> If you can't modify those guests to teach them to accept memory, how do >> you add TDX or SNP guest support to them? > > Mainline today, for instance, doesn't have unaccepted memory support for > TDX or SEV-SNP guests. But, they both still boot fine because folks > either configure it on the host side not to *have* any unaccepted > memory. Or, they just live with the small (4GB??) amount of > pre-accepted memory, which is fine for testing things. Today, for SEV-SNP, OVMF accepts all of the memory in advance of booting the kernel. Thanks, Tom >