From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F9812FF161; Fri, 19 Dec 2025 11:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766143119; cv=none; b=WGl23CN3ZX810LisSfZIZ8lfkjMmKGRyS1Wc8Q9N2C8PqT0pUfr1lFGJdhoW3fEvC7afeVyhLKJyV7+ug8nBlXcDt/j/0tWjz64jO5AI40hsMLeulWB5m+vuYv/iVqTfaEjOVRCWCgA9kdsltdwWp8Z0Dc/nDmoK41P9TJFoStw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766143119; c=relaxed/simple; bh=NHolfz4XzXR6zIHhuwax5OUL7/pF4kuUuASqumpMD1M=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=S4xtKa13XqJGNdsDofmFQqaoIAhVD+9snfj6X7Tajpku6rsl+1cVym6J8Ez52nSmFCYz4krxp17//Qy0AIh8OEt6ZZvOIR8wyfbXT9ceKILq0uvGnkalrM47F9znQw/qLTjpKhGYHgc0zIuZrxRrtNikB3PKhayX0EfX5oX0lk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.224.83]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dXlQ235hZzJ46DS; Fri, 19 Dec 2025 19:18:02 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id E9D1640569; Fri, 19 Dec 2025 19:18:34 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Fri, 19 Dec 2025 11:18:34 +0000 Date: Fri, 19 Dec 2025 11:18:32 +0000 From: Jonathan Cameron To: Xu Yilun CC: , , , , , , , , , , , , Subject: Re: [PATCH v1 03/26] coco/tdx-host: Support Link TSM for TDX host Message-ID: <20251219111832.00004a6b@huawei.com> In-Reply-To: <20251117022311.2443900-4-yilun.xu@linux.intel.com> References: <20251117022311.2443900-1-yilun.xu@linux.intel.com> <20251117022311.2443900-4-yilun.xu@linux.intel.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100010.china.huawei.com (7.191.174.197) To dubpeml100005.china.huawei.com (7.214.146.113) On Mon, 17 Nov 2025 10:22:47 +0800 Xu Yilun wrote: > Register a Link TSM instance to support host side TSM operations for > TDISP, when the TDX Connect support bit is set by TDX Module in > tdx_feature0. > > This is the main purpose of an independent tdx-host module out of TDX > core. Recall that a TEE Security Manager (TSM) is a platform agent that > speaks the TEE Device Interface Security Protocol (TDISP) to PCIe > devices and manages private memory resources for the platform. An > independent tdx-host module allows for device-security enumeration and > initialization flows to be deferred from other TDX Module initialization > requirements. Crucially, when / if TDX Module init moves earlier in x86 > initialization flow this driver is still guaranteed to run after IOMMU > and PCI init (i.e. subsys_initcall() vs device_initcall()). > > The ability to unload the module, or unbind the driver is also useful > for debug and coarse grained transitioning between PCI TSM operation and > PCI CMA operation (native kernel PCI device authentication). > > For now this is the basic boilerplate with operation flows to be added > later. > > Signed-off-by: Xu Yilun > Co-developed-by: Dan Williams > Signed-off-by: Dan Williams All very standard looking which is just what we want to see! Reviewed-by: Jonathan Cameron