Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3866439imw; Mon, 11 Jul 2022 18:13:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ssTwhBGpGqebMrDt65/r5IOYue1D0At59ost1+YBE78ivTo/I2tw67oM3ruqeQikUK5ATo X-Received: by 2002:a17:907:2848:b0:72b:5ba5:1db5 with SMTP id el8-20020a170907284800b0072b5ba51db5mr6742462ejc.703.1657588430041; Mon, 11 Jul 2022 18:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657588430; cv=none; d=google.com; s=arc-20160816; b=GmBZeb9s1h6GcWDV73iv5p2iXD9O5PmCZ0NAIXgawQA8nBU12cMWEwGzfhLO1NODQV EAmAjOuX99TSV+tPcH2pE36GYrBQ2bD7trrM2qXxq7TQcxkQAFNkfDSGjv1QQq047CfL w4JIKhw62QgM+gIONg6TP8NE6JZ3o0BUM1yBZ61ttwG0qiDhf/I7c9ulsZXeMy/uxl21 OoA/cv+W/gXFzSVlnhBd7aeYrXpet2Ag4uYo9lK1d+RohKTjD3tQ0WohGQMAVtLYuvEI HoCJQyGRmm01wr6WgCp9j3LlkBYRXJKpBKk5Slj+dFgZRDGJp0gdMOb9iJRpDKeFR/5W MwbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qKjoEwy1ne1D5LbdAqN/NueJz7pPtNyuHan8nYhGCr0=; b=abn+IyymUoqQFzfn1WE79cdSibKU2vj0XpA3fe5y+eiKkb0k30+xqp4l6BCPFfMndH ul059qIl5U6u4x0kFz+d+Xs2lgdPrp353hmgqqkVMR6T0ifvnYW9aD94MYWoC+hIfdcc Jp3EKa17vSoT4TL2ifdr5zhYFCOaA31Tn73/koWdUQIb/kCcZ5tEZw0ArWN/mPQO3Iol RdnIAW+HxFeiOk2+uS1j8f1LrAXa9hhFH8/XiR1kTziJRCBFemJ4qAOerlqNZ5xQFvBe 2aMIKvdgQwXVDugrQhfHv7O2gxsC1d5gzrdNvjwPQzG+sP2sTPAyb24QzbUMiGX6NaIy NcJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="ZEMW/bBw"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020a17090632d300b00722e6c16c85si11060183ejk.969.2022.07.11.18.13.26; Mon, 11 Jul 2022 18:13:50 -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=@gmail.com header.s=20210112 header.b="ZEMW/bBw"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbiGLAkB (ORCPT + 99 others); Mon, 11 Jul 2022 20:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiGLAkA (ORCPT ); Mon, 11 Jul 2022 20:40:00 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA4B2DA8B; Mon, 11 Jul 2022 17:39:59 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id f11so5867589plr.4; Mon, 11 Jul 2022 17:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qKjoEwy1ne1D5LbdAqN/NueJz7pPtNyuHan8nYhGCr0=; b=ZEMW/bBwXkZP9Tbez9uvhsX/NVaMgyPufwW8z2Bch1vWFotJBcPAC+QW92ikJje0bA JmU5G+bozCvAXo75dcNIpWuQd1tkqamPpN79CgH1APEMVWgZ+939zeNcyXAMVf3jpsFU rYkvnutc50uo1nb8hTsRBBSTXqgXWl+1c5YTU3p4kSq4A2ZXaU2tPW8aMMAoPoC51AJb y8rG53UGd297osyDzg6z7NDpKNNtSoeNU9+bOpwpaHDFcl8EjFytAfQoo49D9R9DSCPt VyMklcKZFKQbNaId98Uiu5y/TnfLFj0OHI6pBbYsZdnICSZyL4ZVXNNJjT4O0EAF6zPC KVIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qKjoEwy1ne1D5LbdAqN/NueJz7pPtNyuHan8nYhGCr0=; b=r8pRadv4sWmN7UP84/C3s0EGV5t+dt9rp4S2y2hYvP/b2mQTrp2/vrgj3o8HFfKXlc 3sUF0J9rY2a7UgohITTIpEpDKR60Z6nqhWh1UdKJ0b7LLE6ML0lLSmYFtIzkH2sJ5QON fa65u5oPgdkcV9aimdxLq4YOtXqcfDsbmm3L3Ukeq6abyxtjzTpyYq47iDLC4/vaA5sM Ao8Th6Z1PYkX7kFqc9gabWtMrW4GxEJCmznQoyDLcbcEFIj+E4nIyNnWtT2h48ybZK+b moj5epYsSWZJ2jBWNPJx09Dtgm5wrZ8/uVkVnS9ADbjPE7TLxeXoPWboC6ZDioMCGO1+ JPUA== X-Gm-Message-State: AJIora/MLixmBhBLWZiNnHLAVCoWkkSSB8xK0PrpXE5++hZJL9W9dSFF aUJXWEfsAk+Gk3tNpJtERL0= X-Received: by 2002:a17:903:120e:b0:16b:8167:e39e with SMTP id l14-20020a170903120e00b0016b8167e39emr21099496plh.165.1657586398780; Mon, 11 Jul 2022 17:39:58 -0700 (PDT) Received: from localhost (fmdmzpr02-ext.fm.intel.com. [192.55.54.37]) by smtp.gmail.com with ESMTPSA id o12-20020a170902d4cc00b0016c433f7c12sm3312893plg.271.2022.07.11.17.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 17:39:58 -0700 (PDT) Date: Mon, 11 Jul 2022 17:39:57 -0700 From: Isaku Yamahata To: Yuan Yao Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini Subject: Re: [PATCH v7 010/102] x86/virt/tdx: Add a helper function to return system wide info about TDX module Message-ID: <20220712003957.GC1379820@ls.amr.corp.intel.com> References: <2e722b58684c3cfbedda7d2a5a446255784a615e.1656366338.git.isaku.yamahata@intel.com> <20220707024602.i5ym5nlnps3cjvj6@yy-desk-7060> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220707024602.i5ym5nlnps3cjvj6@yy-desk-7060> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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, Jul 07, 2022 at 10:46:02AM +0800, Yuan Yao wrote: > On Mon, Jun 27, 2022 at 02:53:02PM -0700, isaku.yamahata@intel.com wrote: > > From: Isaku Yamahata > > > > TDX KVM needs system-wide information about the TDX module, struct > > tdsysinfo_struct. Add a helper function tdx_get_sysinfo() to return it > > instead of KVM getting it with various error checks. Move out the struct > > definition about it to common place tdx_host.h. > > Please correct the tdx_host.h to tdx.h or arch/x86/include/asm/tdx.h Oops. Thanks for catching it. fixed it. -- Isaku Yamahata