Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp627589iog; Fri, 24 Jun 2022 10:29:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTduWJw5M5HtCvB8eDlP1cNjO/359l1k6jVsfMNpXcIPUA4qSCWanuMKUqsJ2H0Tgvqtb9 X-Received: by 2002:a05:6402:51c7:b0:42d:f4ea:c09 with SMTP id r7-20020a05640251c700b0042df4ea0c09mr167886edd.319.1656091791950; Fri, 24 Jun 2022 10:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656091791; cv=none; d=google.com; s=arc-20160816; b=kX2k8eCIV0Cjwc/XaV4v0+JHWa4uWrYOGKknPay9jmey3yCMC6nj66l1Wl8h5cMxiC pMAUjqQSF8FvFoglO651JTLPXjm1ltWOAjnlvsUqh2ucmvl9IdqCC5WDv5FGpZApOpMd 6H7+mtliitxGp16Q7lt0WOupGMGfmUM0WY6ZqnFWg+M3mt+oTR94S+0s7kncuKZBUiId dBxHD8nKBVF9uUQyGctHvf+aX4+TsCE56RC+XRw1Pn8IsqmAm1bGqOBDUyvCOKsmF9z9 Fh4AW79A55imN2j1/CgDaryzYU91B6QY0V2lynLhufWqwNaB4HbVxcKATxEgdu0nhtLp XBYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JlWbCSGLtoiUV9s5S4I2VF33Zo7YdAO/mkxevgyN3qY=; b=SxNmccEsVnvNVtsOdmGK5OtiJp9qPvcm0r+aU+63RnU7nSZSejk68oeBxE8zNzSGSY 9k+mQDE22YKA+0WDQrRe+igFQTp+6UWvA9py24ublzlAVO+NZ2V+F2rHXNnUp5MuU8K7 beU6qUV5aWmrcDcTf3J/aoYJGE45Pt62hmQL2v2IPYM0o46ATb4yLvflDjffWOIL4TBh J3MstSyyk+zvzjfvAyEgejTGFuzDs5UhxVD8zSIzGo2cBgf6wxay26mlc5NjSdHLS1vJ IkMPxfdzR9k8UR4v3r+pgmJGicKM+fu+iwEMFougQLpjT8Fg0sjBJRdWLT/Rs9U9lMqW roZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="nJBAU9/t"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a50c356000000b004358dfbaacbsi3638120edb.405.2022.06.24.10.29.22; Fri, 24 Jun 2022 10:29:51 -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=@google.com header.s=20210112 header.b="nJBAU9/t"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbiFXRWx (ORCPT + 99 others); Fri, 24 Jun 2022 13:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiFXRWF (ORCPT ); Fri, 24 Jun 2022 13:22:05 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D9E04B43D for ; Fri, 24 Jun 2022 10:21:39 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id a11so3499199ljb.5 for ; Fri, 24 Jun 2022 10:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JlWbCSGLtoiUV9s5S4I2VF33Zo7YdAO/mkxevgyN3qY=; b=nJBAU9/tj07UZN5FNXK9+/KHQEQgAEeFhyuesPS5GOApEHjX+EZ8Y696xGVH4AETeS ozyG1usKOWwfHkZPditLB7l9QicK4TkDG2HiCWPdki2MlZX1iL4p2yuf1q1Jb071k16n jiePdSJPriiouBDtb9EghNbRp0ss52hqUMfmne9fPcanCttDFory5YyqoHUCWRNAP1ML G72DpjEFAMUtxUL2Kktl2XU6YrKJ2ZxvnZfUghkVW3zPxR9Uv9hUFaLflu9AER3lo/IV eIhOUNmapsoBDrQC9vrn4kpCaBRBhq9RHdMCy6YSNwLoY0lGPtuf9lKqoRHV+rzAh1jV yhCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JlWbCSGLtoiUV9s5S4I2VF33Zo7YdAO/mkxevgyN3qY=; b=dOw0Zic0yjJxRVH21/3lhnWbaGNSY3699d9GSHsD1KYwaUU/+dIMCMChOMgRzjIwlW QJW+2qI237zV0k0hFoFzp+00dss+vwEmm4TJ3xvQjouWoN0pyD0qctNFRxaWER7x0fHh VDSkSeNeMDNs24PbA26rNtH34Aq4ALxkJ3p2CPJT2wqfAVDaXg4zb4ZKfrUjc+c+5ToY sawf9SoUzSDv3DtdbvNyW5JgS/MFxPpU+k9w9xNGWJ+YnU0O04VeHPztzkkTVhoMIpXp QL1ec4lk17tD6iOjFm7aer0KfGDg63J1OsNzhE4bHDMbw7D3ye36zzNtEqJszqB9fI3S 3YhA== X-Gm-Message-State: AJIora+eiEdMRMeXfo5BCjML6EgwGZv+lShc9xaes1KXa06rrdKcZN5u SMwS5DSJiIzeDNDoDtF2/65eMqTc3IOBrCc3JRwggQ== X-Received: by 2002:a2e:b911:0:b0:25a:9942:4171 with SMTP id b17-20020a2eb911000000b0025a99424171mr18800ljb.426.1656091297292; Fri, 24 Jun 2022 10:21:37 -0700 (PDT) MIME-Version: 1.0 References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <5af19000-4482-7eb9-f158-0a461891f087@intel.com> In-Reply-To: From: Peter Gonda Date: Fri, 24 Jun 2022 11:21:25 -0600 Message-ID: Subject: Re: [PATCHv7 00/14] mm, x86/cc: Implement support for unaccepted memory To: Marc Orr Cc: Dave Hansen , "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 , Mike Rapoport , David Hildenbrand , Marcelo , tim.gardner@canonical.com, Khalid ElMously , philip.cox@canonical.com, "the arch/x86 maintainers" , linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 11:19 AM Marc Orr wrote: > > On Fri, Jun 24, 2022 at 10:10 AM Dave Hansen wrote: > > > > On 6/24/22 10:06, Marc Orr wrote: > > > I think Peter's point is a little more nuanced than that. Once lazy > > > accept goes into the guest firmware -- without the feature negotiation > > > that Peter is suggesting -- cloud providers now have a bookkeeping > > > problem. Which images have kernels that can boot from a guest firmware > > > that doesn't pre-validate all the guest memory? > > > > Hold on a sec though... > > > > Is this a matter of > > > > can boot from a guest firmware that doesn't pre-validate all the > > guest memory? > > > > or > > > > can boot from a guest firmware that doesn't pre-validate all the > > guest memory ... with access to all of that guest's RAM? > > > > In other words, are we talking about "fails to boot" or "can't see all > > the RAM"? > > Ah... yeah, you're right, Dave -- I guess it's the latter. The guest > won't have access to all of the memory that the customer is paying > for. But that's still bad. If the customer buys a 96 GB VM and can > only see 4GB because they're kernel doesn't have these patches they're > going to be confused and frustrated. The other error case which might be more confusing to the customer is their kernel does have these patches, there is some misconfiguration and their VM boots slowly because the FW uses the accept all memory approach.