Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20028762rwd; Wed, 28 Jun 2023 18:45:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7SWpP3knl7bGZ9Af8hKNzbNQTa9R8ZCQKH6yhE7X1r00t9stoVZLsKgHkZsryGonlR/Mr X-Received: by 2002:a17:90a:1a53:b0:263:5d1d:1752 with SMTP id 19-20020a17090a1a5300b002635d1d1752mr321511pjl.2.1688003155690; Wed, 28 Jun 2023 18:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688003155; cv=none; d=google.com; s=arc-20160816; b=DeYr4AiblEmLBLJkUE456UvdCQyFViO9H78eEj+IaPwWb87u3/WlzILctBpxbSILdn JBNSh9syZ0LwSlAcEhfl0bOBoDZepVmEkD1fP11/cst12DSJm40vheRk78Fln45m2Kfo aztincMUlDqykRBkYIggmsh9jd87Rnx/7lntLQHzekUDEpPRtmWksPdcmTz3cDpLZTkv 8pyNnLMlEBbQ9vnmn03trLifxDWXiEQaeRNm0Nd56VTRJPrqEb1i27o6ztTPF8QbMpk3 GkJjhsvEuMB5fr1Z2jIxXesdZFo2xazipcHvbrmNQmTQDuXnU628lK3CrDOHa1YBzGSd lj/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+uZllPu/GjCR4e2/9X5DmiYdUUx70V/ZdKrYHY4f124=; fh=faSZBJjCCcEG97URGnY/tJvDf9HF26J+zAZzRNZ0yls=; b=ZLxn9OiemYBh/rzknOJRa8P7iRbu4bHFlnrHxXI+JtpEVwcvXtnMr+y4K7KSE23Z9C uSlgwj90Z/r8Dmif8ABCDGNrZiyPSluZGI8kZQwE5WC7yOMla7Bq6En15s2m7VmBKXB9 lDrxloCqLG5CjOSpkADuT9RW6xAHmdHC8nRmJVH1xvZ9rSYlB3rW9psQMriZAy+gNtGU xT+GvIIQ8F//uheF84svcf5IEmUP/BNNckEBnz1b+caNE11CvGYOm/M5Y27VDNHm6HWb kAU8KABKHEaDLN/mPf0ZxFFwwnL0MJy8SRvZXKQKWwCi0RFtDV2pmahGq12RYpw60KbY EHLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dua44uzS; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my17-20020a17090b4c9100b0025bec4468c2si11294214pjb.167.2023.06.28.18.45.41; Wed, 28 Jun 2023 18:45:55 -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=@intel.com header.s=Intel header.b=Dua44uzS; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbjF2BBb (ORCPT + 99 others); Wed, 28 Jun 2023 21:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbjF2BB3 (ORCPT ); Wed, 28 Jun 2023 21:01:29 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7DAF212F; Wed, 28 Jun 2023 18:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688000488; x=1719536488; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wvcp0oNxhAZF/jxUcax6I76yc5ZgM67abJCJcCMwEVU=; b=Dua44uzStFNn/I53Kgp9FOoplvE9I2dt2fRTT+57MfImjDk9VMvkUh+3 Tpp66o8u0OpQwoV7xSK3eo/2RUAPSv4cFVuRd6aGh2juUoRF+CJFxQuLS I4NXivDNXCakXlhXiMBLUPsDzR9SyLA3nfbC3JBz0PY2c2WA0hFTSg+kx ehk2I6SjZt7EJiWt2V8d4am04LgVXbNFbLx+uWqtp75oU00qcHgIwTqLh ZfQi16jVn43xJw2EedCRJAeJuQqvUcxGxRdF/ox4Y2832JJHFbZiZce6m MJtl8D90OMzLOuZVIjIyJw3+/9ro8JREJDEXJuvKr/5hx6Jgraw+tdCmU A==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="362038594" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="362038594" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 18:01:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="1047600854" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="1047600854" Received: from yy-desk-7060.sh.intel.com (HELO localhost) ([10.239.159.76]) by fmsmga005.fm.intel.com with ESMTP; 28 Jun 2023 18:01:21 -0700 Date: Thu, 29 Jun 2023 09:01:20 +0800 From: Yuan Yao To: "Huang, Kai" Cc: "kvm@vger.kernel.org" , "Raj, Ashok" , "Hansen, Dave" , "david@redhat.com" , "bagasdotme@gmail.com" , "Luck, Tony" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "linux-kernel@vger.kernel.org" , "Christopherson,, Sean" , "mingo@redhat.com" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "tglx@linutronix.de" , "kirill.shutemov@linux.intel.com" , "Chatre, Reinette" , "Yamahata, Isaku" , "nik.borisov@suse.com" , "hpa@zytor.com" , "peterz@infradead.org" , "Shahar, Sagi" , "imammedo@redhat.com" , "bp@alien8.de" , "Gao, Chao" , "Brown, Len" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" , "x86@kernel.org" Subject: Re: [PATCH v12 00/22] TDX host kernel support Message-ID: <20230629010120.odlfyf7ka7oexdls@yy-desk-7060> References: <20230628070418.6dky65allycok4us@yy-desk-7060> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Wed, Jun 28, 2023 at 08:12:55AM +0000, Huang, Kai wrote: > > > > > > 2. CPU hotplug > > > > > > DX doesn't support physical (ACPI) CPU hotplug. A non-buggy BIOS should > > ^^ > > > > Need T here. > > Thanks! > > > > [...] > > > > 4. Memory Hotplug > > > > > > After the kernel passes all "TDX-usable" memory regions to the TDX > > > module, the set of "TDX-usable" memory regions are fixed during module's > > > runtime. No more "TDX-usable" memory can be added to the TDX module > > > after that. > > > > > > To achieve above "to guarantee all pages in the page allocator are TDX > > > pages", this series simply choose to reject any non-TDX-usable memory in > > > memory hotplug. > > > > > > 5. Physical Memory Hotplug > > > > > > Note TDX assumes convertible memory is always physically present during > > > machine's runtime. A non-buggy BIOS should never support hot-removal of > > > any convertible memory. This implementation doesn't handle ACPI memory > > > removal but depends on the BIOS to behave correctly. > > > > > > Also, if something insane really happened, 4) makes sure either TDX > > > > Please remove "4)" if have no specific meaning here. > > > > It means the mechanism mentioned in "4. Memory hotplug". Ah I see, it's fine to me, thanks. > >