Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1886794pxv; Fri, 2 Jul 2021 15:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwQiB1wRGSblpKLHXf8vIeEB2QTlAvXinNaH7B/d3FJsaPHoyNju57jcWm9lLCDFVqvQf1 X-Received: by 2002:a05:6402:49a:: with SMTP id k26mr1946046edv.279.1625263863270; Fri, 02 Jul 2021 15:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625263863; cv=none; d=google.com; s=arc-20160816; b=MOyhmuTmr/HDf20/c2U3vJfOJ8zsTh9N1v136q4FCLu8Zk367ngLdEEHrJoxizx17d kpWwlQRi9lVcRfUUPH82ivcFKjBK4Jm73Wd/SAt01oznFY6iIOEiKfg8Y3z/dIcMDTwo RXllzdZsI4w3jKwYlhVpNEG/jdpbTlYTZf1XA+w8SCwksBESA52bsrA860nI427s53ap c1wSf/iUEbFE2kPSyyvX8Ejqp/P3zuPRvZMVed+44mXcrjMpIWLu0KimMdK20q8X+f7r sxBjfwu7W5HWT6G7dw0okzPygHtD9OmodNGSs+1JR+ItXWfWZ8nNAi5L0w3c9zHtoa8D LLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=aJq8/JZJucKtXf23hEGIfFo7gx5wY34BUoKcwB0873I=; b=NdFPfl/V4E7wXSPEevgN38pD/CI0r9xnXxFFxkvM6roCtATEgZBr4ehGBqMRIttpkI UqDJjrqLzt6M40OHueJ9lrKryoBDGVls6D/P8F/p0XSZP6XKH9x1rd5h0RK+bRKXp91w 9KvNTpC3qsjX/UXutcKj1+j+rPx4TfbGZqSCe8HOchlU0VD+wEShol0yEN4VgwTqMw5A 60T5fHTrQAXJKkG3opO6qclSh3TFOul07LMtH/asyU8jPuTSXlPN7hd8bD1hCr0mKXBz O3ii0goyCmTL49I4EdkETlBIK0FYBVo4qQdAAiiCODiRK+lDRqoqiEw873u4N6hQcFz9 X9Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd38si4612813ejc.558.2021.07.02.15.10.40; Fri, 02 Jul 2021 15:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233634AbhGBWJd (ORCPT + 99 others); Fri, 2 Jul 2021 18:09:33 -0400 Received: from mga17.intel.com ([192.55.52.151]:15270 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233367AbhGBWIJ (ORCPT ); Fri, 2 Jul 2021 18:08:09 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10033"; a="189168385" X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="189168385" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:30 -0700 X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="642814858" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:29 -0700 From: isaku.yamahata@intel.com To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: isaku.yamahata@intel.com, isaku.yamahata@gmail.com, Sean Christopherson Subject: [RFC PATCH v2 54/69] KVM: VMX: Define VMCS encodings for shared EPT pointer Date: Fri, 2 Jul 2021 15:05:00 -0700 Message-Id: <9d24d2d63de110962f85f66ce84250967436f96b.1625186503.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Christopherson 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). Signed-off-by: Sean Christopherson Signed-off-by: Isaku Yamahata --- arch/x86/include/asm/vmx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h index 132981276a2f..56b3d32941fd 100644 --- a/arch/x86/include/asm/vmx.h +++ b/arch/x86/include/asm/vmx.h @@ -235,6 +235,8 @@ enum vmcs_field { ENCLS_EXITING_BITMAP_HIGH = 0x0000202F, TSC_MULTIPLIER = 0x00002032, TSC_MULTIPLIER_HIGH = 0x00002033, + SHARED_EPT_POINTER = 0x0000203C, + SHARED_EPT_POINTER_HIGH = 0x0000203D, GUEST_PHYSICAL_ADDRESS = 0x00002400, GUEST_PHYSICAL_ADDRESS_HIGH = 0x00002401, VMCS_LINK_POINTER = 0x00002800, -- 2.25.1