Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp792273pxb; Fri, 22 Apr 2022 11:14:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtewXLFoewyU4yWjVYRrjYo8LY2wGMm1xghzha7/OXuUcs/9TkMObsEgBGcJltuDp2pin2 X-Received: by 2002:a17:902:7c90:b0:156:255:c571 with SMTP id y16-20020a1709027c9000b001560255c571mr5594196pll.15.1650651250549; Fri, 22 Apr 2022 11:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650651250; cv=none; d=google.com; s=arc-20160816; b=eoN1T2c335z6kfuwdxQN1ldU6WY6xNCSG1YjxQEmqKQ9kPmJEjkbzqULgbIyB0yELY DheVc7h1QY2HZtoE9wgK6OfeMr3LmnziisWmvdIkuVVHCjF0gOHCEMz0/c3W1pjl5MEN Z0CPbZdLTkRzfcRNot+Vf9PGv7dHZDn/qlbek2Qmfvj6QmjtZ068PzFu70VKKbrRya4f +qzy2nwDzTPbrFwKvYM6KZmwFS7+JpoKoPLH1F0viH1IJPhXsf01a4rRhTZW45/Xwxk2 N46qyznI565w13ey6E9el39m/5S3myJq+6iWMu2wJsMU27Ot9/99qgb3G+OBkIz265a0 Sbhw== 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=NwCxSrN/BNQR57zjavSiigfdnU7ZRC0u58+zq+gaMwY=; b=XF+wTpaBWvvYuA+vjWU6J9jNqQx2VFBM+QCuQqiT9IiOpgERRnWIdDJYAq4XayiQUG FtnntEJCly9VS03D/6JQzzZv1IWbhfPeP5FbsDi6gFQz6ccBY3zmjhkEF4u+Y2ptl2vN ThRh7knFd1q4vA+8x6aoOrmFsXhjj4UQ4o2yM5frkzrEyQhDtMJ+6Bufs4hRWIePkBjZ /lQmG7YGzh05KxsN4xV4t58QSmpMjnej2ofBtwylJ3guJS7LCOO6Bc4l2Ae169O+9xvs 0I2Hm0JWlygApwjdD/VXzyeQJ1963yBgo6/CYULCc0YEhmBSdst6wygxMvP5d8C7q40c RswQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A3l2bYAC; 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 b14-20020a170902b60e00b001548692dbf1si2956683pls.597.2022.04.22.11.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:14:10 -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=A3l2bYAC; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFD4A39BB1; Fri, 22 Apr 2022 10:49:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382864AbiDTWj6 (ORCPT + 99 others); Wed, 20 Apr 2022 18:39:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233746AbiDTWj5 (ORCPT ); Wed, 20 Apr 2022 18:39:57 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF68EBC8E; Wed, 20 Apr 2022 15:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650494229; x=1682030229; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=i9q3aNzZ3vKoblpHcaO08gYbCC2rc/J10N6kSbmsDK8=; b=A3l2bYAC87Kih0YuSd09Mde9vijUUlUU4nYWNz8w3RXiah8dN2ljecWs 0jddChzYKmhN+LgK7L5jx749BDk2cUNhhZ1YG+yqVBNJdG4XJKOP26wDZ a6RcLjRKKAM9LBp7/lqYbm0MwmDvQ9aoVKQnRkyp3U5fni5Rc0YG/rKSS 82N7CCyrAoaDRMK7OliLNlh0dfNRW1sa0nxFCY/i+nJRkmO+boFCUl3vN AXwa96CCoTmW42i7WjcpS5JBF6vRq9edwlLaoiVtvsdJKzhgTlzs5wgzk wkeyHAhuRPzopv+/GiS4dVwzMOoe7fVG+LoFRFrlI890Et/kzvQM7FEhe A==; X-IronPort-AV: E=McAfee;i="6400,9594,10323"; a="264338791" X-IronPort-AV: E=Sophos;i="5.90,276,1643702400"; d="scan'208";a="264338791" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 15:37:09 -0700 X-IronPort-AV: E=Sophos;i="5.90,276,1643702400"; d="scan'208";a="727690932" Received: from ssharm9-mobl.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.254.30.148]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 15:37:05 -0700 Message-ID: Subject: Re: [PATCH v3 07/21] x86/virt/tdx: Do TDX module global initialization From: Kai Huang To: Sathyanarayanan Kuppuswamy , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: seanjc@google.com, pbonzini@redhat.com, dave.hansen@intel.com, len.brown@intel.com, tony.luck@intel.com, rafael.j.wysocki@intel.com, reinette.chatre@intel.com, dan.j.williams@intel.com, peterz@infradead.org, ak@linux.intel.com, kirill.shutemov@linux.intel.com, isaku.yamahata@intel.com Date: Thu, 21 Apr 2022 10:37:03 +1200 In-Reply-To: <1597240f-af03-66c7-a25f-872b2601554e@linux.intel.com> References: <66e6aa1dc1bade544b81120d7976cb0601f0528b.1649219184.git.kai.huang@intel.com> <1597240f-af03-66c7-a25f-872b2601554e@linux.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: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 Wed, 2022-04-20 at 15:27 -0700, Sathyanarayanan Kuppuswamy wrote: > > On 4/5/22 9:49 PM, Kai Huang wrote: > > Do the TDX module global initialization which requires calling > > TDH.SYS.INIT once on any logical cpu. > > IMO, you could add some more background details to this commit log. Like > why you are doing it and what it does?. I know that you already > explained some background in previous patches. But including brief > details here will help to review the commit without checking the > previous commits. > OK I guess I can add "the first step is global initialization", etc. -- Thanks, -Kai