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 CCA1F38F255 for ; Mon, 9 Mar 2026 16:42:11 +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=1773074534; cv=none; b=mCdq2JLWliDRU9sl3sOaNtKcSfFZJs4BYS/kQOum6LGoitym1cueTjEXJDnEIMh5zZDm5Gy4rvrzN8AIkXpe0ANE2fvbEGlmZcrZpjEdFG7pMSOCr1hNeyxycT96KGKAykBwSHDEUXmRm3wByF+qEtnn2r1BWMv0nU1PJmO3hJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773074534; c=relaxed/simple; bh=oJXexXiXWMbqytYDDRKnVOmd8MImhm52sVrSz9CvGXw=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fdOauigrHOBP8Yhj+6VdBYBKs2BNzxVqDe08hD8rx00cP0XMGyI4sbgfX5FcGuy8x8WIH01WeK/EdlRsZG1pFYniPPw2udYIqrTmV6MafFwe7+o28+VipPk1j3K2gAylPJLmVbUq89+AZKlaipcp5cTH5ZLbqOx7n12gq95KSJU= 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 4fV2q14mzpzHnH44; Tue, 10 Mar 2026 00:42:05 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id B356C40569; Tue, 10 Mar 2026 00:42:09 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml500005.china.huawei.com (7.214.145.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 9 Mar 2026 16:42:08 +0000 Date: Mon, 9 Mar 2026 16:42:07 +0000 From: Jonathan Cameron To: Dan Williams CC: , , , , , , , , , , Christoph Hellwig , "Jason Gunthorpe" , Marek Szyprowski , Robin Murphy , Roman Kisel , Samuel Ortiz , "Rafael J. Wysocki" , Danilo Krummrich Subject: Re: [PATCH v2 03/19] device core: Introduce confidential device acceptance Message-ID: <20260309164207.00006b3b@huawei.com> In-Reply-To: <20260303000207.1836586-4-dan.j.williams@intel.com> References: <20260303000207.1836586-1-dan.j.williams@intel.com> <20260303000207.1836586-4-dan.j.williams@intel.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100012.china.huawei.com (7.191.174.184) To dubpeml500005.china.huawei.com (7.214.145.207) On Mon, 2 Mar 2026 16:01:51 -0800 Dan Williams wrote: > An "accepted" device is one that is allowed to access private memory within > a Trusted Computing Boundary (TCB). The concept of "acceptance" is distinct > from other device properties like usb_device::authorized, or > tb_switch::authorized. The entry to the accepted state is a violent > operation in which the device will reject MMIO requests that are not > encrypted, and the device enters a new IOMMU protection domain to allow it > to access addresses that were previously off-limits. > > Subsystems like the DMA mapping layer, that need to modify their behavior > based on the accept state, may only have access to the base 'struct > device'. It is also likely that the concept of TCB acceptance grows beyond > PCI devices over time. For these reasons, introduce the concept of > acceptance in 'struct device_private' which is device common, but only > suitable for buses and built-in infrastructure to consume. > > Cc: Christoph Hellwig > Cc: Jason Gunthorpe > Cc: Marek Szyprowski > Cc: Robin Murphy > Cc: Roman Kisel > Cc: Bjorn Helgaas > Cc: Samuel Ortiz > Cc: Alexey Kardashevskiy > Cc: Xu Yilun > Cc: "Aneesh Kumar K.V" > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Cc: Danilo Krummrich > Signed-off-by: Dan Williams Seems reasonable to me. Reviewed-by: Jonathan Cameron