From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792779332; b=eRzzXLRav9WsJropI91cE45xe3ezpHQhwshQ1KN2H76BA7qLGSL3HcOC5HVnnMMKNp6A rhK1hf62wI5kopsIL1TtsOP9F9+CnBmcOvDgJK2KqjRNZVrjyyZo9PMbc8o0zHCBF+/16 oikfHV9hBNJygPoq2ts7bcBXbQUxvl4bVELC2eJuVFtTZuGM/IKchPcbxqKjjaV0kSu/k XKTP1pN3dgqo7tFHkWX1i6c1e8MYqsXx3yGyvGe5bPVaZLPKsq6bsii3cLRvJOlEcnspm AZg8rITvmz7hGy5npe1Rv8eJEaI4BbL/Hu3taGaPWaOxPv8qxo74zkzWkyNLxnz+t+A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792779332; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=Qt+ZKJaVNRWLSfsLrt7/fp04EXHG7/fEzwXs7hhdXAs=; b=aKAiOv7gP1U1xHG6JgIxsuZQslJ+7MrAPd1eDeKKVH2BhMpF0DSCZ6oU/zZ+8KyEiEmB GS1zJxjBuxvG/bcFn1h2CJ8a0Y18SFIrxF1HqCXUE9TnoknTxbp8rxJ7z2Yh8zTh9m8pw IejyRiEBftNxxHwqmQTY6XK/rqmxHC56kNcvnHl/hVWT9kuXMOvjKeRAgrVn0f+01fhAc Py3OlQ6edaQHXKmykZdxnC6oI8kmuYkZumrJt+/jupOEdXzpsN+1ygTsY3slwaB2VQ/lM Ooejpgbm94NWLhSXvZfjhAG/v3cFDAl5MM3ef1XS/x712tELJK23TCQ5uOEVyJnpQ/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=O7qkyEr9; arc=none smtp.remote-ip=209.85.218.46 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00B07606A322 for ; Fri, 23 Oct 2026 18:15:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 00B07606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=O7qkyEr9 Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-c4322d310e7so178889266b.0 for ; Fri, 23 Oct 2026 11:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1792779324; x=1793384124; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Qt+ZKJaVNRWLSfsLrt7/fp04EXHG7/fEzwXs7hhdXAs=; b=O7qkyEr96a2bINpE6/r6kEb0535R1oyjk5PKdiHdWuRqzyQHVAIHlQayFrNwVqaizf OZjoFhvrNBBem744hV7PcpwW+uNDtb3Liqy886CyHCC0HM9q+hVxyT5gJpqo6TbWrz2q a95iHMVJ6s6hSkLo/uQJLWBpWlQoTZRv51uNA8sKcev0oI13JRo3QqHN9FED4MiFnc2H rF7HNHP3bz9cO+eP3RUTAMe+Isc/LhMQXjHhCxfmDpay9QAcYRLsLuHLwdszmyj/HFG3 K/CQrimbe1zkJJqSM9Lhz/E2y4Bs2mMDqGiJN+StKl+H0kD7/jAOUDp5G+6V4bMpJgoE tV6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792779324; x=1793384124; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Qt+ZKJaVNRWLSfsLrt7/fp04EXHG7/fEzwXs7hhdXAs=; b=tDAH6ldTEsFvfQGH5EIGdLlMqjN4jxE3bR31PBuA3yGDa5MRZfSSgz3L8IvNCtsc7d aKJV5QpVVXOg4emtRjaVfdjbNjMQKxWCDTGzrFw10fuAVebAB9SyOkCJI2gghi9iRysO BL9jWXx2sTAbFOPVbV/TE5O5zCFu/xt5459EfERUFX0nJnqE8oFGxbK1VSPFQ6AbzfoO rpVidhlk0O9KrXfG0Y6EdXx/jiajoxxFFuPxFbuvH+FYrBZUN3fqZkHgM+gUBktDzYJM GfwDBZQkg6IakQnWG+t6z0vZvv7YieiHqrZKyV3P6hLt+wiCVevkGJzT8yzpB88Jpe/S yYiw== X-Forwarded-Encrypted: i=1; AKwUvBxwRP2GTwFnALgrR4EXVU9T2hjGTRtud0BDMOwp5LvJ+YVRMXsTPb0ONknWScnc2kSXi2UGEz2JXEIR1jg=@vger.kernel.org X-Gm-Message-State: AFq9FYLwqmSBujShhZuHjaGJvzXxKw94T1C9Wq1IELtb4xk3oJgi6lku pgZl0sphs8wfyqiSpWAF6oNEEjZpL5rrRjC2RhOPjCTqNE48knM6AKC9wpUuLgm+e/o= X-Gm-Gg: AYBFou2fQ5Vska2hEqp8uHYGBSxy3kGFiaHfbh7KqmCNWwDri4sf11/IAzVmFqy2aPR eyjqXM4cig+cklufnyk/4hQ2FZKPzynEBArCJ889pxQo1LJbFBe+RJX5erV3fFh1WuCWP94nNVC /hYN6a8plQow5NXCalki84mR6WMvs31Kt51jRFd3x0XM7gBJQ26bA0HIPNVY4IL8qhFhKbt1gTF ngVj5xq0c6in3RL95rzsxJw+de2S+myG2i60Ctp53vViWxJvo6E2chnv0GEUlJnH0JUHUDpzWJq BYOwHhzFKQhfsdpDPnQJbVZgDDcW/pn6GtEJX9kWr7xst4Ipb/6b0Cji0EVwEE97XyOY2Xz+hDx 2uAPLokkLiUZzZLU7y4wpr1NTl1ynx0vkmcVkV4mgOv+xDwQrPO7X2epcnaa/kVtJno0deeVvVi n+B6tUng9ru56UQS1c/bDryXoqt4h6UJTef90hAr4lmBMeY/MRLHH7l4Su229MWpGDP7fkQ9GH0 wRKkjQ7/3PIzosBLkyEn3VnjODS/KQEjfvWHtz/vnpEEjD0XNmdEtlhXNIxKhDRA08= X-Received: by 2002:a17:907:7256:b0:c2e:3f49:df04 with SMTP id a640c23a62f3a-c46a8eefbdamr488289866b.1.1792779324041; Fri, 23 Oct 2026 11:15:24 -0700 (PDT) Received: from localhost ([140.209.217.211]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c46b8bc2851sm27128666b.31.2026.10.23.11.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 11:15:23 -0700 (PDT) Date: Fri, 23 Oct 2026 20:15:19 +0200 From: Jiri Pirko To: "Edgecombe, Rick P" Cc: "Jiang, Dave" , "linux-coco@lists.linux.dev" , "kvm@vger.kernel.org" , "pgonda@google.com" , "jic23@kernel.org" , "drdeeglaze@gmail.com" , "James.Bottomley@HansenPartnership.com" , "linux-api@vger.kernel.org" , "Xing, Cedric" , "alistair.francis@wdc.com" , "dave.hansen@linux.intel.com" , "Reshetova, Elena" , "linux-kernel@vger.kernel.org" , "ankita@nvidia.com" , "jpiotrowski@nvidia.com" , "kas@kernel.org" , "Quigley, David" , "linux-doc@vger.kernel.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Vivi, Rodrigo" , "lukas@wunner.de" , "suzuki.poulose@arm.com" , "ksinyuk@kernel.org" , "Fang, Peter" , "sameo@meta.com" , "aik@amd.com" , "jgg@ziepe.ca" , "x86@kernel.org" , "qinkun@google.com" Subject: Re: [PATCH RFC 20/20] attestation: Add the TDX family implementation Message-ID: References: <20261015145053.3664509-1-jiri@resnulli.us> <20261015145053.3664509-21-jiri@resnulli.us> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Fri, Oct 23, 2026 at 12:07:28AM +0200, rick.p.edgecombe@intel.com wrote: >On Thu, 2026-10-15 at 16:50 +0200, Jiri Pirko wrote: >> Connect the attestation family to the native TDX service. Expose >> TDREPORT, Quote, MRTD and RTMR operations while preserving the existing >> native interfaces. > >Along the lines of some of the other commenters I'm not clear on the benefits of >the unified TD/VM attestation part of this. > >Especially when you talk about a TD report, it is pretty specific to TDX. So >calling user code is going to need to know about TDX anyway. In fact the report True. For this case, attestation subsystem creates just unified transport: EVIDENCE_GET. Nice thing is that the same op can be used for other evidence providing instances as well, like SPDM, armcca, tpm, etc. >won't have all the details of the TD either. Going forward it's main function is >to serve as a nonce transport blob and it only has TD details because of legacy >constraints about SGX based attestation. So just a quirky TDX specific part of >the flow on the way to get a quote. > >Can you help me connect the dots of why the unification for the TD/VM >attestation helps us get to a wider attestation vision? > > >One idea... Not sure on it. We are currently working on support for DICE based >attestation for TDX. This is an industry standard and AFAIU other vendors will >(want to?) support it too. Perhaps if we could have a single way to ask for for >DICE based quote, it could make a cross vendor interface more useful? Callers >could just call and get some standard format they can understand. It might take >some work on the TDX side to ensure the DICE format quote. Yes, that sounds useful and fits the proposed interface. DEVICE_GET advertises the supported evidence formats, and callers select one through EVIDENCE_GET. Providers implementing the same standardized DICE evidence profile could advertise the same format identifier, regardless of whether the underlying platform is TDX or something else: EVIDENCE_GET(challenge=nonce, object[]={PRIMARY()}) We would not need a separate DICE operation or provider family. TDX could advertise this alongside its existing evidence formats. Makes sense? > >Regarding the device attestation part of this, DaveJ (CCed) is exploring this >currently and can share some findings in a bit.