Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp815878pxb; Tue, 12 Apr 2022 14:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa+U6LHh52ciR/xkG/fVgPiS+wN3q9q4bdqrUtuYxlUT2Yf1yC2J3Wb4GzkFvBKeBZKc3C X-Received: by 2002:a05:6a00:14d5:b0:4fb:2adf:dcdd with SMTP id w21-20020a056a0014d500b004fb2adfdcddmr6447004pfu.72.1649798040489; Tue, 12 Apr 2022 14:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649798040; cv=none; d=google.com; s=arc-20160816; b=URnHC5OluU6HZRz07Rtwiapt1HK9IW7o33Twqh3DWtKZMHzu0txltp4JpeebGtOhgj UDW2wVTau+DruenAhNx6VVFgHj+lN3m0WKNSXZS4t4AYVVYKYy2ckPdTiQLzALdJRz90 gTvTukKEDQK5AfJJHM+98f/NBW1SVGSwEXOLXMYrAc6KaIQrtDI3CKkbqPg+BfWmFnk8 HsLFfYRYyI2/Y8yjzPFmn5kUElGItC+Wyapvn5s8PosZRANT8jzigH2FcHk5b8JGfwLv YpRPDdo2iGL0l5dj7KUpSa4Q7fG6Cuvlmv7yTVIwq+hzGVuedSGgaG/tMF1Q8hX6gZxA nM/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=ptKTSSQV7PSWb+RQ3jV6yBOn0h5FZxJ0zCoshfu1u3c=; b=HIY7Ppvg5E7teHVnV10MIm4Iue19jVIXlywD39Ag0Jfzza8mjKOzxBApKTGA6KN+zX hP7L0kSqidbHnNzWz7NcNAnWhiUoNBtfTHolIftgNgd+TIFhczq5ctYjltu0IILVpr1B K+eslyCMyGw/31NoCtZGmRH1h/rwnfe5G0YDWqkg2GU63J9MeIEYewvYVPDbDPitw2CK esM/PjcPfE8oB99nt/6nhB05b8QObbKXadL9y0pGSIlb4uQN39l4FdB8vTFnRWO5XEzE yIioWMrjp/2HtUnG7553UQZ+QkOs+Bi+SXL1si/m0ZYfgmGaDT4I1cR0tDbtfYHm5t8X 5KxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j7eiuL0g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i13-20020a63e90d000000b0038171da8ae5si3882122pgh.661.2022.04.12.14.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j7eiuL0g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7219DEBBAF; Tue, 12 Apr 2022 13:29:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348567AbiDKQ3k (ORCPT + 99 others); Mon, 11 Apr 2022 12:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244728AbiDKQ3i (ORCPT ); Mon, 11 Apr 2022 12:29:38 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E0AF31215; Mon, 11 Apr 2022 09:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649694444; x=1681230444; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=/aHQQW61ELAgL2r5a3VbnJQ4DMr1/mD/2EjRSZ2mIbc=; b=j7eiuL0g24UYsefRpRN3vRTTS31A3QHFnQdOOxsREk5cUW34paTJRhID MDBZIEMiRzZUelROBU5LIuJWG9ZkbCroW2pZ2A52w6jAXltyBnCDQTTdD VG+W0fjx+KSMy3/jtCUdtDeE04Hcw/aKb6roDkFz2j3/BDwK5Kh2tJaUs wIS+VB05DZunau8C7hHRskaPXOFa8Xi24Ol5pLuDSHGKS0ur1gm4TCeZs AbZKuVGi6HyI0iSEDlcpViepjRf+xTEcqpOS5hJxZmYJ8Nie7LqQW0OV1 VTVtpBoI2APo93vBZM5j8pSrR+c/uRUbc2Ntvv3w8SKillAbzgo4wtahM A==; X-IronPort-AV: E=McAfee;i="6400,9594,10314"; a="261004641" X-IronPort-AV: E=Sophos;i="5.90,252,1643702400"; d="scan'208";a="261004641" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 09:27:24 -0700 X-IronPort-AV: E=Sophos;i="5.90,252,1643702400"; d="scan'208";a="507173559" Received: from srkondle-mobl.amr.corp.intel.com (HELO [10.212.113.6]) ([10.212.113.6]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 09:27:22 -0700 Message-ID: Date: Mon, 11 Apr 2022 09:27:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: Borislav Petkov Cc: "Kirill A. Shutemov" , "Kirill A. Shutemov" , 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 , Brijesh Singh , Mike Rapoport , David Hildenbrand , x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport References: <20220405234343.74045-1-kirill.shutemov@linux.intel.com> <20220405234343.74045-2-kirill.shutemov@linux.intel.com> <93a7cfdf-02e6-6880-c563-76b01c9f41f5@intel.com> <20220409175210.xik3ue3shpagskvi@box.shutemov.name> From: Dave Hansen Subject: Re: [PATCHv4 1/8] mm: Add support for unaccepted memory In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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/11/22 08:55, Borislav Petkov wrote: > On Sun, Apr 10, 2022 at 11:41:57PM -0700, Dave Hansen wrote: >> Let's just call out the possible (probable?) need for new ABI here. >> Maybe it will cue folks who care to speak up. > Err, why would you teach the user to go poke at some arbitrary sysfs > nodes when the accepting code can simply issue a printk from time to > time > > "Guest unnaccepted memory progress: XX%. This slows down operations at the moment." I guess that's not a horrible place to start. It's also not *horribly* different from how guests work today. If hosts lazily allocate RAM, they'll see largely the same kind of behavior. What ends up determining how much memory is pre-accepted versus being done from the guest? Is that just a normal part of setting up a TDX guest, like from the qemu cmdline? Or, is there some convention with the virtual firmware?