From: Tim Deegan Subject: Nested EPT flushes on p2m change? Date: Thu, 26 Mar 2015 11:09:53 +0000 Message-ID: <20150326110953.GD6519@deinos.phlegethon.org> 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 1Yb5fg-0001Wo-2C for xen-devel@lists.xenproject.org; Thu, 26 Mar 2015 11:09:56 +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: Jun Nakajima , Eddie Dong , Kevin Tian Cc: xen-devel@lists.xenproject.org, Ed White , Zhang Xiantao List-Id: xen-devel@lists.xenproject.org Hi, VMX maintainers, I was looking at the nested EPT code while following up on Ed's email about altp2m design, and I can't see where nested-EPT entries get removed when a host EPT entry is removed/changed. On nested NPT, this is handled in hap_write_p2m_entry(), which detects that the domain has nested p2ms and calls p2m_flush_nestedp2m() if necessary. But nested EPT doesn't use the ->write_p2m_entry() hook to update entries, it uses atomic_write_ept_entry() instead. AFAICS the only flushing done on that path is ept_sync_domain(), which doesn't do anything about nested p2ms. Am I forgetting something? Cheers, Tim.