All of lore.kernel.org
 help / color / mirror / Atom feed
* Two shadow page tables for HVM
@ 2008-12-17 23:06 Emre Can Sezer
  2008-12-18  3:50 ` Sina Bahram
  2008-12-18 11:32 ` Tim Deegan
  0 siblings, 2 replies; 13+ messages in thread
From: Emre Can Sezer @ 2008-12-17 23:06 UTC (permalink / raw)
  To: Xen Devel

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-01-30 16:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 23:06 Two shadow page tables for HVM Emre Can Sezer
2008-12-18  3:50 ` Sina Bahram
2008-12-18 11:32 ` Tim Deegan
2008-12-22 18:28   ` Emre Can Sezer
2008-12-23 12:03     ` Gianluca Guida
     [not found]   ` <494FC8C7.8030508@ncsu.edu>
     [not found]     ` <20081223161006.GB28336@york.uk.xensource.com>
2008-12-29 16:17       ` Emre Can Sezer
     [not found]       ` <4958F7E0.8050207@ncsu.edu>
     [not found]         ` <20081229165415.GB5734@york.uk.xensource.com>
2009-01-09 22:08           ` Emre Can Sezer
2009-01-12  9:46             ` Tim Deegan
2009-01-27  0:39               ` Emre Can Sezer
2009-01-27 10:34                 ` Tim Deegan
2009-01-27 19:07                   ` Emre Can Sezer
2009-01-28  9:25                     ` Tim Deegan
2009-01-30 16:15                   ` Emre Can Sezer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.