Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5640682pxb; Mon, 28 Mar 2022 15:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVmTCjsQoayjpqsnDXwRyd+iJn2XiseOFzNIsABcexRi11uD4owWiohs9qxCqZcrvTk3TW X-Received: by 2002:a05:6102:3753:b0:325:c20e:4b1c with SMTP id u19-20020a056102375300b00325c20e4b1cmr1676198vst.84.1648506122568; Mon, 28 Mar 2022 15:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648506122; cv=none; d=google.com; s=arc-20160816; b=Hf2Bfqld0DzQo1FzFvPzBJSXMRhozSCUKY9WUA0Wl9e1toQQwL5t/1+wV3eEJbmGar ogNCfU0Xi5enAuw+/vfW59rlU+BnOyqMTCF3PWr655t64TdBAhTlth5oXKzS8IeouY5d +f+KaHax4iP+fBmJcHXKrfYMB1Ngy88noQ0WHt6wZiLOvTKyqKKDCnYA4tNUOk2edYN6 1JJr7w/en528wHzx6fI34zwmgcZQpv/dWOYpXwGDZVV1/uwmHtr84VY8sA8C2OPpcNXl TdV2yDCYOOw1n0ltwW3a5+R4Y2jNxHeug0uuspMhV5wcCE4/Nn2co2lyEBIb5995QyZv N+oQ== 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=05ptE9SVdgyYngubrUPIdf4cY8YmtAFPjy8BGLAehgE=; b=w9FbStjcEbNAokWwIIH//YIlB6jz9bbDZLQyulqlMCMeSZsa3I5gto1OshV0R7/lV2 NId9g/wSnQoZvnOtWYoyJWiAZUoIX0fxPA90rbndRaPRavx+CY16m14laW9DZJ1cUhYY IY9thHxIXmOt/xEAmlh/bR9IXCouUKcJflKbVxGuaoNJeYF/cdZntNw4ZDV8uDrDkYAR dgRxBP44erKwvtJJB0Z8CL+ykm4eFNwzj1JZVa6SXIYBDijLN1f4IJFxszdT4dMBCrFz ckVmI8kpGsS7fQW2ceJnq0NK1/2lVXneJ1A2TZkoa209AQL+eBWQDoN26uep/OZk4rv3 E4Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="d0jcsE/t"; 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 3-20020a670803000000b00324c5c3c0dasi3418479vsi.796.2022.03.28.15.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:22:02 -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="d0jcsE/t"; 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3506D199535; Mon, 28 Mar 2022 14:37:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239682AbiC1JMo (ORCPT + 99 others); Mon, 28 Mar 2022 05:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235827AbiC1JMm (ORCPT ); Mon, 28 Mar 2022 05:12:42 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F7A326FC; Mon, 28 Mar 2022 02:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648458662; x=1679994662; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=BADStK/EoCj+rqPCYHQnLkncJNpermekoKEy0nC/TrA=; b=d0jcsE/twQnUIOQA3IbIr0Lt2uk6+Pse7Fp7JYysJARuFakAeLghKicB sRuEldkNb8qULdyv/wKw4Xhvgc+THQ6iPYzMErkR2ep4OnnaAz6A/ged9 5qz7uqjaAW+gy2zQZFvpZiAmEJkDljSz6/3hnj7MT+30Agdi5FZhJiuf2 qWk91aeoXZ1mkcffofjuTMQuv3raCj9c40jHbMXpHODLk8Av1FZ7iWPWZ uEXfPI5Lf0nYdN5w/uDJ+srLblYU79NKHmB0Cvf7cQu4yG41A710007U3 FwSQO0IHfY5PEpdLOg72H6HM9vo6fnqjyRUpcDBvBVjMRaqn578Pi2qqH w==; X-IronPort-AV: E=McAfee;i="6200,9189,10299"; a="345389398" X-IronPort-AV: E=Sophos;i="5.90,217,1643702400"; d="scan'208";a="345389398" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 02:10:44 -0700 X-IronPort-AV: E=Sophos;i="5.90,217,1643702400"; d="scan'208";a="719035063" Received: from nhawacha-mobl1.amr.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.254.27.18]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 02:10:24 -0700 Message-ID: Subject: Re: [PATCH v2 03/21] x86/virt/tdx: Implement the SEAMCALL base function From: Kai Huang To: "Tian, Kevin" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" Cc: "Hansen, Dave" , "Christopherson,, Sean" , "pbonzini@redhat.com" , "kirill.shutemov@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "peterz@infradead.org" , "Luck, Tony" , "ak@linux.intel.com" , "Williams, Dan J" , "Yamahata, Isaku" Date: Mon, 28 Mar 2022 22:10:22 +1300 In-Reply-To: References: <269a053607357eedd9a1e8ddf0e7240ae0c3985c.1647167475.git.kai.huang@intel.com> <926af8966a2233574ee0e679d9fc3c8209477156.camel@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.0 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,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, 2022-03-28 at 21:16 +1300, Tian, Kevin wrote: > > From: Huang, Kai > > Sent: Monday, March 28, 2022 9:42 AM > > > > > > > > > > > > > > > A CPU-attested software module (called the 'TDX module') runs in SEAM > > > > VMX root to manage the crypto protected VMs running in SEAM VMX > > non- > > > > root. > > > > SEAM VMX root is also used to host another CPU-attested software > > module > > > > (called the 'P-SEAMLDR') to load and update the TDX module. > > > > > > > > Host kernel transits to either the P-SEAMLDR or the TDX module via the > > > > new SEAMCALL instruction. SEAMCALLs are host-side interface functions > > > > defined by the P-SEAMLDR and the TDX module around the new > > SEAMCALL > > > > instruction. They are similar to a hypercall, except they are made by > > > > > > "SEAMCALLs are ... functions ... around the new SEAMCALL instruction" > > > > > > This is confusing. Probably just: > > > > May I ask why is it confusing? > > SEAMCALL is an instruction. One of its arguments carries the function > number. > To confirm, are you saying the word "SEAMCALLs" is confusing, and we should use "SEAMCALL leaf functions" instead? -- Thanks, -Kai