Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2362893lqo; Mon, 20 May 2024 03:35:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYv23BJF4dB1wTUGmfy66GmGUyqDXrd1hKfRcVRhqLAcA/u0rkJdvWXGAgRUToxpgfRFUYqhS6cazUG6kakkoYmEJ0c1KGiFwZLZ4+gQ== X-Google-Smtp-Source: AGHT+IFKQnaVHJ6PBLo9ThkXFK30Z6OkzOGIb7rxQVHLKkD0sy2ElezxsXSbZINfEOnx+3QyG5pc X-Received: by 2002:a50:c049:0:b0:574:ebdd:9ab3 with SMTP id 4fb4d7f45d1cf-574ebdd9ba0mr19061453a12.2.1716201357429; Mon, 20 May 2024 03:35:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716201357; cv=pass; d=google.com; s=arc-20160816; b=rC0yCo7jABye4+cG5+uH7cm69nTx7u3tDloNJbqkBNcXuOXp8gw7Fz9olzpXBMjCbe LXBrrbLn0idJE3ygDo/ZVPrPRQNQqqr+BUUD2rb2Zv4Xp7EgmMDiMGfm2Ld2NbK7djfR 6WcGuWjVQ2qIlGAQahJLALIp1ZK3OmlsMGVydp091U5FGmP0krcv9gPKVH4GzMNVt2um cJv2nQHTMefgRc2sIYU/1YlNva45/pe6erFgIu1w6R9RaHD2hZz7ApIK58EzELVpeQoJ Raiw5N5iHt461ZECYXb+8y9hchW8YFqvZxLswldLmMHa4racUkm94HJuaMICrCvFZWLt Xe+Q== 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=4Eb65BQOwdTcNNL/UJ5bvhyvb0wOOIyHrbwWJQBpxEY=; fh=soCZ3pVWW9Uy0L18jy1wJT7PGydDVY8K+Q8o5ChOe3Y=; b=nSwbDQ/2K5GYb5w++IVgM72NNbP1p3Ag5o7MNI4KyWWNSukvhPQZkJrsKHiwbud80U DggZ8r1dIBIcMaU1tPc8b4AV/X4efXQjfFkaccmP16GUBfrAbcxky5Ihhc2d+ARTd0MN uwQbo+qwIHqFRDzwaD30H04ArSWDUmDXm9XfHiv0IzagAoeW8BR2YuVaFdnQ2B3bX87E 7NAizkXXcGzl7umvkGtjkYA+6jGG75oVS3vipCISskztYJYFYH99SLQn4ZWkj16aRw0o RcuzJUpJEF5DlF4fKeC1/jkcSx2d5gNKXbBBuvrFoSSkPz9GQazBFb+W8SOcaEcQ6x1M aAtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gx9CISCq; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-183615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183615-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 4fb4d7f45d1cf-574c1229e35si9431744a12.19.2024.05.20.03.35.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 03:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183615-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=Gx9CISCq; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-183615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183615-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 2E4DA1F21FF8 for ; Mon, 20 May 2024 10:35:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51C4151009; Mon, 20 May 2024 10:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Gx9CISCq" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 4DD003E47B; Mon, 20 May 2024 10:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716201348; cv=none; b=m2TUa0QUcoLnzYMXMP4XC5bApJmphN5ce255MxY7XYdSmytsHoZ2HXYRFvesBey5xKslwrVnB+V2to/72UU9BJxx+L+5kOZUXYgcklNpX+VTLjAOqecsJH/Gcz3aOmQF5hTwnOUwYZ/8moSykR+Wbl5ruXocsA3vqhjF3MbeIf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716201348; c=relaxed/simple; bh=A/ZtKIOzjGzmus/h85YRhlIv2OaZKnnSRZwq4D30MIw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YrdpH72rtbvnIcjiSWiyZDcPzhHPrWjCXh4Y5AArcBn7ccXea5NR4dIXCL9YgEuSdCC53L24E8jeoCXXUtiJCQqM5GVu9RbnpbXtW+7ZsUcFsCv1G2n1wO1bhZLQ9COjVO598kFL3QlNjGDQK+xmZGskYJZdybczcPe1ikHVSzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Gx9CISCq; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716201347; x=1747737347; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=A/ZtKIOzjGzmus/h85YRhlIv2OaZKnnSRZwq4D30MIw=; b=Gx9CISCq8eNbT5ZnT8fMXP963rgXu/ci2u64x7cuI5qR0EyIm1D6r7rn N/evgfK091pLoeTZ1R357taYGUhaf9TqTyDV2GNp0qCMsKZJEkuQNxkcV 6SjIQWy5Yr3LUdoQJZAApTRlq2C6EGAe98/i9vNfupOJiuQh3cAA44F84 OGrwF/CwwkQLXGnn4eU6uqZyUS+XkBWlgWcHkuYxPKXcE9NA+hoOt5r5g upApOOLCOJOPjJmpdtvYt24gROkXpGOQA4FuTlgCGme7K6Kb9w1kyH4QP Av+GWtqWnwPxsoaW1t/1deuWcsc+e4E40ZoGjRHOpF/RLDou2TUJ/NC49 w==; X-CSE-ConnectionGUID: mwYH+XVYQPGRjh6jGPiNZw== X-CSE-MsgGUID: FjGtkcOKTXmwR1uOmcZJ5g== X-IronPort-AV: E=McAfee;i="6600,9927,11077"; a="34836330" X-IronPort-AV: E=Sophos;i="6.08,174,1712646000"; d="scan'208";a="34836330" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 03:35:46 -0700 X-CSE-ConnectionGUID: MELpyzzDQnWS3eqmSDJPtw== X-CSE-MsgGUID: 6BfR/RPaSR6mpxmR7CD7vQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,174,1712646000"; d="scan'208";a="32624271" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa010.fm.intel.com with ESMTP; 20 May 2024 03:35:43 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id D7E0D2AD; Mon, 20 May 2024 13:35:41 +0300 (EEST) Date: Mon, 20 May 2024 13:35:41 +0300 From: "Kirill A. Shutemov" To: Paolo Bonzini Cc: Sean Christopherson , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Josh Poimboeuf , Peter Zijlstra , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: Re: [PATCH 01/20] x86/tdx: Introduce tdvmcall_trampoline() Message-ID: References: <20240517141938.4177174-1-kirill.shutemov@linux.intel.com> <20240517141938.4177174-2-kirill.shutemov@linux.intel.com> <9cd7f179-673b-4e96-be08-128dc6fb6271@redhat.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=us-ascii Content-Disposition: inline In-Reply-To: <9cd7f179-673b-4e96-be08-128dc6fb6271@redhat.com> On Fri, May 17, 2024 at 07:02:25PM +0200, Paolo Bonzini wrote: > On 5/17/24 16:19, Kirill A. Shutemov wrote: > > The function will be used from inline assembly to handle most TDVMCALL > > cases. > > Perhaps add that the calling convention is designed to allow using the asm > constraints a/b/c/d/S/D and keep the asm blocks simpler? Sure. -- Kiryl Shutsemau / Kirill A. Shutemov