Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp71363lqj; Thu, 11 Apr 2024 10:05:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdwdt8H3LyXHABgXa0TPPX2+Ulp1yKRj9zI+6DF3rNZLxTrM0SP8tSDU1K1r9vMKH06qsZ5PKBcykMMVBwLrnItfcgjOyBipiYNrpZXA== X-Google-Smtp-Source: AGHT+IHsKYLvRY1J4Icw2Ja/rZm+Z8t+p6VUVFkNk0gH27h5UuQkms14mNezC5xUJ/JATdR4pd1B X-Received: by 2002:a05:6a21:998:b0:1a7:9cf6:6044 with SMTP id li24-20020a056a21099800b001a79cf66044mr415469pzb.27.1712855133831; Thu, 11 Apr 2024 10:05:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712855133; cv=pass; d=google.com; s=arc-20160816; b=hMpSelT13qwttYKpZWuezHRXAvF6ds1I1N9GFKjSSf1tK/DdHi874DSwj4zh475sQ9 g/C5H0ZobyuApDsHMu/WTJ2/DZH7UJNQgT8D+jxWAYiU86HjO8R1n+6Snjyk4FHhW9Hx 4uQGMPWmnVj+4BZjoBArf7s29fYogzRTyUgC3z5g0HTVURZATYU3W1hycAIusZR4La5c k+5DOH5XNGnHufXr8zoM4ns8GHyvw4yY2UDqeJzZBEXKzvomLTvNnrfn6ZfVaUL5EBHj blzxUKfeqVW7wsNr4MzBY1yusj5vFCBKpgwoXPNOOztidgkN8m0/FPPLuw9yTsrlWPZ+ uv8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BmLqAj2oG/tAHxxE5gw0uFRqLBoiZPdyT2wIae1rMGM=; fh=8wcTu6DkUQycMqUAyoXfMp+Lb3e2/Sy7MUkQm70dIL0=; b=X/D5jQJVEDkE9bJsFkEi4DKrji++Ed+/0LIgMGUkHDO1H37gQEjZ1bcvAYbkebeaw7 o0RAtggESfyad4FpCipDqMsb8bQOvl5S7yL07cjUJoUccd0NdApGVJINl0yuOWNIecae P/QWvAjFg19O45RCw4YT0EAfZ6Q7IUpikVMcp0Rtswx6JJrQH1KYTG+RNmVN21ihioYK hRLDSSwNEhxYP8KTLKdj80R5Ao3xLsaNIao5KH6AFdDc5i7odEVfGlCkbuRFpdkfUyc2 RFWKlbbD2HKy9szsQL/1bHsg7ydFDfiEVRMdypYdiQ0btx4Q0wyVOGXEE2OP4rlGXNdL JI0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VjdpAGl7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-141152-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k10-20020a62840a000000b006eaada3b713si1674629pfd.147.2024.04.11.10.05.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141152-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VjdpAGl7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-141152-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 407E628D49A for ; Thu, 11 Apr 2024 17:05:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EB471F0B8D; Thu, 11 Apr 2024 15:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VjdpAGl7" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 D9EF01ECE9D; Thu, 11 Apr 2024 15:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850127; cv=none; b=KMNHImXGuOAnqRgNCqA6We0zeqM8JXqxh84xPMkizf5dFtzPkInzbCDOnO93ZpWm8mG8sObjrdsXykGCCUjuKBy/CgjtdGkkCKy/oTuSQU8bBjqS7egSqIj2ddJQshkcE+MjeT2kDEy2aUodDcY6K2qmbbyqNPgNSUDYmoGSQ4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850127; c=relaxed/simple; bh=s++XfARygyr9QzWg7t9rh68e9ZZCT9EVQZhozNyWOWc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=a2e6FaLTmtsn9HchJeEQxu+0WTFtEZzsqbBrWHvQPFnR1rGRzFu18H46hKYBpLGhRjL08V5K+SRDEGFAcQLuqewoPXQe00KFf7LSaC2IwZ0VS4exWhv1Xt3121kxyVChzzJrLParkKJxt8G4vE5gs7lcumXs1rLMi0jIHh5SfVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VjdpAGl7; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712850126; x=1744386126; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=s++XfARygyr9QzWg7t9rh68e9ZZCT9EVQZhozNyWOWc=; b=VjdpAGl70T3jUzXGmSycH8jv9c877LaXBc04h96due9ukVyR/QcofCPJ ialXweeHEDFWhXDgmI22aYMEP/Ql8TmwDFqf3+iv+SIOHaR3+Wn9wRCuZ 2PxPcrrHNW1poR553CJcZjsajOb0rn8WZhrKHpr/GrJglSuvmFZNJqf/O 2lpp7CYoDs4rLbMf33tbqGJUL9iHkuU1LaKP9NjcLgYTYeoWGFfTl/tej 64yLEpURXgdczjLWMM7ENvMgvC5QhpCqjUTJ35daCUUhIKPCjFKymmf8x ioi3g5skdFmI7656d58nwepB7Q0V0S9XmThpCd9kOu1covpR6YjiNs6X8 g==; X-CSE-ConnectionGUID: alg6nNwBR3CGad53UkPW2Q== X-CSE-MsgGUID: t/TVSiUUTzCerlITNo08UA== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="12119268" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="12119268" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 08:42:06 -0700 X-CSE-ConnectionGUID: Tj1tx9SVT5Cf9s1DZaN/pw== X-CSE-MsgGUID: MzsmU3NKTOSrrK0nECiQ9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="25587756" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.124.242.48]) ([10.124.242.48]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 08:42:02 -0700 Message-ID: <02a23b4f-1b2d-4e85-8826-23842790d237@intel.com> Date: Thu, 11 Apr 2024 23:41:59 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [ANNOUNCE] PUCK Notes - 2024.04.03 - TDX Upstreaming Strategy To: Sean Christopherson Cc: Rick P Edgecombe , "davidskidmore@google.com" , "linux-kernel@vger.kernel.org" , "srutherford@google.com" , "pankaj.gupta@amd.com" , "kvm@vger.kernel.org" , Isaku Yamahata , Wei W Wang References: <957b26d18ba7db611ed6582366066667267d10b8.camel@intel.com> <8b40f8b1d1fa915116ef1c95a13db0e55d3d91f2.camel@intel.com> <4ae4769a6f343a2f4d3648e4348810df069f24b7.camel@intel.com> <2c11bb62-874e-4e9e-89b1-859df5b560bc@intel.com> Content-Language: en-US From: Xiaoyao Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/11/2024 11:26 PM, Sean Christopherson wrote: > On Thu, Apr 11, 2024, Xiaoyao Li wrote: >> flexible (configurable) bits is known to VMM (KVM and userspace) because TDX >> module has interface to report them. So we can treat a bit as fixed if it is >> not reported in the flexible group. (of course the dynamic bits are special >> and excluded.) > > Does that interface reported the fixed _values_? No. But as I said, we can get what the fixed _values_ are after TD is initialized by TDH.MNG.INIT via another interface. Yes. It is a bit late. But at least we have interface to get the fixed value runtime instead of hardcoding them. Meanwhile, we are working internally with TDX architecture team to request new interface to report fixed bits and values as the configurable bits that doesn't require the TD is initialized. But not guarantee on it and not sure when it will be public.