Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp314111iog; Fri, 24 Jun 2022 04:43:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgaviSHdFWjhwzXHNZTxiqBitZf/n7FBL96HwWpUpji/4rPJWW1qflJqG/q7YB5sT0F/0/ X-Received: by 2002:a05:6402:2933:b0:435:80dd:f75c with SMTP id ee51-20020a056402293300b0043580ddf75cmr16759041edb.302.1656071015801; Fri, 24 Jun 2022 04:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656071015; cv=none; d=google.com; s=arc-20160816; b=O/Bw4Y7es7VW9PCBHGE4GuSAJp5CfCHwD5ll2n1sZbcrMxgqcKbbHzKBWDZwNClprF QL2cdgLoTLk+EZYKp1nwmJA/GCcvm/BP6yaP/t6ElP9ApqqEZTD1WWWc2AF945LIxNA5 siD9twjyeHIsEPdVb8vVzx4r3kRBN65Pv2iwYj+5dCCDXyOg2dS6Oam2oeLhsEccnOzs 6zDth/BHOJHsRiR78zprYq8bUfu4v6F82TCqcFpyva9uOlCqrXg5PIjOfHSClX0j66gZ xugGGJIZCeKNrm2c+vd9PDxY4KJALp6RgJYLc/2bqi0DtUQRos/qHRNzYDGcoF9fAk7C aHmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=ZhWhzl9LbpMV6vkMkcRE9zWZ7VFpIa+hm9dUMjKvVp0=; b=OCwgPyVxzkz7QeOy8h5O6emwI5xjPcEcZLXPzbe3B3Aa6ihAD46MrPydDviryGqa2h JyQ+Y2mx01wvu+lFDdRDQg8ccfUQNqdB1eTLj4GhHjoBMag/TMPlzlB0vXKKEKFlnaGV ECrVQD4MKxNXPimwDrqs9gh2iW7LKTD47pOa2xU33qVYE3B9p4UFluSql8jY0uu7ile8 NiHqvrN2yFxIW3USKI2M+w0OMFnoNGg0DCP3/gOUcuJ3Z8zlFqYx3D/VN3IT4Ut1jOcb mOlD5Ib7NdXLdTa5B2SPWnMrYO3kXQZdHONf8AH3wnzoJbO4rxZkWFfaObACS1zcL0mR 9FyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jMdWAyzj; 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 cs15-20020a170906dc8f00b00722e779f365si2413665ejc.376.2022.06.24.04.43.08; Fri, 24 Jun 2022 04:43:35 -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=jMdWAyzj; 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 S231302AbiFXL1l (ORCPT + 99 others); Fri, 24 Jun 2022 07:27:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231138AbiFXL1k (ORCPT ); Fri, 24 Jun 2022 07:27:40 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39F2B794FB; Fri, 24 Jun 2022 04:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656070060; x=1687606060; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=e5RqOyieRrgpceUiVHqgjF0xxjOK+K1asIzYt45g8J0=; b=jMdWAyzjGxDgjmOfZKj9vuhyaknk1UbwZGrfiM2qh8UkMpp6tJ+4L/11 ZdVfTrROJme4RmxmsivU4tqrbEhYPdrVm02nIuKTKr6Irh7pTmvFOfZnJ QNsJtE4NfSeS1lPIazJy0kNWT+hPDDo8pclUdrKTtuubn2ccglR3SDD1U rlPlyWnu25OYiqWWHHcXKnhHc3IpEb6m3o1kgbSdceLbV6D6LOkI4MMu/ UASLPI2XWAdnNchfGntxBYTlVIa4h+XneJr6JnqBy3s3fVUGqkMASebmJ t20ttW+fjbn6cyeGRFG0IRKD2HmTcgGBrNEuULhrCjNy6kVM5hewElmPs Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="306447594" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="306447594" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 04:27:39 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="539254648" Received: from jvrobert-mobl.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.212.99.67]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 04:27:36 -0700 Message-ID: Subject: Re: [PATCH v5 06/22] x86/virt/tdx: Add skeleton to initialize TDX on demand From: Kai Huang To: Chao Gao Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, 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, sathyanarayanan.kuppuswamy@linux.intel.com, isaku.yamahata@intel.com Date: Fri, 24 Jun 2022 23:27:34 +1200 In-Reply-To: <20220624023916.GC15566@gao-cwp> References: <20220624023916.GC15566@gao-cwp> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 > > + ret =3D init_tdx_module(); > > + if (ret =3D=3D -ENODEV) { > > + pr_info("TDX module is not loaded.\n"); >=20 > tdx_module_status should be set to TDX_MODULE_NONE here. Thanks. Will fix. >=20 > > + goto out; > > + } --=20 Thanks, -Kai