All of lore.kernel.org
 help / color / mirror / Atom feed
From: aq <aquynh@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] scrub_pages in balloon
Date: Mon, 18 Jul 2005 17:45:21 +0900	[thread overview]
Message-ID: <9cde8bff05071801458980b8a@mail.gmail.com> (raw)

[-- 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

             reply	other threads:[~2005-07-18  8:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-18  8:45 aq [this message]
2005-07-18 10:44 ` [PATCH] scrub_pages in balloon Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9cde8bff05071801458980b8a@mail.gmail.com \
    --to=aquynh@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.