From: "Jan Beulich" Subject: hap_invlpg() vs INVLPGA Date: Fri, 29 Jan 2016 06:24:31 -0700 Message-ID: <56AB761F02000078000CC667@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aP92P-0004Ac-Js for xen-devel@lists.xenproject.org; Fri, 29 Jan 2016 13:24:33 +0000 Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Christoph Egger Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Christoph, in commit dd6de3ab99 ("Implement Nested-on-Nested") you added code to hap_invlpg() supposedly emulating INVLPGA. I've been stumbling across this a number of times in the past, not being able to make the connection between (a) VMX/EPT and INVLPGA and (b) SVM's INVLPGA intercept and this function. I'm asking in the context of a reported crash resulting from the nv_p2m field being NULL during emulation of an INVLPG instruction in a guest with nesting enabled but - afaict - not actually used. Of course I could submit a patch adding a NULL check here, but I'd like to understand what this code if for, and hence whether the better fix wouldn't be to get rid of it. Jan