Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1512584rbb; Mon, 26 Feb 2024 11:37:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFyaOUtn0y0qtAm6Md4ztIqfqYhQvmIMzvQ1EP5fiStlztPKePMe0l+jUqMUdlETA4V5/YfQRheNAlN9ELGPMhQozpJXKkQo8lDoXz3Q== X-Google-Smtp-Source: AGHT+IFhNiL31FBNF6bQeGngrRHh0RwH3vR1OrHyuH110GzT7KNmv8Zz50XG2lci+2DGo4ByV/yu X-Received: by 2002:a05:6512:10d2:b0:512:e00b:8da4 with SMTP id k18-20020a05651210d200b00512e00b8da4mr5755735lfg.53.1708976241449; Mon, 26 Feb 2024 11:37:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708976241; cv=pass; d=google.com; s=arc-20160816; b=zj888hGvU8AoY146fXzKwT9EvI0z2ikmagLAOboZ3jzCK31NZNlyZh9k+4Fs2Gf3W9 kAGwqmCRsCWD0fJXvk5N3w+MptJ1gAERClvcnI7jeHqIrSv1Avyeo8caFJiRTVj6fsHW nW5gTlE4UFA9+jRYJKn/fZdG1P0K7yvkmZLR1ifvMfGKjobQQgl/k3dDzgjTAOcDNDQ/ iAFfZqMvE60urUDF+Q6pXECXF1xF7mkL8GWEYSpZcJO8ECLN6BsnelMeUzX0MPfnVPcU wRLdqgE608xdqNIWdbS2bvvUUA9RbGABJd+/xK21UZj1NLkAmjj0b6zU9m2RvJH7DX1i c+Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kzkWbyiO87dXDwS0KRQyrhEXsBtvhhtYuk0e9fX2yEo=; fh=ubRYJf22Z2FK+ObngIk9NLfBUR+RMwqxKXBovjR4GX0=; b=PdeTsMKc5DXafJ4PbfpsR9XM9JhZaLsoVceS/MDGR1fDc059Rc4VosW0aqccCHGdpE 9FobmWn+D/JQgk+tRJRAEBIrnsUIAqvEKp9Lng0EEHsKWiNK155o3jIEs11ZDAoNjXMq Qzty3IeDIBCL3hZdQjBxYPEg2IAjph81r97lHdgQdBhUZcyteAxGAP4u68/d3KzZvK09 iI7U9nO1mGp2uqFFOFNwQsQ7ld0E7aH3lWpOZ5U3SIN8zxr+Pf085BE4iW377I5ULNJp FS3DgURdi/WHclDo7jP4LqDVKEPKIjNF8YdsOJIq0q4eLAa2d9a0ixU5+h8fzgRFe5hh qjPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="J2GMF/yl"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-82240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gl16-20020a170906e0d000b00a432eeb13dfsi43260ejb.368.2024.02.26.11.37.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:37:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="J2GMF/yl"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-82240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82240-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 195401F2D479 for ; Mon, 26 Feb 2024 19:28:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B9DF12FF67; Mon, 26 Feb 2024 19:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J2GMF/yl" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 DEA5C12F5A1; Mon, 26 Feb 2024 19:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708975682; cv=none; b=F7DbIVvcHS13rMaU4jAzO0pBG060vujxlVhsbY9oJvrYReLfC0qwxW0Ca8/ToenydsD3N4GP2jal/R1iojRZJxMoxrBJI0gXLKN0bFgjRSWXXiETjOJX9rhfEeiqVL6ddRWr8J5mVm8Xb/ZzBJrmaLmBtOv+dNoHVprdrP1PPnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708975682; c=relaxed/simple; bh=z3CtMvNdNhYJJenylM+bgudMHFASYy1j0Pe/vc9ycbQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FBAns2PcUMrZXVowMBrTaOyoBDUejyEUg5RMkTx0Z6OG9bxMmQFB25Vlu9WHnodY8IZBUGMze5kxONOvVUyKgNxZGPgRO7clGmDfOtdtO2gVlFf+MeZUkgPy57J3doA34cTwkyH2+2C8z+qyEfrleBJpRqIBC19TVJMxf6mZnjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=J2GMF/yl; arc=none smtp.client-ip=192.198.163.18 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=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708975680; x=1740511680; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z3CtMvNdNhYJJenylM+bgudMHFASYy1j0Pe/vc9ycbQ=; b=J2GMF/ylSX1eE9AmN11KZdHCnw/55iaZpsHTCYh4nECKgUqpSKuXlyX9 nyMsno49jIs1fNU+UVG0TRc3tAmW/zRzRLWmnK80UdXjFb3TdZqwDRRcl QqyHecPJ2PEVTqJgtUvlbxUR3GRWDmbuka7pVJ8fgtAcadtiQCufxLKNE DKw3b4ijyVa5MsrVsYfsySZcAFjtPGQJPlf/huGTaitheiJme58x2e4tT cWCjGVWaesifZJx82cLm6Ai7G78/oOUVLoAf8JUySF1Z6aSKuXrUrIWSp LyWxRY6N/wF5DsNoXFsEl/cu/KJJ8pfHuXUkvpIFSwU0hTXVS6nL9i8VB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3161312" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="3161312" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 11:27:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="6749704" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 11:27:58 -0800 Date: Mon, 26 Feb 2024 11:27:57 -0800 From: Isaku Yamahata To: isaku.yamahata@intel.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , Kai Huang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com, Sean Christopherson , Yuan Yao , Xiaoyao Li , isaku.yamahata@linux.intel.com Subject: Re: [PATCH v19 028/130] KVM: TDX: Add TDX "architectural" error codes Message-ID: <20240226192757.GS177224@ls.amr.corp.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Feb 26, 2024 at 12:25:30AM -0800, isaku.yamahata@intel.com wrote: > diff --git a/arch/x86/include/asm/shared/tdx.h b/arch/x86/include/asm/shared/tdx.h > index fdfd41511b02..28c4a62b7dba 100644 > --- a/arch/x86/include/asm/shared/tdx.h > +++ b/arch/x86/include/asm/shared/tdx.h > @@ -26,7 +26,13 @@ > #define TDVMCALL_GET_QUOTE 0x10002 > #define TDVMCALL_REPORT_FATAL_ERROR 0x10003 > > -#define TDVMCALL_STATUS_RETRY 1 Oops, I accidentally removed this constant to break tdx guest build. diff --git a/arch/x86/include/asm/shared/tdx.h b/arch/x86/include/asm/shared/tdx.h index ef1c8e5a2944..1367a5941499 100644 --- a/arch/x86/include/asm/shared/tdx.h +++ b/arch/x86/include/asm/shared/tdx.h @@ -28,6 +28,8 @@ #define TDVMCALL_REPORT_FATAL_ERROR 0x10003 #define TDVMCALL_SETUP_EVENT_NOTIFY_INTERRUPT 0x10004 +#define TDVMCALL_STATUS_RETRY 1 + /* * TDG.VP.VMCALL Status Codes (returned in R10) */ -- 2.25.1 -- Isaku Yamahata