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

[Xen-changelog] [xen-3.0-testing] [LINUX] Only destroy a machine-contiguous memory region if



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 02159733ec97aaeed6edaebecdc0e3b95d2e2dea
# Parent  6ce2965720ee2ed191700834102e867009ea14ce
[LINUX] Only destroy a machine-contiguous memory region if
it really is contiguous (e.g., create_contiguous did not fail).
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   10353:bd1a0b2bb2d4596227951ad6d36cb4fcc2d00a8e
xen-unstable date:        Thu Jun 15 11:35:23 2006 +0100
---
 linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 6ce2965720ee -r 02159733ec97 
linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c
--- a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c    Wed Jun 14 11:44:09 
2006 +0100
+++ b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c    Thu Jun 15 11:36:57 
2006 +0100
@@ -365,7 +365,8 @@ void xen_destroy_contiguous_region(unsig
                .domid        = DOMID_SELF
        };
 
-       if (xen_feature(XENFEAT_auto_translated_physmap))
+       if (xen_feature(XENFEAT_auto_translated_physmap) ||
+           !test_bit(__pa(vstart) >> PAGE_SHIFT, contiguous_bitmap))
                return;
 
        scrub_pages(vstart, 1 << order);

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