From: Tim Deegan Subject: Re: Writes to guests' page table pages + mem_events Date: Mon, 4 Nov 2013 19:27:25 +0100 Message-ID: <20131104182725.GE45309@deinos.phlegethon.org> References: <5277DA22.4090600@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5277DA22.4090600@gmail.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: Razvan Cojocaru Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Hi, At 19:32 +0200 on 04 Nov (1383589938), Razvan Cojocaru wrote: > looking at pages 6 and 7 of this document: > > http://www-archive.xenproject.org/files/summit_3/XenSummit_Shadow2.pdf > > I see that instructions writing to the page table pages of a guest are > emulated by Xen. > > Does this mean that, assuming that I make a page table page read-only, I > will _not_ receive a mem_event if the guest tries to write to said page? No, it doesn't. That document describes the shadow-pagetable mechanism, which is currently incompatible with mem_event (the mem_event hypercalls check that the guest is using HAP). Aravindh is looking into making (some parts of) mem_event work with PV guests in shadow mode; that will prbably use a quite different mechanims, closer to how log-dirty mode works. Cheers, Tim.