tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using emap for i386/amd64 early during boot



On 20.06.2010 20:00, Mindaugas Rasiukevicius wrote:
Jean-Yves Migeon<jeanyves.migeon%free.fr@localhost>  wrote:
As I have yet to understand the inner workings of emap, I'd like to know
if it is possible to wrap i386_cpu_switch_pmap() around uvm_emap
functions, like this:

[...]
u_int gen = uvm_emap_gen_return();
i386_cpu_switch_pmap(pmap);
uvm_emap_update(gen);
[...]

Sure.  Both calls just get/update the generation numbers (see uvm_emap.c).

However, there are some thoughts to revisit current UVM emap, so I would
suggest you to not spend much time on this (i.e. you can just skip these
calls around TLB flushes for now).

Alright; then I'll go directly to benchmarking/regression testing, patch is in final state for me.

Cheers,

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index