From: Michal Nazarewicz <mina86@tlen.pl>
To: "Gu, Zhongshu" <gzs715@gmail.com>
Cc: kernelnewbies@nl.linux.org, linux-c-programming@vger.kernel.org
Subject: Re: How to make every page of a process in the page table present?
Date: Wed, 28 Jul 2010 22:13:01 +0200 [thread overview]
Message-ID: <871vane56a.fsf@erwin.mina86.com> (raw)
In-Reply-To: <AANLkTin8bzODztNO=qS2AAP5LULm9PSy1-c7gvN_brjw@mail.gmail.com> (Zhongshu Gu's message of "Wed, 28 Jul 2010 13:49:51 -0400")
"Gu, Zhongshu" <gzs715@gmail.com> writes:
> i compiled a static program using gcc on linux and run it under kvm. I
> checked every page table entry of this process in guest memory and
> found that some pages have been mapped and some ones are not. Is this
> the feature of on-demand paging?
> My question is whether there is a solution to make all the pte present
> and mapped in the page table?
> E.g. i fork a new process and load a new elf binary, how to make every
> page mapped in the page table of this new process.
Read a byte from each page?
Why do you need such a thing?
--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86-tlen.pl>--<jid:mina86-jabber.org>--ooO--(_)--Ooo--
next prev parent reply other threads:[~2010-07-28 20:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 17:49 How to make every page of a process in the page table present? Gu, Zhongshu
2010-07-28 20:13 ` Michal Nazarewicz [this message]
2010-07-29 10:23 ` Glynn Clements
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=871vane56a.fsf@erwin.mina86.com \
--to=mina86@tlen.pl \
--cc=gzs715@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-c-programming@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).