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

[Xen-devel] page fault in shadow page-table

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] page fault in shadow page-table
From: "Wu Bingzheng" <wubingzheng@xxxxxxx>
Date: Wed, 3 Jun 2009 14:12:18 +0800 (CST)
Delivery-date: Tue, 02 Jun 2009 23:12:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I am reading shadow memory code in Xen 3.3.0, and have a question.

In HVM guest, if a process writes a non-existing page, what happens:
First, page fault occurs, and traps into Xen. Xen finds out that that page doesn't exist in guest page table, so go back to guest.
The guest fixes this fault in its page table, and writes that page again. Because that page doesn't exist in shadow page table, so another page fault occurs, and traps into Xen again.
Xen finds out it's shadow page fault this time, so it fix this fault in shadow page table, and then go back to guest.
At last, the guest writes that page successfully.

Am I write? 
But in debug, I find out that, there are 3 page faults occurs in fact, the first 2 are guest page fault, and the last one is shadow page fault. 

What step do I miss?

Thanks,
Wu


业务订单流失怎么办?
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] page fault in shadow page-table, Wu Bingzheng <=