From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.19 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796278699; b=GiVwpb5f9GycuBbBMn2mRiHq/CYTeRUaG1j695wV/lGyHsMKkVCj2MfPYGTrmC18fNI9 hLTy/aLMFwEt0g948q9AcfVvwF5+6FuF1Q6EqwFyOVtPATArKP9e08+kTIs8nAxdJ5/sS yC9krZc7LrAMpaaMsEny7MM74qDEFcl6j3qjAbtW3Bg7w6O60cWxOyX9OiwMO6G4JiAoV GLBEzljBA4F/bv6mbVKSo5IRp5CQjoslLJQDGkXPVqc9bestddGNYR+QEMpL04fN3d5DC V0cjTpEoB+1xwRvooHQeAf63EXx5a49dr5kpx5WiWa6cDVNNjCvp42cXyKiICz2SfCQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796278699; 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:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=FDP6BWZnCAifVkapgqvV1Wg6iBu8xcEv6IqERH0okCs=; b=aJ1u1FuLxWu1VdMzCEJoJqIBxtGHgx1Bo3HCKnKKRVDTTfv1wX7IGoM19OpdoDuXOAD3 F3nhS5OkC0iQlSiQGNBcIRngyslFcw/AJkp9kPBrkyQAoaQ7ExHvaAve0j6yBlTX8Gp/2 TXw844WT8ZJjgGN1DNbocMMOiTXk9bOdeShn+CGVRegEO5L8P2D35HhUwaPcIOZ5HlbDY sJFZcx/9nmZ7fGfMEOlBXrj1aAMOgXj/2J/hMqN/EOJTzeTLEB2vZNtVt8/3e/AuQe1fv HC74qhZYuR2jCbbkFlOD6ZnuSte+PzRoOABISbDSr1np/XkYKrg4+wAh7zE2GZ/FExA== 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=AR63MDId; arc=none smtp.remote-ip=192.198.163.19 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 6203A606A322; Thu, 3 Dec 2026 06:18:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6203A606A322 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=AR63MDId DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796278699; x=1827814699; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FDP6BWZnCAifVkapgqvV1Wg6iBu8xcEv6IqERH0okCs=; b=AR63MDIdXrDqg/A5hO1xV4E85/F9pm1KGLLKeF6Jj4JhCTIVUicSn77z rWDtxshCXPQjQCPrHhnqvovAxTMmEGLmah8+cIVKn7zcD7islcgPfp0of V9Q77y4iKxF/mf+GtD05UFiUEorvCZqmEVOMveFTOhbuLSrbhP9RNBCHJ DFOsjL48T/O9c5jr9TkBIZGfY/snSxU4lpJmQIREHU293buSAOZHGirQr Mu35n9MVLivqk2UAWiXGPfaqv8Y+Rit4eIKkG7GO0bjxJb/KG3lBhUTkG 36FMuJTCtvRmLHMiejNPwsd0SJWoX7SI1DbDbPzp8oUhNTX7TnslGsIsr Q==; X-CSE-ConnectionGUID: Aq89d02NRvG8TnmcVsl2Qw== X-CSE-MsgGUID: e4y3/+9HRSGqeQMDx7HFmg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5241431" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5241431" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 22:18:01 -0800 X-CSE-ConnectionGUID: eLLUv/VdSy6U5g3gccDZrQ== X-CSE-MsgGUID: 9b0ZD22aTtm8YEDy+yS2FQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13662381" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.47.46]) by fmviesa004.fm.intel.com with ESMTP; 02 Dec 2026 22:17:57 -0800 Date: Thu, 3 Dec 2026 14:06:55 +0800 From: Xu Yilun To: Chao Gao Cc: "Edgecombe, Rick P" , "kvm@vger.kernel.org" , "linux-coco@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "Xu, Yilun" , "dave.hansen@linux.intel.com" , "baolu.lu@linux.intel.com" , "Peng, Chao P" , "bp@alien8.de" , "mingo@redhat.com" , "x86@kernel.org" , "tglx@kernel.org" , "Tian, Kevin" , "hpa@zytor.com" , "kas@kernel.org" Subject: Re: [RFC PATCH 2/7] coco/tdx-host: Establish an SPDM session with the device Message-ID: References: <20261116111037.3478844-1-chao.gao@intel.com> <20261116111037.3478844-3-chao.gao@intel.com> 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: On Mon, Nov 30, 2026 at 08:20:08PM +0800, Chao Gao wrote: > On Sat, Nov 28, 2026 at 05:35:44PM +0800, Xu Yilun wrote: > >> >> + spdm_conf->certificate_slot_mask = 0xff; > >> > > >> >Can we not have the magic number? I guess it means any? > >> > >> Sure, will remove the magic number. 0xff means getting the > >> certificates in all slots (0-7) of the device. > >> > >> As a heads-up, this code will go away anyway when we switch to the new > >> CTLV attestation framework. > > > >So it seems we don't need any spdm_config_info_t definition for now. > >Should we keep the definition or just to provide a zero page to avoid > >unnecessary explanations here? > > The certificate_slot_mask should be 0x1 so that we can get the > certificate in slot 0, right? No. I think Jason's point is that, the certifications that didn't get signed/verified during SPDM negociation should not been returned. The TDX module manages SPDM negociation. So instead of the VMM asks for the slots it wants, the TDX module should return all available signed slots, which is slot0 for now. I think we don't need this certificate_slot_mask param any more. > > If so, I would keep the definition and pass 0x1.