Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2874921lqz; Wed, 3 Apr 2024 10:59:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfS/fdhHWYC/0iYs/YtJAlTgk5S9Od8ITPr7Zw4Kb0nX6+RHM9Fszqzh4S0CQ/kPfcOntfyon2BuN+X3pMTHCvKYyth7bxOMTXqaZalQ== X-Google-Smtp-Source: AGHT+IGAMAQN5XLlqCGrsUxZcU8ehPr4+fdeALFqZp5SxAx0bDLDbnL9K7mp1xp+NA38FpXWKSpM X-Received: by 2002:a50:951d:0:b0:56c:195d:b162 with SMTP id u29-20020a50951d000000b0056c195db162mr349887eda.6.1712167161418; Wed, 03 Apr 2024 10:59:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712167161; cv=pass; d=google.com; s=arc-20160816; b=k2IIHUFU91K7/YrBDcC5Zu0GTAmy48pqIKd9hjmWiHaoRAFY2t3dR1i7D717tDuCmM BfyKWayvhTwCC4cFVaZjm6GlRxmEuL+yHo+2NS8TIUEg6XrPiXal1WIwpuFXelXfqOZ/ 3A/M/lYBVdhmZ14E2HvmLOEd6LR8QaY9RBmbG4Kl8PXqIuxOqgRk6dC/chzKY0JJwwT7 nB5UveZ0XXvUjJlOqRrPaqYzAz2zSjh17QIfXu3worCq3u5UyGrcRE0TG2LdbBlNmfg7 8tKMbU8N0R04NMrb2ZaWAqJYZ94BPRBL8GI3e/3q3tDw9puc/+XPuXQqJjv6nWRK8c+t f9NQ== 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=IVpPFoTX8k0DvgXYexXIq5YgeJZKSr5PGq+EGd3jals=; fh=YYXmQolDZ545DIbHBGg3a8Ad9BfifqTm1mpLJOVQCbk=; b=uFk6wGXhozN0o7r6m1gbjX/ok+AsGb7/tV1kdHfu7hYVi1QHPddBEPdEBS5DQUn/ix DqSve6lrAP86WzG0fVFniYlXkb0FAGZCiqnVA0US2TEAhk5FCNs50zDSojkSOdU3eMm/ XyhGcCu8Z72v96uRIPcoTHyUduhjNL+GLEgyScoXUl68OvR6sRijSC7XuTxUev3l5LR2 bcXjL1R2deEXxsFz2TC5RAdCZJFvPSGFFpmZJjnvXUVRiyQeOx27PJ/0r4KOL5vF2S3P ChniPuJDnGEaxscoijQNnk8b8CMjmuctF3fZXSJCPrB8e/Rd+qEeF9l/n62/+SXBwr3q qkFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iwj0ayyN; 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-130381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130381-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f18-20020a50d552000000b0056c3b5d0befsi6800550edj.88.2024.04.03.10.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 10:59:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iwj0ayyN; 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-130381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130381-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 4D2C21F32308 for ; Wed, 3 Apr 2024 17:51:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E1C1157A75; Wed, 3 Apr 2024 17:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iwj0ayyN" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 B87CF152DFF; Wed, 3 Apr 2024 17:33:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165627; cv=none; b=m0FpmRQ1eOVSu4WFUW+dPI9fVlz7G5LYWaGRLmL6OtDJHOBg53OMWavCwK7avGbS1Z7t7f6P/N4L76hMeQ0+qXr23UGZ0rMxzNwTv519A7LIlrXHSBYGWhn6b1HwmZhHkUJ4GRbc8PdJlp9WHwDOlLw0uoJtNcpw7Yni+v7fn5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165627; c=relaxed/simple; bh=9M6pQXCLQk8hrqWFX4ZHDR4Ubl2/SRKz80hJnhH60ZI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nwFnx1C+ndsl8EiKLZiZohoYWSrCTyabxZHxXy3C1s58bBZoeq7qfArAQ2RfzRY+NCyLI4+glMP7ll+JM14iah/6HTtPF0FDfdeIzvevRLWDqHJAcIKjyTZRI+3eNlRDHhysCQ+FqFum6ED4nyclsSaw8MQml12vjx+knZz5lGA= 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=iwj0ayyN; arc=none smtp.client-ip=198.175.65.17 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=1712165626; x=1743701626; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9M6pQXCLQk8hrqWFX4ZHDR4Ubl2/SRKz80hJnhH60ZI=; b=iwj0ayyNWJXqVG3yNMuQQqYCNccw8/AEzJTK39/4YOT0f2hsH+1oCmJ8 /pcLhX0A63z+IkjCF5Sm7CM4UezEIy4nlqhE3P/JGXDAff1tzGwbW6Pr9 z9OjLuIMEOfXwqo3nzS93UbZW1PyGPgaQIT4zmcyldwdYieZb/BKYYCm1 K8oczPb/Wv2RVDP/TBYD1gOATUVc34Y94TgIImNMvyFGfKx5aP3pV8XHo k8DTJdeLKA+V8lxiRNDFukLyljS5yFBgBNwq6bqtw8aVQFApGPltMoEKJ HMqyRtWuXlBes+clj2Unw5fxIWdOHr8PdwcuELyEdO9xc7wIoHSbRrJvp g==; X-CSE-ConnectionGUID: NwdNRhD7R+a/KcyEkybAnw== X-CSE-MsgGUID: 0gWPP1PUSuyYE7us8IgPOg== X-IronPort-AV: E=McAfee;i="6600,9927,11033"; a="7531216" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7531216" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 10:33:45 -0700 X-CSE-ConnectionGUID: U2jYK7gtQ2OMeEzcNs+Erg== X-CSE-MsgGUID: R9bihAgVSIeuhhS5gpnUwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="41673836" 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; 03 Apr 2024 10:33:44 -0700 Date: Wed, 3 Apr 2024 10:33:44 -0700 From: Isaku Yamahata To: Binbin Wu Cc: 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 , isaku.yamahata@linux.intel.com Subject: Re: [PATCH v19 067/130] KVM: TDX: Add load_mmu_pgd method for TDX Message-ID: <20240403173344.GF2444378@ls.amr.corp.intel.com> References: <331fbd0d-f560-4bde-858f-e05678b42ff0@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=utf-8 Content-Disposition: inline In-Reply-To: <331fbd0d-f560-4bde-858f-e05678b42ff0@linux.intel.com> On Mon, Apr 01, 2024 at 11:49:43PM +0800, Binbin Wu wrote: > > > On 2/26/2024 4:26 PM, isaku.yamahata@intel.com wrote: > > From: Sean Christopherson > > > > For virtual IO, the guest TD shares guest pages with VMM without > > encryption. > > Virtual IO is a use case of shared memory, it's better to use it > as a example instead of putting it at the beginning of the sentence. > > > > Shared EPT is used to map guest pages in unprotected way. > > > > Add the VMCS field encoding for the shared EPTP, which will be used by > > TDX to have separate EPT walks for private GPAs (existing EPTP) versus > > shared GPAs (new shared EPTP). > > > > Set shared EPT pointer value for the TDX guest to initialize TDX MMU. > May have a mention that the EPTP for priavet GPAs is set by TDX module. Sure, let me update the commit message. -- Isaku Yamahata