* How to make TLB been flushed?
@ 2013-05-05 9:29 Thinker K.F. Li
0 siblings, 0 replies; only message in thread
From: Thinker K.F. Li @ 2013-05-05 9:29 UTC (permalink / raw)
To: linux-mm
I am working on COW features to allow processes mapping anonymous
pages from a source address to another target address, in the same
process or crossing processes, so both the source and the target would
be shared and COW. So, we can implement memcpy() with COW for big
chunks of memory, to reduce traffic of memory bus and memory
consumption.
My question is how to flush TLB after change pte entries?
I have implemented my idea as a kernel module. I have read
Documents/cacheflush.txt, and try to call flush_tlb_range() or
flush_tlb_all(), but their symbols are not exported, they can not be
used by kernel module code. Is there any other way to flush TLB? Or
I should implement it as a part of kernel instead of as a kernel
module.!?
For now, my temporary solution is to change kernel code to export
symbols that I need.
I had tested the code on my desktop and qemu, but I am not sure it is
100% right. There are some known issues; for example, rmap. But, it
can run now. So, I also need testing, review and feedback from people
here to make it more mature.
You can find the source here,
https://bitbucket.org/thinker/memcow
Any feedback is welcomed!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-05 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-05 9:29 How to make TLB been flushed? Thinker K.F. Li
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).