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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Execution Flow when Guest Page Fault

To: Peter Teoh <tthtlc@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Execution Flow when Guest Page Fault
From: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
Date: Mon, 30 Jul 2007 10:44:55 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Jul 2007 02:42:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <05ef01c7d1ed$c36fb200$3101a8c0@eeyore>
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>
References: <05ef01c7d1ed$c36fb200$3101a8c0@eeyore>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
At 22:35 +0800 on 29 Jul (1185748550), Peter Teoh wrote:
> I would like to know approximately the overall execution flow when the guest 
> O/S page fault - how is the page fault transfer to a page fault in the host 
> O/S?

Look at do_page_fault() -- it tries various ways of handling the
pagefault inside Xen (e.g. shadow fault handler, "writeable PT" code, or
fixing up a fault in __copy_from_guest), and if none of them works it
calls propagate_page_fault() to send the fault on to the guest.

The equivalent code for HVM domains is in the exit handlers in svm.c and
vmx.c.  They only handle shadow faults, as the various xen-initiated
faults always go through do_page_fault.

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, XenSource UK Limited
Registered office c/o EC2Y 5EB, UK; company number 05334508

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>