From: "Jan Beulich" Subject: Re: [PATCH] nested EPT: fix the handling of nested EPT. Date: Tue, 02 Jun 2015 10:06:47 +0100 Message-ID: <556D8E47020000780008011C@mail.emea.novell.com> References: <1433266866-17804-1-git-send-email-liang.z.li@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1433266866-17804-1-git-send-email-liang.z.li@intel.com> 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: Liang Li Cc: kevin.tian@intel.com, keir@xen.org, andrew.cooper3@citrix.com, tim@xen.org, xen-devel@lists.xen.org, Yang Zhang List-Id: xen-devel@lists.xenproject.org >>> On 02.06.15 at 19:41, wrote: > @@ -1074,6 +1075,9 @@ void ept_sync_domain(struct p2m_domain *p2m) > if ( !paging_mode_hap(d) || !d->vcpu || !d->vcpu[0] ) > return; > > + if ( nestedhvm_enabled(d) ) > + p2m_flush_nestedp2m(d); > + > ASSERT(local_irq_is_enabled()); > > /* Looks plausible, but I think the addition would better go after the ASSERT(). Jan