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-changelog

[Xen-changelog] [linux-2.6.18-xen] Changed vm_normal_page to return NULL

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Changed vm_normal_page to return NULL when presented with a VMA marked
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Dec 2007 06:20:15 -0800
Delivery-date: Thu, 06 Dec 2007 06:20:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Changed vm_normal_page to return NULL when presented with a VMA marked, Xen patchbot-linux-2.6.18-xen <=