From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: [PATCH 09/11] nEPT: handle invept instruction from L1 VMM Date: Thu, 13 Dec 2012 16:56:46 +0000 Message-ID: <20121213165646.GO75286@ocelot.phlegethon.org> References: <1355162243-11857-1-git-send-email-xiantao.zhang@intel.com> <1355162243-11857-10-git-send-email-xiantao.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1355162243-11857-10-git-send-email-xiantao.zhang@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: xiantao.zhang@intel.com Cc: keir@xen.org, xen-devel@lists.xensource.com, eddie.dong@intel.com, JBeulich@suse.com, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org At 01:57 +0800 on 11 Dec (1355191041), xiantao.zhang@intel.com wrote: > From: Zhang Xiantao > > Add the INVEPT instruction emulation logic. > > Signed-off-by: Zhang Xiantao Looks fine, but you have some whitespace problems... > +int nvmx_handle_invept(struct cpu_user_regs *regs) > +{ > + struct vmx_inst_decoded decode; > + unsigned long eptp; > + u64 inv_type; > + > + if ( decode_vmx_inst(regs, &decode, &eptp, 0) > + != X86EMUL_OKAY ) > + return X86EMUL_EXCEPTION; > + > + inv_type = reg_read(regs, decode.reg2); > + gdprintk(XENLOG_DEBUG,"inv_type:%ld, eptp:%lx\n", inv_type, eptp); > + > + switch (inv_type){ here > + case INVEPT_SINGLE_CONTEXT: > + { > + struct p2m_domain *p2m = vcpu_nestedhvm(current).nv_p2m; > + if ( p2m ) > + { > + p2m_flush(current, p2m); > + ept_sync_domain(p2m); and again here (hard tabs) > + } > + } > + break; and again. With those fixed, Acked-by: Tim Deegan (again with the caveat that this isn't under x86/mm) Cheers, Tim.