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] Two shadow page tables for HVM

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Two shadow page tables for HVM
From: "Sina Bahram" <sbahram@xxxxxxxxx>
Date: Wed, 17 Dec 2008 22:50:29 -0500
Delivery-date: Wed, 17 Dec 2008 19:51:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <494985DF.9040701@xxxxxxxx>
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>
Organization: Sina Bahram
References: <494985DF.9040701@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclgnCGAS6pcl3t0S8+6LTELuFRscwAJxoww
Not sure it will help what-so-ever, but if you look up any posts that I've
made to this list and some of their responses, you'll get "some" information
related to this topic.

I'd love to hear answers to this post.
 
Take care,
Sina

-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Emre Can Sezer
Sent: Wednesday, December 17, 2008 6:06 PM
To: Xen Devel
Subject: [Xen-devel] Two shadow page tables for HVM

Hi,

As part of my research I am going to play around with page permissions.  
However, I might have to do this pretty often, so I'm thinking about 
having two page tables that are synchronized and only differ in their 
permissions.  The idea is to have a set of permissions when code block A 
is being executed and another set when block B is being executed.  I 
plan to capture execution jumps by specifying the inactive block as 
non-executable.

I am running a HVM guest on a x86_64 machine.  I'm only interested in 
kernel pages, in that I don't have to have a second page table for user 
level pages as their permissions will be the same.

So far I can think of only two ways of doing this.  First, I can have 
two top level shadow page tables and use one of the unused slots in 
struct arch_domain to store this page.  Then I modify 
propagate_l*e_from_guest functions to ensure that they create and 
synchronize the second page table.  Second, I can have pages that are 
twice as large as original page tables.  I'm not sure what the 
implications are concerning shadow cache and the linear page table 
mappings. 

Which one of these methods would be easier to implement?  Is there an 
easier way of having two sets of page tables?  If I had the means, would 
it be worth switching to AMD for the NPT?

Thanks in advance,

John


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


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

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