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

[Xen-changelog] [linux-2.6.18-xen] Changed vm_normal_page to return NULL when presented with a VMA marked



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196937804 0
# Node ID 150aa19b1bb1cf4ae5f93fff1c3e3d87e5453e1f
# Parent  4108b5c64f86845c10d56679378d5004777dff43
Changed vm_normal_page to return NULL when presented with a VMA marked
as being VM_FOREIGN.

Signed-off-by: Derek Murray <Derek.Murray@xxxxxxxxxxxx>
---
 mm/memory.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 4108b5c64f86 -r 150aa19b1bb1 mm/memory.c
--- a/mm/memory.c       Wed Dec 05 10:43:46 2007 +0000
+++ b/mm/memory.c       Thu Dec 06 10:43:24 2007 +0000
@@ -395,6 +395,10 @@ struct page *vm_normal_page(struct vm_ar
                if (!is_cow_mapping(vma->vm_flags))
                        return NULL;
        }
+
+       /* XEN: Covers user-space grant mappings (even of local pages). */
+       if (unlikely(vma->vm_flags & VM_FOREIGN))
+               return NULL;
 
        /*
         * Add some anal sanity checks for now. Eventually,

_______________________________________________
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®.