Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp281046lqj; Wed, 10 Apr 2024 10:09:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOyaxBJx/1SxIeD62WJ6QC3bpkeoha2EWOqW7hhVxuxotU/EM4DHB90StO1ouoJiUZF+/aC2l+M8psyMooGkAWepHDtAX9ZhdGEMtXug== X-Google-Smtp-Source: AGHT+IG28pkv+4QIalJLpIikqW/BPIhCkD19rRfCsbSdaduevtl4yJXAwzcYUFKYPJFsQyPkxfvp X-Received: by 2002:a17:903:2384:b0:1e4:24cc:e021 with SMTP id v4-20020a170903238400b001e424cce021mr2889851plh.50.1712768979352; Wed, 10 Apr 2024 10:09:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768979; cv=pass; d=google.com; s=arc-20160816; b=U95nRUmTdy3sLFefGC1V2alWCecWt8YCTpQRciE5pY/o4qfq/6Noh5DHQxOdTIdVMg ojEUd7+Z7kMy+v07/JZD7FMmDr7k4oJ05+5gtH7SYgFRYt8OBFX13K3GgGncMFVpeqQA 8rCaldTdVGtDLMtluis+a+qjMKDfnWspR6dLGM+OVdr0s2eDYy/9giw3bWSRpZ78xKno FgNWl+6kzeNayg3uDCG3mUN1k7s8/u19qSEseliDt3ssw/gZDgelRO2P7WwtLTQu3oOc zI8AWh9ungnb6z75roUU3oFuz5WYxymNGusMUgK+W/UcaqFid24ZwmBhvKUH2nXGdh7y QGhQ== 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=y67Xlll1TaLSi7wbxoB3Tz7UDCxr1Bx40QNQxgY6Vd0=; fh=qkw3e0nyowQEHG6MAyhUVdOi6+iNlYxhtodqZfhBXxc=; b=bOCNQNKMi4tPXajuFCkEoWPgzjF47omulLB7sv1ST+uBNe+7F/hadwItQKnp3FCpAK X4nfjk5fX4c9xAfkcHDlv3M676sSI9YVvMVBFBJDvTE/hy2xkikSo1SkuIPLwRMBYWx/ tF6N/swQPYNY9KBgzQrEjdf6jyuGQJc3DH9UeSCO/1wBAykD3mH2rdDBjlSRn8Tb0aSG s9tgs0hjdzqcMBObwH1en3aPzFPKgpTsBRUNqfbCfEVG4ZHJ79J8zw8FkCK9dKWYfT88 7TpynNr1Oodw64N+/93Yal/bNLI14wZEwEQYHfiFsAreW3CkteoR0RjUQ6IrVafUxPyT 1+hQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n9a28EKK; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138767-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 i8-20020a17090332c800b001e428195efasi6730503plr.453.2024.04.10.10.09.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:09:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138767-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=n9a28EKK; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138767-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 36728B2CD10 for ; Wed, 10 Apr 2024 14:40:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CD3516EC1E; Wed, 10 Apr 2024 14:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="n9a28EKK" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 E7C4816E88F for ; Wed, 10 Apr 2024 14:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712759845; cv=none; b=HCQ3re1qXN/Giphl4aD8GWhar4Dpeg6K2ukdOR7aD+KbEk4Cqh5VP7avkGKjRqGh0A0dVo9KCurge8yoL6Uzb1aDxehZu4DY671/T1HgcE0Q3JOinLDCQbQLdO+TE/4NZ/svZo8NZ48G8spbY3kyMeHFzVenoXyBxdsgHQwE0D4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712759845; c=relaxed/simple; bh=n+cLkEOjKL1anCHA3V8uRbdu3cG6cI+aZxRQnEPEUCY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o7+0vu7igxK89g5ASLcQi7dbpLHDfYhQIkPemtE70S3q0Vt0HzhgC2y0wS8z4HcM2NmtBTfm3AtJ/gqqFzd6PxXUccN6pJedcwxq8Ad3rEb01+umJfZqSn4MZaLRsNTQs5VKzSdwlFijmUu3efRHL51kKHbgfqIVjuxc0ii54+I= 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=n9a28EKK; arc=none smtp.client-ip=198.175.65.10 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=1712759844; x=1744295844; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=n+cLkEOjKL1anCHA3V8uRbdu3cG6cI+aZxRQnEPEUCY=; b=n9a28EKK3F8AjAuZSkw1Jr/hHVNISM1SA1lrv+2+/1akNl4SbO5YG8hi w+xUJ0rvjih3eSXqclSNUcVrB/kNFZk3aQDTZugU8iSeLy+wJ/cYcp9VH /GxnAKpHKirKr1/SfWLPDRVYgMgIiQ6FrXP7nlAiz1UlDjeM70b3Toe3Z P5ZYHu5c84aavoJL63u8pEbxOIziHZWVsoibIpRyTwUt5RgG5uD3TFFds PPJxkCpaPirtTlgSnRhlRQHujKF8RCN1rrbMCHsMGjuYqMoGpIlGuu+kK Ml00xgNIumdaw9ePo3comKUaN5P+qruZ84nRAojhsTBVtkyIB5x5Ak/iN g==; X-CSE-ConnectionGUID: wc/eqgiCQv+9k4YUiPkEGw== X-CSE-MsgGUID: x5aY72gmSWWj7JQhwIJncA== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="25565982" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="25565982" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 07:37:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="937095210" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="937095210" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 10 Apr 2024 07:37:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 4EB19161; Wed, 10 Apr 2024 17:37:19 +0300 (EEST) Date: Wed, 10 Apr 2024 17:37:19 +0300 From: "Kirill A. Shutemov" To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@intel.com Cc: sathyanarayanan.kuppuswamy@linux.intel.com, hpa@zytor.com, seanjc@google.com, elena.reshetova@intel.com, rick.p.edgecombe@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 0/4] x86/tdx: Adjust TD settings on boot Message-ID: References: <20240325104607.2653307-1-kirill.shutemov@linux.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=us-ascii Content-Disposition: inline In-Reply-To: <20240325104607.2653307-1-kirill.shutemov@linux.intel.com> On Mon, Mar 25, 2024 at 12:46:03PM +0200, Kirill A. Shutemov wrote: > Adjust TD setting on boot: > > - Disable EPT violation #VE on private memory if TD can > control it; > > - Enable virtualization of topology-related CPUID leafs > X2APIC_APICID MSR; Any feedback? -- Kiryl Shutsemau / Kirill A. Shutemov