projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
845a7c8
)
mm: don't poison a page if scrub_debug is off
author
Boris Ostrovsky
<boris.ostrovsky@oracle.com>
Fri, 1 Sep 2017 09:06:03 +0000
(11:06 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 1 Sep 2017 09:06:03 +0000
(11:06 +0200)
If scrub_debug is off we don't check pages in check_one_page().
Thus there is no reason to ever poison them.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/common/page_alloc.c
patch
|
blob
|
history
diff --git
a/xen/common/page_alloc.c
b/xen/common/page_alloc.c
index 2c7675b4d538ed8518f9ffa9892d77b44303df50..2b8bb953695c514b772fa308a33c29adbecd5962 100644
(file)
--- a/
xen/common/page_alloc.c
+++ b/
xen/common/page_alloc.c
@@
-714,6
+714,9
@@
static void poison_one_page(struct page_info *pg)
mfn_t mfn = _mfn(page_to_mfn(pg));
uint64_t *ptr;
+ if ( !scrub_debug )
+ return;
+
ptr = map_domain_page(mfn);
*ptr = ~SCRUB_PATTERN;
unmap_domain_page(ptr);