From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795407005; b=AjHwTuJM9sDDjjNB+qgyiO8LrkoOThIEPQfWgc5gJXWwEG/hFk2ych7Dbxp/MrzC07Dv PPkVyJ/8404vsMZt+2pK25kGobZOqvMZHSydXuo6l9eJKv+2tmKl7tnckAK08aDWSFcAN FohU0PCd7cpSJ05CNeajU/xFaDzhnbcTLdNw1JERRolF2yp/SqsgZFkAWcmrKtPRTWFEP Fa3Prky+XY6M4cFO9hbNDEkajDVDNdwVm1sHkfG4EkI4VOUpGZYQyPHB4uQmZlg0P2JZp zpKWazE3RDJFJZOhii3PzZ5TpttmES10n1I9J5YJuw2DoeufREq/fMaXry/pU12wnGg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795407005; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Message-ID:Date: MIME-Version:User-Agent:Cc:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=Mx1n/5e7VpS7gsTuSykTI7NgsVmEhfB+HEH46dRkddo=; b=wMMnJxl6hPRF1XsW3NEtuIqoXGhtxiH0GpiF0zYxvvuNTAuRth3EwytCrGWzZ457Srpz AfDoMjzSQaUU23P35mx0pZOFBIGO2oYXr/c2Enf6ffzDbXyOfDKLfW88fJ+WwENLFPY+F s0/lHwttz6lBS8vUyEZmvyoV+sM+8rcDaI4+9a1Eul2clMq5ouh8Pm7UCTC9Zw7D9Okih AbgstiVV3UzUX9iMVjW2M7W9K1Kh2VvnUPq6HlvjyH52bTI+0blZ1n0vWx6IOmeSdmaUC EGoU2thH7KyHiPeoQ48WeyFMHGofatz9hsOnlA3nOjl+DDf0Yh7laPg7h613leJKBvQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RDCM1A+V; arc=none smtp.remote-ip=198.175.65.18 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2943606A31A; Mon, 23 Nov 2026 04:10:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F2943606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RDCM1A+V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795407005; x=1826943005; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=Mx1n/5e7VpS7gsTuSykTI7NgsVmEhfB+HEH46dRkddo=; b=RDCM1A+VC80V9VEJLaBFraz8Z01p8ttOWJ2dnTIa2NWVLDX3HdFfmgyR jkEBB3fM3xt9M6P5oKQ4GzXqgoURL9/MiYPbpo/mzjG21mMNaBaxmOaOa yfIvnkSeG7R7TbMRh4cpbyFpchOLT1K5KcFbB6X7IU4vxttE8iv5Q6J3E wqnu0vPKYWohuGgtDpSRNvotwYLpB77A/Jsf2WQTkaaHMg3CaZSZLSoCC bJGrZY4FTTqfbx9h5oTTLeV0xL65lvZGflLN1tkBcCxinelCHjV868I3g rKuLeL4OApUh89F7b6wCmSI2ypxpPT7v2borG2Cq78BZSixTnjFGcBGbm w==; X-CSE-ConnectionGUID: Xx1CApvFSNuw3JPR6LlDqg== X-CSE-MsgGUID: bjw3/5klRrGRhCYnhLbwvA== X-IronPort-AV: E=McAfee;i="6800,10657,11974"; a="4219542" X-IronPort-AV: E=Sophos;i="6.27,227,1787036400"; d="scan'208";a="4219542" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2026 20:10:05 -0800 X-CSE-ConnectionGUID: d3caDCUYSjGdp6soPZQ3XQ== X-CSE-MsgGUID: YlHLHHteTHyHLDISXNhA0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,227,1787036400"; d="scan'208";a="11087055" Received: from unknown (HELO [10.238.1.144]) ([10.238.1.144]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2026 20:10:01 -0800 Message-ID: <158ce0a3-3bd7-4be6-89e7-ecac25027404@linux.intel.com> Date: Mon, 23 Nov 2026 12:09:59 +0800 X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, iommu@lists.linux.dev, x86@kernel.org, linux-coco@lists.linux.dev, kvm@vger.kernel.org, Jason Gunthorpe , Kevin Tian , Kiryl Shutsemau , Rick Edgecombe , yilun.xu@linux.intel.com, xiaoyao.li@intel.com, Chao Gao , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/9] x86/virt/tdx: Read global metadata for trusted IOMMU To: Binbin Wu References: <20261112043054.2664857-1-baolu.lu@linux.intel.com> <20261112043054.2664857-3-baolu.lu@linux.intel.com> Content-Language: en-US From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/18/2026 9:39 PM, Binbin Wu wrote: > On 11/12/2026 12:30 PM, Lu Baolu wrote: >> Add support for reading the global metadata of the trusted IOMMU. >> >> The trusted IOMMU feature is optionally enumerated via TDX_FEATURES0. > Nit: > The feature enumerated is TDX Connect, I don't think they are interchangeable. > Trusted IOMMU is part of TDX Connect, right? Yes. I will update it like this: Add support for reading the global metadata of the trusted IOMMU, which is part of TDX Connect. TDX Connect support is optionally enumerated via TDX_FEATURES0. Check this feature bit before reading the metadata to avoid causing the entire TDX initialization to fail on platforms that do not support it. Thanks, baolu