Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1260608pxb; Fri, 1 Apr 2022 08:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxNs5MQqT149RdINO7FYH4hoW6/vBN+7xCBxa+SRp38L+UUtj11HSE62YBvx6JzGxiAjb3 X-Received: by 2002:a17:907:94d2:b0:6e0:23a4:ddb2 with SMTP id dn18-20020a17090794d200b006e023a4ddb2mr373090ejc.238.1648827501129; Fri, 01 Apr 2022 08:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648827501; cv=none; d=google.com; s=arc-20160816; b=E4++iFwGlL0RDjH7OiXkACIEHgIDCm84F9mGmd73KaCbtGaxaxzUa2Q2JwEJM2P3Hx QMas4mbeClBX0dsYeSmhjrGRBAZTG0NKXBxnWDrR+vv2zEpO6xlIYigBtcGbprtFSlGs 4nFY7zfYZCgQo1+9Ni/K5Om7DlzAd+ABYWYIYmDaANSohaWt75VG2qFrkWCG/6EJwnzf 8UgstofUmA6/TSYWxmjmc44kkJP4hM1WYkYd27m7SHa1KdSxQdqnLXbtw3mZNKAs2j60 V24cQ9FL6+JK4jPoZBXkdivj/hQbMykaM7Lq6HbtnV9PUpluS+gH0ypRRtDSXkvS8q5m pxOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=nRlwGnOHNrC84VaJlh7jxKkc76uvi+kXMfFoUZwRlAM=; b=mzBHlS80XsJwsglqdlgxBs6S0AQFTlMhxR+j3pP4Q89qfzlzVVNcnnHems4g2pE4Mj zr4wP+ZIbSGcQ29dChc8EZooNmOl5ks0sycSErH7UoN0IJxj4cAgHCBUBP8ZXaYUGhcA AQnVOxfF9A+7GMm0bzAb+QgQs8jWMzQQ47XLpwTEBnUuhhIh9/Rc1zaDWuDPlsEKPyKv gROmgAEcRkvJQrTql2J6YBVGwGgkIQOet8vy7YxrVhP5YW6+OiR3r6O1A2qU3nOmq7ia cXwFU2UpTg6nL8P/FaM0oznRIwXyVdmBcVQMOG0zK5hUhfsI/eSZ0sVLYv4hkm9ZWTKv RYiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V1mTgb3+; 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 dp13-20020a170906c14d00b006df881732e1si2062182ejc.0.2022.04.01.08.37.54; Fri, 01 Apr 2022 08:38:21 -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=V1mTgb3+; 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 S243126AbiCaXnF (ORCPT + 99 others); Thu, 31 Mar 2022 19:43:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243114AbiCaXnE (ORCPT ); Thu, 31 Mar 2022 19:43:04 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C10B01AECB9; Thu, 31 Mar 2022 16:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648770076; x=1680306076; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=VF/NN9r92wUVinR+mO2GEHDVkuJEklr84R2QBIjD3NQ=; b=V1mTgb3+YFgpUulzF9jwtCrznJ0oWop9X+2kCeDICdhQE7Hu9tUe2XIT PSCcl0sXznGGsN4grDp8LTd899l2aswFq4gKiHVSWSGQRqN90DzlwXoCb UgV8vLYqQof+4BhF8ALDAY6FUvd3ms1kBEz/5OMLdjeXrn6aqKKZAdX8w ZwbGPnKQ1Ptu0aKpUV6vPw8oKUwhxsI+rWYsRsQ60S+f2Pe+KF+1Zqgf0 PZiRr8iqYHGMmyzIUwYiaH8IUJVDpH1442CEF6p9nZMt6PczQQAr7V5Bf LxrB1S62uy8kr9PpKC0zeOBI3OHy5ObXoj7d6FmJz4JptcEI+cDjzq6qP A==; X-IronPort-AV: E=McAfee;i="6200,9189,10303"; a="257570444" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="257570444" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 16:41:16 -0700 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="650494426" Received: from fpaolini-mobl2.ger.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.254.53.114]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 16:41:14 -0700 Message-ID: <945248cc85926fdbee65a2ad9165d86205973340.camel@intel.com> Subject: Re: [RFC PATCH v5 024/104] KVM: TDX: create/destroy VM structure From: Kai Huang To: Isaku Yamahata Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Jim Mattson , erdemaktas@google.com, Connor Kuehl , Sean Christopherson Date: Fri, 01 Apr 2022 12:41:12 +1300 In-Reply-To: <20220331221207.GD2084469@ls.amr.corp.intel.com> References: <36805b6b6b668669d5205183c338a4020df584dd.1646422845.git.isaku.yamahata@intel.com> <20220331221207.GD2084469@ls.amr.corp.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, 2022-03-31 at 15:12 -0700, Isaku Yamahata wrote: > > It's really not clear why you need to know tdx_global_keyid in the context > > of > > creating/destroying a TD. > > TDX module mpas TDR with TDX global key id. This page includes key id assigned > to this TD.  Then, TDX modules maps other TD-related pages with the HKID. > TDR requires the TDX global key id for cache flush unlike other TD-related > pages. > I'll add a comment. Sorry I forgot this. Thanks. -- Thanks, -Kai