From: Tim Deegan Subject: Re: How to create shadow page table of my own? Date: Mon, 21 Feb 2011 10:31:09 +0000 Message-ID: <20110221103109.GB32074@whitby.uk.xensource.com> References: <42c66b.5373.12e46feb9a9.Coremail.yffbrave@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <42c66b.5373.12e46feb9a9.Coremail.yffbrave@163.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: ?????? Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)