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] How to create shadow page table of my own?

To: ?????? <yffbrave@xxxxxxx>
Subject: Re: [Xen-devel] How to create shadow page table of my own?
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Mon, 21 Feb 2011 10:31:09 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 21 Feb 2011 02:45:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <42c66b.5373.12e46feb9a9.Coremail.yffbrave@xxxxxxx>
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>
References: <42c66b.5373.12e46feb9a9.Coremail.yffbrave@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
At 06:53 +0000 on 21 Feb (1298271222), ?????? wrote:
> And now I want to create shadow page table of my own for this two
> sections so that when the kernel use the security server of selinux,
> it will use my own SPT to access code & data rather than the
> auto-generated SPT for the kernel.
> 
> So, where should I begin to achieve my goal, how can I maintain my SPT
> in the hypervisor.  

The shadow pagetable code lives in xen/arch/x86/mm/shadow/.  It shadows
pagetable pages, not address spaces, so if you want to maintain separate
sets of shadow pagetables you might have to duplicate a lot of state. 

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

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