[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] EPT specific P2M support for new paging types.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1261031275 0
# Node ID f24609ab0b95d3116e57142ff7cf339f1cfb034d
# Parent  01037b222d745bf1fc07a9720bc1cdb1f70ceed9
EPT specific P2M support for new paging types.

Signed-off-by: Patrick Colp <Patrick.Colp@xxxxxxxxxx>
---
 xen/arch/x86/mm/hap/p2m-ept.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

diff -r 01037b222d74 -r f24609ab0b95 xen/arch/x86/mm/hap/p2m-ept.c
--- a/xen/arch/x86/mm/hap/p2m-ept.c     Thu Dec 17 06:27:55 2009 +0000
+++ b/xen/arch/x86/mm/hap/p2m-ept.c     Thu Dec 17 06:27:55 2009 +0000
@@ -58,6 +58,10 @@ static void ept_p2m_type_to_flags(ept_en
         case p2m_invalid:
         case p2m_mmio_dm:
         case p2m_populate_on_demand:
+        case p2m_ram_paging_out:
+        case p2m_ram_paged:
+        case p2m_ram_paging_in:
+        case p2m_ram_paging_in_start:
         default:
             entry->r = entry->w = entry->x = 0;
             return;
@@ -219,7 +223,8 @@ ept_set_entry(struct domain *d, unsigned
     if ( i == walk_level )
     {
         /* We reached the level we're looking for */
-        if ( mfn_valid(mfn_x(mfn)) || direct_mmio )
+        if ( mfn_valid(mfn_x(mfn)) || direct_mmio || p2m_is_paged(p2mt) ||
+             (p2mt == p2m_ram_paging_in_start) )
         {
             ept_entry->emt = epte_get_entry_emt(d, gfn, mfn, &igmt,
                                                 direct_mmio);

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.