All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scrub_pages in balloon
@ 2005-07-18  8:45 aq
  2005-07-18 10:44 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: aq @ 2005-07-18  8:45 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

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


Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>


$ diffstat scrub.patch 
 balloon.c |    2 ++
 1 files changed, 2 insertions(+)

[-- Attachment #2: scrub.patch --]
[-- Type: application/octet-stream, Size: 557 bytes --]

diff -r 722c372fe201 linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c
--- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Sat Jul 16 16:45:24 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Mon Jul 18 17:30:46 2005
@@ -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);
             }

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-18 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-18  8:45 [PATCH] scrub_pages in balloon aq
2005-07-18 10:44 ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.