Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp257316lqb; Thu, 14 Mar 2024 10:23:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0HTXPCus4weCgo88+lA9lyTqRHkChYHvRZwFOF9q/l2vIdmrgh2dI3JquyqwEnGorm5ikJiHXcKG0zdFLmciaVWhUi3hEukCS+nMN4A== X-Google-Smtp-Source: AGHT+IEw9PKY8Arxvi8LWZyHpPjYv01V/DoiMdHbbOuLtvHgsoXQ43kCGKvPDzb0/dxgHLnYs2at X-Received: by 2002:a92:c744:0:b0:366:2ce3:17b7 with SMTP id y4-20020a92c744000000b003662ce317b7mr2350923ilp.14.1710437006926; Thu, 14 Mar 2024 10:23:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710437006; cv=pass; d=google.com; s=arc-20160816; b=e9zl3/3UNIj+lsBullFXtdfu+mObiiwKn6DOCB+zUDQMxdzWwXj25Ddnl3oxA5Grtl xB4pQpja4vJlj6yEooRjdro9fQkw9cE2l0u4fSgl+ieQw9g7FWz7+8TAgNbT9HMJdwy6 9l+z0phZa8Cj0Tx27mQ4DW42izqnpfl2G1YdlL2nghJlHAzedBy2sU0uP7oiddijRoAW kAfWPvbEAf6I0WziybEPcv17fStUx4F0h10zlB/0bluAcsFImoMdmGbRZjT/vvXe/S4Z EgOsfARdbKsOzIBgCgk52zQhyBvgFKPz+v/Hne2EVf/+kWUnc0CxaQb9see1eQncFUaU aVpA== 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=3mvP7GkGOeRIpxFHlHuXaXuvFT37scXFWJrALig37hM=; fh=kx6bbdbBWkULj/4nF9bLgeIvS6/xgRwlxEfeMXSc148=; b=da9th8Ik5cUNRrM7P6BBi2rdG5uIIzBR/RAThcNQYXJ/zi5Hl6fZdvWs/kws8ukK3K grnCGl+sikggOZ11F8GdHeUFhijGz6V3GxpkkAFDc2GGrFG8MOgR469+orwf7JKO3F6R RIOp5DqIK0AF1LWdh5qXAxkA1mLpo2PT2UrUJiXJZi1sDfN/zOSsZKJvhCuLSE+dm8Zn f0y/5WGfYTxtM+oqw0oC6e8e17BD7sWe7zc0z2H1kai4WjLOaXO3N7lugcB9fZWuVi/c FXJsrgCxfSLGuT/0GRkikhiTYf7Xhnha71IIS6xAQH9oCGvex8Ks6oi5gQ7ulkM3m2yv oa/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y0nMFClX; 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-103623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c23-20020a63d157000000b005dc88726780si929625pgj.374.2024.03.14.10.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 10:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y0nMFClX; 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-103623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103623-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 669A3B22DA8 for ; Thu, 14 Mar 2024 17:22:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8187C74BF4; Thu, 14 Mar 2024 17:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Y0nMFClX" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 A0EF474411; Thu, 14 Mar 2024 17:21:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436910; cv=none; b=N+4wNp4PLwufFkNAWdjl0Cxesn6yHiXSDmK3b5iT4D9PKn5fpHoVMg1Mjxg++ZS3J9SAbGb+8mPSVtRdzi3n6YqFdKu87zKk7kvM/fQaDgdchSrip3lCIsSeL8XNQQMgoKL3XZN+dOdK52ofIKv5/NYzcOhzf40Zyf+GO3hj8zA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436910; c=relaxed/simple; bh=KdwO8TeQ8OJGIhOmmmsHC3CWBJKrdEUiu7MAlHhdeM0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QgB+DifScppIgYBrsZv9Madf3W3tPGaqjpL8v2Gw5gZqEeK8eEQR928yj5JuEEGC4kjD/Ey7CRDzZ/+unfqJxSIliMRd9rV3GViTIwsJptN6QLDj+EHxDzm9pbvHihOqoo4U8ZAoqF4ZzCBtO9waBW9DYeQhgfWO0KbZ6sLjrzM= 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=Y0nMFClX; arc=none smtp.client-ip=192.198.163.15 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=1710436909; x=1741972909; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=KdwO8TeQ8OJGIhOmmmsHC3CWBJKrdEUiu7MAlHhdeM0=; b=Y0nMFClXcOkPwB/TNz1hCLHHx4AQhg+j2TiHdb/ie2q9ZkyAsMv5ag0X 71iDljn8b5T74TOQtxQnDb8Ss7F4SV5EENP1JdYDGa52ihfP/200X6HAT Hy9vX8ZfOf35zql9S29xuGDAKLjgsS21/Z1/EFp+iRsAjwbvoTBqT2ipN 0ASs7t8xgVcKtdXG/c0l3odR5UuMParbtdfjNzJJgZPiSCfguuI4K67N3 I0bTlL0uHxlJuCrvqF5MFiNJ6hfmlDBztrl7qNyRmKMbLVbxvS4QQhwNv fa9ZXQ9xGt54o4XgHrymGQ8Q2hGJtJnJJOU5trktKB6NFtv5XbxChxer6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="5459266" X-IronPort-AV: E=Sophos;i="6.07,126,1708416000"; d="scan'208";a="5459266" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 10:21:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,126,1708416000"; d="scan'208";a="35489615" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 10:21:42 -0700 Date: Thu, 14 Mar 2024 10:21:42 -0700 From: Isaku Yamahata To: Binbin Wu Cc: Isaku Yamahata , isaku.yamahata@intel.com, 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 Subject: Re: [PATCH v19 028/130] KVM: TDX: Add TDX "architectural" error codes Message-ID: <20240314172142.GB1258280@ls.amr.corp.intel.com> References: <20240226192757.GS177224@ls.amr.corp.intel.com> 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 Thu, Mar 14, 2024 at 03:45:49PM +0800, Binbin Wu wrote: > > > On 2/27/2024 3:27 AM, Isaku Yamahata wrote: > > 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. > > Is this the same as "TDVMCALL_RETRY" added in the patch? Since both tdx > guest code and VMM share the same header file, maybe it needs another patch > to change the code in guest or you just follow the naming style of the exist > code? The style in other TDX place is without STATUS. I don't want to play bike shedding. For now I'd like to leave TDVMCALL_STATUS_RETRY, not add TDVMCALL_RETRY, and keep other TDVMCALL_*. -- Isaku Yamahata