]> xenbits.xensource.com Git - people/ssmith/nc2-2.6.27.bak/.git/commitdiff
patch get_user_pages_fast-support-foreign-pages.patch
authorSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:19 +0000 (11:54 +0100)
committerSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:19 +0000 (11:54 +0100)
arch/x86/mm/gup.c

index 007bb06c750477b60c158f667f5d0563c2d77433..d8fb075adef47f61b3841b2bd7e57db74f552ff5 100644 (file)
@@ -236,6 +236,11 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write,
                                        start, len)))
                goto slow_irqon;
 
+#ifdef CONFIG_XEN
+       if (unlikely(mm->context.has_foreign_mappings))
+               goto slow_irqon;
+#endif
+
        /*
         * XXX: batch / limit 'nr', to avoid large irq off latency
         * needs some instrumenting to determine the common sizes used by