hi, do you have any plan to use pg->offset of anon pages, or is it an unnecessary side-effect?
YAMAMOTO Takashi > Module Name: src > Committed By: matt > Date: Tue Jan 4 08:26:33 UTC 2011 > > Modified Files: > src/sys/uvm: uvm_extern.h uvm_fault.c uvm_km.c uvm_page.c > > Log Message: > Add better color matching selecting free pages. KM pages will now allocated > so that VA and PA have the same color. On a page fault, choose a physical > page that has the same color as the virtual address. > > When allocating kernel memory pages, allow the MD to specify a preferred > VM_FREELIST from which to choose pages. For machines with large amounts > of memory (> 4GB), all kernel memory to come from <4GB to reduce the amount > of bounce buffering needed with 32bit DMA devices. > > > To generate a diff of this commit: > cvs rdiff -u -r1.167 -r1.168 src/sys/uvm/uvm_extern.h > cvs rdiff -u -r1.178 -r1.179 src/sys/uvm/uvm_fault.c > cvs rdiff -u -r1.106 -r1.107 src/sys/uvm/uvm_km.c > cvs rdiff -u -r1.168 -r1.169 src/sys/uvm/uvm_page.c > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files.