kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* What will happen on attempt to write to read-only page when CONFIG_MEM_SOFT_DIRTY is off ?
@ 2019-03-11  7:27 Lev Olshvang
  0 siblings, 0 replies; only message in thread
From: Lev Olshvang @ 2019-03-11  7:27 UTC (permalink / raw)
  To: kernelnewbies, linux-il

Hello all,
Please help me to clarify what will page fault handler do (if any)

File arch/x86/include/asm/pgtable_types.h have following comment for  2  PAGE_DIRTY_BITs

#define _PAGE_BIT_DIRTY		6	/* was written to (raised by CPU) */
_PAGE_BIT_SOFT_DIRTY	_PAGE_BIT_SOFTW3 /* software dirty tracking */

While documentation clearly explains that Page Fault handler sets second flag
https://www.kernel.org/doc/Documentation/vm/soft-dirty.txt

I do not have idea what will happen when tracking Soft Dirty flags is off, I suppose the answer is in mm/gup.c 
but I was not able to track it to page handler.

Thanks you all.
Lev.



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-11  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11  7:27 What will happen on attempt to write to read-only page when CONFIG_MEM_SOFT_DIRTY is off ? Lev Olshvang

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).