From: "Thinker K.F. Li" <thinker@codemud.net>
To: linux-mm@kvack.org
Subject: How to make TLB been flushed?
Date: Sun, 05 May 2013 17:29:40 +0800 (CST) [thread overview]
Message-ID: <20130505.172940.288523891.thinker@eeebox.branda.to> (raw)
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>
reply other threads:[~2013-05-05 9:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20130505.172940.288523891.thinker@eeebox.branda.to \
--to=thinker@codemud.net \
--cc=linux-mm@kvack.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).