linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Endless page fault for the same miss address in my UML
@ 2013-04-06 19:23 Terry Hsu
  2013-04-07 16:52 ` richard -rw- weinberger
  0 siblings, 1 reply; 13+ messages in thread
From: Terry Hsu @ 2013-04-06 19:23 UTC (permalink / raw)
  To: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 822 bytes --]

Hello guys,

Is there any available resource that explains how user-mode-linux maps the
pages of a task in UML to the host kernel?

In my UML, I modified a task's page table when forking it. Then I ran into
a situation where the page fault happens over and over again for the same
address in the forked task. I use gdb debugger and find out that when the
page fault happens for the first time, the kernel calls do_wp_page() to
fault in the page and marks the page present. This should prevent the next
page fault for the same address from happening again. I checked the PTE in
UML, they are marked as present so is it possible that the page is not
being allocated properly on the host kernel so that the page fault keeps
happening for the same address even though UML thinks the page is present.

Any suggestions?

Thank!

[-- Attachment #1.2: Type: text/html, Size: 984 bytes --]

[-- Attachment #2: Type: text/plain, Size: 351 bytes --]

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

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

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2013-04-13  9:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-06 19:23 [uml-devel] Endless page fault for the same miss address in my UML Terry Hsu
2013-04-07 16:52 ` richard -rw- weinberger
2013-04-07 18:30   ` Peter Butler
2013-04-07 21:55     ` richard -rw- weinberger
2013-04-11  4:15   ` Terry Hsu
2013-04-11 13:04     ` richard -rw- weinberger
2013-04-11 20:14       ` Terry Hsu
2013-04-11 21:19         ` richard -rw- weinberger
2013-04-11 23:00           ` Terry Hsu
2013-04-12  5:14             ` Terry Hsu
2013-04-12 19:58               ` Terry Hsu
2013-04-13  2:59               ` Terry Hsu
2013-04-13  9:22                 ` richard -rw- weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox