From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dongxiao Xu Subject: [PATCH 2/2] nEPT: fix INVEPT instruction parameter Date: Fri, 25 Jan 2013 16:21:12 +0800 Message-ID: <1359102072-5562-3-git-send-email-dongxiao.xu@intel.com> References: <1359102072-5562-1-git-send-email-dongxiao.xu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1359102072-5562-1-git-send-email-dongxiao.xu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: eddie.dong@intel.com, xiantao.zhang@intel.com, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org While emulating the INVEPT instruction in L0 VMM, the EPT pointer should be fetched from the instruction decoding result, but not the current loaded EPT pointer. Signed-off-by: Dongxiao Xu --- xen/arch/x86/hvm/vmx/vvmx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c index a90736a..740972b 100644 --- a/xen/arch/x86/hvm/vmx/vvmx.c +++ b/xen/arch/x86/hvm/vmx/vvmx.c @@ -1706,7 +1706,7 @@ int nvmx_handle_invept(struct cpu_user_regs *regs) { case INVEPT_SINGLE_CONTEXT: { - struct p2m_domain *p2m = vcpu_nestedhvm(current).nv_p2m; + struct p2m_domain *p2m = p2m_get_nestedp2m(current, eptp); if ( p2m ) { p2m_flush(current, p2m); -- 1.7.1