From: Dongxiao Xu Date: Mon, 4 Feb 2013 11:08:15 +0000 (+0100) Subject: nEPT: fix INVEPT instruction parameter X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7322 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f438b1c5452b7358f6b521b2949864823772364e;p=xen.git nEPT: fix INVEPT instruction parameter 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 Acked-by: Eddie Dong Committed-by: Jan Beulich --- diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c index cf4d52096f..4f3f94d3c7 100644 --- a/xen/arch/x86/hvm/vmx/vvmx.c +++ b/xen/arch/x86/hvm/vmx/vvmx.c @@ -1705,7 +1705,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);