Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp657749iog; Fri, 24 Jun 2022 11:06:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sEeR7f0E3bKTwF2M8DYj7AkZrEN/LyFE3yN883NvsAD8hgEhqLtES7opXojw3fKfit/bFb X-Received: by 2002:a05:6a00:1748:b0:525:4731:7f11 with SMTP id j8-20020a056a00174800b0052547317f11mr221274pfc.72.1656093977897; Fri, 24 Jun 2022 11:06:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656093977; cv=pass; d=google.com; s=arc-20160816; b=q7YO8xMHn+EJkDDn5NzkH8RitSEVtPNBnJgAwIWgMb6BeuNpIbHUdIEBETOdWdk5On sNbVtHngYdQVAA5Vd2kIH7p853d9a3EcvcJ2GIf2S/J2UnrG+ex2Z5ju7uqlkKWZGl5L 04nAincawf+nwO0jjakpZls+FXjlSgDJ4wso0iw29b8cf1TJhl7UC/9KshVpzXv7Izdk peenfctWFbIywyG3I4YtfG6+YA6DEiq6s3Sn+IYeboT2Lg6uxyIYUgT/qpJbTbHJcGWm pOrpqZE+d+kCcG0hTv39IUEbE/CdCuTyU3rn1X2HG7xFuMjmlbTXBrHzCixuMdmztZ/8 /PjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xetGd/YONP5ehNaFXnqyP8R5U9RMF3G7fqt1k0+SSI8=; b=NSU19MwSnNUlFnQFijUCQVKKKfZ2hWs+uFJP9vJkkmPGr4cuesDdqoDnGgEYRa4dlP iuz0PO2ZFlHRSG6RWsG2AIs0e6D8++qV168MEdi+7ED17ZsCgoDHv8oUdtBGHrMgTM5n p5syAKccD4o8VGZK2/cSw2RjnyCP5rr5UW4FAnxNsvhqZO0NkuF59vDCDOWKu5pW9E/h R1nrY4QtZnnA+aa7rnwjGzC5uucNeW/Wjl32UAAkGS1+gtRH8Dek76nZUbAELxt5IMCE RQKAGahoauGQDwVXXA4WWy1hgWc7TGBsluZ0gmBHSZD6qtP0u6R6DfobYX5W2sIid3nQ WXZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=gHF0cj+d; arc=pass (i=1 spf=pass spfdomain=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 v23-20020a170902e8d700b001676e7406edsi3774179plg.195.2022.06.24.11.06.05; Fri, 24 Jun 2022 11:06:17 -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=gHF0cj+d; arc=pass (i=1 spf=pass spfdomain=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 S231478AbiFXR6h (ORCPT + 99 others); Fri, 24 Jun 2022 13:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbiFXR6g (ORCPT ); Fri, 24 Jun 2022 13:58:36 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2085.outbound.protection.outlook.com [40.107.220.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE1E03F32D; Fri, 24 Jun 2022 10:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8BqRmGR1CCOykD+272MO92wzOPkML9/4PQdMOj9xoKOeXrulFnzcm+rXmqENdjRiIseV/RGQBhdsFd4iaYhLaTNkh3a7j11jQvIIW2ymKg5BZXLbdA5ESJE1r4wZZ3DAi8GS77VpBQilYcj3Nt0FlHfV/a2lcsaN1r2/gJzj+epm3VxzuunJti2B+srnEAsHjTeKpOzihn8zRS6OQBKhF4gBULHmdIeaaFW2v92EwsKpnEA+0xRO0RAiplihYY25fxl25XGYVEuYpZhzsXcrSoDXC6ORvQbkldWCB+WpK5eODCaXwYmsiJK/8Iy2up8XiWXHOSxceWYNSmGUA+BXA== 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=xetGd/YONP5ehNaFXnqyP8R5U9RMF3G7fqt1k0+SSI8=; b=XzRW/RoZFar3UsajBt53rlnU4H2M8yMmpJVDnQQJx+Hi2UbpTgqwubSVBBKm7KayftS5i3vmRRu9+/tQBj9lE8XoJLjwmpAi2Y6PqDkxOM+GyAZhR/7T7R6fc5FqkEVG1vsz3DJ+0hsPCPqRdwTiC2z+nl0P0TTGyo79+57YEffSQ1XpjsMriJyv7C6TBwIKbGMlZ9XVga+yEHbz3dCVye8AowesEs2g7Vgl7M3rsVQ/UJmnOnAZr8gWrzpSQTnT8VLEOwuBGRb9fPZzuevIeMhYbgW4UEIkwq6pdjY3ShL4EQQc2A2CY4AHb/TNwY/geWUWMsiHHfHIKHuiW6zV6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=google.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=xetGd/YONP5ehNaFXnqyP8R5U9RMF3G7fqt1k0+SSI8=; b=gHF0cj+daV5bwyISCr9hXvsXRr5wHqsxBS0v0wCp7ehCdeFJoiqmaGy5pKQy/hmsnT0zEH/qFIIR7iN6TKRF0kZnrhW0xnPRn4AZKtaDvbtLsNA3JfGOz33724AFTiOiWSzSAwF5kGxfZ8RHdbutvkYGF3GUHMf4iUC8z7WKykc= Received: from BN9PR03CA0451.namprd03.prod.outlook.com (2603:10b6:408:139::6) by BN8PR12MB3171.namprd12.prod.outlook.com (2603:10b6:408:99::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.19; Fri, 24 Jun 2022 17:58:33 +0000 Received: from BN8NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:408:139:cafe::83) by BN9PR03CA0451.outlook.office365.com (2603:10b6:408:139::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15 via Frontend Transport; Fri, 24 Jun 2022 17:58:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT011.mail.protection.outlook.com (10.13.176.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5373.15 via Frontend Transport; Fri, 24 Jun 2022 17:58:32 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 24 Jun 2022 12:58:32 -0500 Date: Fri, 24 Jun 2022 12:58:16 -0500 From: Michael Roth To: Peter Gonda CC: "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , "Peter Zijlstra" , Paolo Bonzini , "Ingo Molnar" , Varad Gautam , "Dario Faggioli" , Dave Hansen , "Mike Rapoport" , David Hildenbrand , , , , , "the arch/x86 maintainers" , , , , LKML Subject: Re: [PATCHv7 00/14] mm, x86/cc: Implement support for unaccepted memory Message-ID: <20220624175816.vzwguyo2nd5k6toy@amd.com> References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220624174057.72dwo7v36lokmoub@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220624174057.72dwo7v36lokmoub@amd.com> X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9547963-9fdd-4c65-7311-08da560b274b X-MS-TrafficTypeDiagnostic: BN8PR12MB3171:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +GJ71oFw83iYnM/gNRE1OkdNOe2P+2A/wZVXhNhB5+4NivuP7ti0XOyppQ7YOkvXztZgdSMf4bYFiS2NvWer4ENJCK+FyvSmMOHypPbvrECp8LHoo/WnDKv4H6xyiCyBAGi3V0WRsBcpYOPYmGZY26cydEVjIfCFGNSWf3t+vPpQPZfu3mZkBvRZAkpADFpCZbLQj3nQ/q441njpSIA+79GicRcaNXGa1vZNT1watdOliYp+k0K8aSrAzEiK6CFhsWecHiYTBbQRqjXeAvWu5M16UoRPdJEogzLc3wOXgqHND0MutKBJW1AUyUGKONUUlGMsyrXNx0M+TXufD40xQPYBXtjL3Cx0JcBJyGafln8tuUMsbQkV33ZR+2ZO+HXIErlnO9CW+Dp4EEKKwCS6Fso+M+L7ew1f7il9HYQu+aSkWwypMUa/dOA/UaxbM374vwRLhdEg3iFZBSubAqs4+EpQLzzo1xE5BDpJbjGs/0Q+KPeqVjE3C0mXSA2ibbxeyDLocY8bwQ0WIWfKmde4HsPp63Sji15dzTCaK+xdlP85ojYwIo4T1h4X1BdzC9aB8rgvIF+vS/SiiFx+g3ZeoLIpNE4WoR0AQTkP8DU2BbOjc0pSXJJtzc2eACZrvs+Wu4Ue6wcARID1FTYsSHqaBPxfjdoU6GAJls2tcRwY16+dDrG9MXA9nYKenkpWhtF/zEJClStefV0SON5rwQdZsPxXyFTE5fIgNgheePe/ZnB04TkrjHyrtt+mFbW0b+V/H4Oi2ji+S4evprKdHrDKO/nstOVFQRAPL/uJwbpoOdgogOFVEpyH2PGWxqjBLByJebkWCuAW6/eP+RJ/oidlCQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(376002)(136003)(346002)(39860400002)(396003)(36840700001)(40470700004)(46966006)(2616005)(6666004)(70586007)(36860700001)(186003)(70206006)(44832011)(1076003)(6916009)(41300700001)(8676002)(478600001)(16526019)(47076005)(316002)(8936002)(86362001)(82740400003)(54906003)(336012)(2906002)(7416002)(4744005)(356005)(426003)(26005)(5660300002)(36756003)(4326008)(40480700001)(82310400005)(81166007)(40460700003)(7406005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2022 17:58:32.9450 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9547963-9fdd-4c65-7311-08da560b274b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3171 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 Fri, Jun 24, 2022 at 12:40:57PM -0500, Michael Roth wrote: > > 1) how to configure OVMF to enable/disable lazy acceptance > - compile time option most likely: accept-all/accept-minimum/accept-1GB > > 2) how to introduce an automatic mode in the future where OVMF does the > right thing based on what the guest supports. Gerd floated the idea of > tying it to ExitBootServices as well, but not sure there's a solid > plan on what to do here yet. > > If that's accurate, it seems like the only 'safe' option is to disable it via > #1 (accept-all), and then when #2 comes along, compile OVMF to just Do The > Right Thing. > > Users who know their VMs implement lazy acceptance can force it on via > accept-all OVMF compile option. accept-min / accept-X I mean.