Skip to contentSkip to conversation

scrub_pages in balloon

PATCH In review aq 2 participants 2 messages Jul 18, 2005

lore
Share & tools
lore

aq

author
#0 lore raw

PATCH 1/1 scrub_pages in balloon

This patch makes balloon driver only scrubs page when CONFIG_XEN_SCRUB_PAGES enabled.

$ diffstat scrub.patch 
 balloon.c |    2 ++
 1 files changed, 2 insertions(+)
linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c +2 -0
diff -r 722c372fe201 linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c
@@ -244,7 +244,9 @@
             if ( !PageHighMem(page) )
             {
                 v = phys_to_virt(pfn << PAGE_SHIFT);
+#ifdef CONFIG_XEN_SCRUB_PAGES
                 scrub_pages(v, 1);
+#endif
                 HYPERVISOR_update_va_mapping(
                     (unsigned long)v, __pte_ma(0), 0);
             }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 2 lines · aq

This patch makes balloon driver only scrubs page when CONFIG_XEN_SCRUB_PAGES enabled.

Not required. The macro already is conditional.

-- Keir