From: Keir Fraser Subject: Re: page fault handling in Xen Date: Mon, 05 Mar 2007 08:19:37 +0000 Message-ID: References: <77764.294.qm@web8811.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <77764.294.qm@web8811.mail.in.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jeet , Tim Deegan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 5/3/07 06:29, "jeet" wrote: > Above code will execute and in inner unlikely condition will be true as PT > table is read only and error is write_access > and control will go to not_a_shadow_fault? > > so when the emulation code would be executed for the write that has been > performed on read only guest PT for adding entry in > guest page table by guest? > > Have I missed some thing here in understanding Yes: guest PTs are mapped with write permissions in the guest PTs. It's only in the shadow PTs that the guest PTs are mapped read-only. The test on accumulated_gflags is looking at the access permissions in the guest PTs. -- Keir