WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] page fault handling in Xen

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] page fault handling in Xen
From: jeet <jeet_sat12@xxxxxxxxxxx>
Date: Mon, 5 Mar 2007 18:39:03 +0530 (IST)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年3月05日 05:08:14 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=H9+CMkZ6LcGT9sZ53vnjPA0X/24hIDFWCliZDw9YajGlmLNUzxiBunqH1fUv56ppmSvmQXKOPNTLATcZMiQkDB0rU1pUeTo5G/RugAjrHymuzyzrKaAP2MQQTqtSkUrdvlWZ3C/2lIdkx8nR8vbn0Z46dfvPAjwDHO5+uKG+4eI=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir 
thanks for your reply.I have some more queries
In HVM when guest is executing then processor looks into shadow page table for 
address translation.
as shadow PT contains the guest pt page readonly mapping of guest level 1 page 
table, on which guest OS is trying to write a address of new page. 1
this would cause second VMEXit in Xen. 
so would faulting address be virtual address of that Guest PT page or of the 
shadow PT page which guest is trying to write?
jeet
> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Mkinitramfs wants minimum 2.6.19 kernel! , Jacob Gorm Hansen
Next by Date: Re: [Xen-devel] page fault handling in Xen , Tim Deegan
Previous by Thread: Re: [Xen-devel] page fault handling in Xen , Keir Fraser
Next by Thread: Re: [Xen-devel] page fault handling in Xen , Tim Deegan
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /