Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1366046rdb; Mon, 19 Feb 2024 13:04:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6TbL9mCiHCTiLjmdWtGjr/GGgSvpgqsP7CtSA0bq4XWUeOl1flcsBNK8IkJEflLtUZVd4bd6aGDEDYFZCeomzy4DCK46ieLulV/tsaw== X-Google-Smtp-Source: AGHT+IHhHy04FM/2JdwTSlOq4T0+y6/pLcFdfMIz0jBznqBd4C/VMS7AvLmnj4+FuBQiw5QX61qe X-Received: by 2002:a05:6a00:2d09:b0:6e4:6457:1dc8 with SMTP id fa9-20020a056a002d0900b006e464571dc8mr5265872pfb.29.1708376676222; Mon, 19 Feb 2024 13:04:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708376676; cv=pass; d=google.com; s=arc-20160816; b=LOpGjYr4fLjk/1rsHkKcPbCXetWeDIN7eVrwcoQQmBFr5g0Ij9JY72RM/dGWoTBFDu 6DYtPOGw+QRvmmc3ftRQh6InM3y9JGs7opBMoFjmsJGPbkKCwJidZ5jzqGKCY7seTZJB 3CG3T442r/ITGjRpCoZyezDnpAMlgO5AmoKlg9iDODa/BMstXVnso0s7Td9hT8thjbCN 34Co4pX/l5ZFnUqGGz64hccwfrAK7KStC0UFYQIk5LyzD1wjOn3tdQU1Gp/xcFhrrCoJ JLuUb/MwRu4lHWE+0QSSmMrUUvdAE3qKtdokBbY0LRYdWlCls03yt2aAKAlwgcqEHGg1 3Qfg== 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=5GkhyjBKCdCzd0ZqUTqIJz5n0CTuA/xu48+UvipmxLA=; fh=8jBeGPpg5aZqCZuY+ltRPw80s1pZ8hIVpUlWuQvem6c=; b=mR5skiflk5HzoCE1TrUmOpTMLiotn+on0Ut74yL8PfKW3DPftAAqygtUVkx8kWw/UI pFIEuGBeRltSHpyJ8oo9ZbC3vjFnbMtNYO+lhKMKDFE1cMLBNsEtkQZTFZuzTNTWmK01 3RXaSf7GNtDfbzjmOfYNGOdjaPgK7AI8amr5vdX1u3/8UQMZN4oCM4QoH0RQgMvSB5ap wUnK1sIBTqQGaqn5wHZtngm5+8h5CSJGc7h03v4s0b5/v3vZ9uTGBLZEG1WI7qS8a4BR cXv5A5fnskSPbsWOVZXtQ4hdF18UJj+qf9enNtIWveWKgJRS8x4Nh/20kbqahwo6jo/g yVyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DE1v5gTR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71719-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. [147.75.48.161]) by mx.google.com with ESMTPS id 201-20020a6302d2000000b005dc4240cc6asi4985472pgc.256.2024.02.19.13.04.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 13:04:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DE1v5gTR; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71719-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 0C257B255AC for ; Mon, 19 Feb 2024 16:57:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53473446BA; Mon, 19 Feb 2024 16:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DE1v5gTR" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 106D540BFD for ; Mon, 19 Feb 2024 16:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361843; cv=none; b=gsWM29fmnpMIueU+q0Cu2wictI1vHrpy6nctlq7UjuLzFZ/9t72uxADYFTsVS+SFmvANqQyfNcGRzhLqnLXqZIEjhdnUnsxk9Mpt1JIFHsZ1gAclZjwxMv+O6YFzGy06fbVXoVuQzetoqy5kVQ+3Rocl9JT04YVAxdk+AnRFTfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361843; c=relaxed/simple; bh=IE9yLgCLboY5cjMouYX9HJyBsFPx6jwa25FyuQUHofM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IQh5wJFfGg1bbgnPagDmO9yDpBS/8TUNgp/v4h4F0M0KYirgTe5Z+onR/PQAx5OUp8ZiaeKKIeEmOsUOURXyG/Z9gCaSMPHTw/yiR691znKsyAx6Ffk1+aXFDGhFyBqFhapsDGqZqnaAhY1mdaZNNqqYWIfNFBVxZL3r5/uVTsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DE1v5gTR; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=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=1708361842; x=1739897842; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IE9yLgCLboY5cjMouYX9HJyBsFPx6jwa25FyuQUHofM=; b=DE1v5gTRuR9+GxxbpjEVo+I3pFZOrvK2JFXq7Ix5hJAl8i4C/gQZV5Mt 98xmCqTgermYt5gPPYzv1GEBxmRn8VI/6WDasZca5kzwaDxySgWi+qy1J Smz1+wS8Sbfmj4okxDi4x9T8TjiXNfbV1Xgs4x65JD6FFYXMcdY1ryoz0 y+VAO2mdAtJZtDmWg/VdYYbzcJ4A1PzY/ASuGJDPNBFFJ2dHRscH5H3Rp IZnNlCCrHD1ANhVVjBvD0K7Vnx6xk/8rWkiL61NkGOEKHzn7W2K1NsUVt MD5MMY12LFItP3v2MrJa9dfrmFf7QCw0V1KsiTqYafImKTxjaKvalz/qN w==; X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="13858712" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="13858712" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 08:57:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="936314029" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="936314029" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 19 Feb 2024 08:57:17 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id 549A2305; Mon, 19 Feb 2024 18:57:16 +0200 (EET) Date: Mon, 19 Feb 2024 18:57:16 +0200 From: "Shutemov, Kirill" To: Tom Lendacky Cc: "Reshetova, Elena" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , "Williams, Dan J" , Michael Roth , Ashish Kalra , "Dong, Eddie" , Jeremi Piotrowski Subject: Re: [PATCH 00/11] Provide SEV-SNP support for running under an SVSM Message-ID: References: <447b491f-ae1a-85db-a862-0a2b999cd0d4@amd.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: <447b491f-ae1a-85db-a862-0a2b999cd0d4@amd.com> On Fri, Feb 16, 2024 at 01:46:41PM -0600, Tom Lendacky wrote: > > 4. Define a new guest abstraction/guest type that would be used for > > !VMPL0/L2 guest. This allows in the future to define a unified L2 <-> L1/VMPL!0 > > <-> VMPL0 communication interface that underneath would use Intel > > TDX/AMD SEV-SNP specified communication primitives. Out of existing Linux code, > > this approach is followed to some initial degree by MSFT Hyper-V implementation [2]. > > It defines a new type of virtualized guest with its own initialization path and callbacks in > > x86_platform.guest/hyper.*. However, in our understanding noone has yet > > attempted to define a unified abstraction for such guest, as well as unified interface. > > AMD SEV-SNP has defined in [4] a VMPL0 <--> !VMPL0 communication interface > > which is AMD specific. > > Can TDX create a new protocol within the SVSM that it could use? Sure we can. But it contributes to virtualization zoo. The situation is bad as it is. Ideally we would have a single SVSM guest type instead of SVSM/TDX and SVSM/SEV. -- Kiryl Shutsemau / Kirill A. Shutemov