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

[Xen-changelog] [xen-unstable] Don't scrub broken pages



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265624294 0
# Node ID 391cb20b6ea96d6f36b3647927744bf0e4057c5b
# Parent  f330b15f885ded7ee26594bd8ab27e206e2cb4cc
Don't scrub broken pages

Don't touch the poison pages when scrub the pages. Consuming poison
page will contaminate the CPU context and may cause system crash.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
---
 xen/common/page_alloc.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r f330b15f885d -r 391cb20b6ea9 xen/common/page_alloc.c
--- a/xen/common/page_alloc.c   Mon Feb 08 10:14:48 2010 +0000
+++ b/xen/common/page_alloc.c   Mon Feb 08 10:18:14 2010 +0000
@@ -1256,6 +1256,9 @@ void scrub_one_page(struct page_info *pg
 {
     void *p = __map_domain_page(pg);
 
+    if ( unlikely(pg->count_info & PGC_broken) )
+        return;
+
 #ifndef NDEBUG
     /* Avoid callers relying on allocations returning zeroed pages. */
     memset(p, 0xc2, PAGE_SIZE);

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