All of lore.kernel.org
 help / color / mirror / Atom feed
From: tgh <tianguanhua@ncic.ac.cn>
To: xen-devel@lists.xensource.com
Subject: confused about the balloon code
Date: Sat, 28 Apr 2007 09:13:41 +0800	[thread overview]
Message-ID: <46329FC5.10408@ncic.ac.cn> (raw)
In-Reply-To: <7D748C767B7FA541A8AC5504A4C89A23015685FC@SAUSEXMB2.amd.com>

hi
 I try to understand the code of balloon ,and got confused about the 
following parts of code:

static int decrease_reservation(unsigned long nr_pages)
{
         ....
        if (!PageHighMem(page)) {
            v = phys_to_virt(pfn << PAGE_SHIFT);
            scrub_pages(v, 1);
            ret = HYPERVISOR_update_va_mapping(
                (unsigned long)v, __pte_ma(0), 0);
            BUG_ON(ret);
        }
#ifdef CONFIG_XEN_SCRUB_PAGES
        else {
            v = kmap(page);
            scrub_pages(v, 1);
            kunmap(page);
        }
#endif
     ....
}

I am confused about the scrub_pages(), what is the meaning of 
scrub_pages, when should we use CONFIG_XEN_SCRUB_PAGES
could you help me
Thanks in advance

  parent reply	other threads:[~2007-04-28  1:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-29 16:05 P2M Top Level Page Table Huang2, Wei
2007-03-29 16:41 ` Keir Fraser
2007-03-29 16:46   ` Huang2, Wei
2007-03-29 17:39     ` Keir Fraser
2007-04-28  1:13 ` tgh [this message]
2007-04-28  8:16   ` confused about the balloon code Keir Fraser
2007-04-28  9:06     ` tgh
2007-04-28 18:04     ` Kaushik Barde
2007-04-28 18:37       ` 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=46329FC5.10408@ncic.ac.cn \
    --to=tianguanhua@ncic.ac.cn \
    --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.