summaryrefslogtreecommitdiff
path: root/sys/uvm
AgeCommit message (Collapse)Author
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
2001-12-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
2001-12-06remove unnecessary newlineNiklas Hallqvist
2001-12-06Keep track of how many pages a vnode hold with vhold and vholdreleArtur Grabowski
so that we can get back the old behavior where a vnode with cached data is less likely to be recycled than a vnode without cached data. XXX - This is a brute-force solution - we do it where uvmexp.vnodepages are changed, I am not really sure it is correct but people have been very happy with the diff so far and want this in the tree.
2001-12-04Yet another sync to NetBSD uvm.Artur Grabowski
Today we add a pmap argument to pmap_update() and allocate map entries for kernel_map from kmem_map instead of using the static entries. This should get rid of MAX_KMAPENT panics. Also some uvm_loan problems are fixed.
2001-12-02VOP_GETPAGES expects the vnode locked. Make it so.Artur Grabowski
Note that VOP_PUTPAGES has the same problems, but the fix will be more complicated.
2001-11-30Now that pmaps can have vm_page_md, make pmap_physseg optional.Artur Grabowski
2001-11-30Kill uvm_pagealloc_contig. The two drivers that still used it should haveArtur Grabowski
been converted to bus_dma ages ago, but since noone haven't bothered to do that I haven't bothered to do more than to test that the kernel still builds with those changes.
2001-11-30Call buf_cleanout, which handles wakeupsConstantine Sapuntzakis
2001-11-29Correctly handle b_vp with bgetvp and brelvp in {get,put}pages.Artur Grabowski
Prevents panics caused by vnodes being recycled under our feet.
2001-11-28Sync in more uvm from NetBSD. Mostly just cosmetic stuff.Artur Grabowski
Contains also support for page coloring.
2001-11-28more sync to netbsd. some bugfixes in uvm_km_kmemalloc, lots of fixes in ↵Artur Grabowski
uvm_loan.
2001-11-28make pmap_virtual_space madatory in all pmaps.Artur Grabowski
2001-11-28pmap_kenter_pgs is not used and not really useful. remove.Artur Grabowski
2001-11-28Sync in more uvm changes from NetBSD.Artur Grabowski
This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
2001-11-27Merge in the unified buffer cache code as found in NetBSD 2001/03/10. TheArtur Grabowski
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
2001-11-15Remove creds from struct buf, move the creds that nfs need into the nfs node.Artur Grabowski
While in the area, convert nfs node allocation from malloc to pool and do some cleanups. Based on the UBC changes in NetBSD. niklas@ ok.
2001-11-12Bring in more changes from NetBSD. Mostly pagedaemon improvements.Artur Grabowski
2001-11-11Sync in more stuff from NetBSD.Artur Grabowski
2001-11-10Move maxdmap and maxsmap to kern_resource.cArtur Grabowski
2001-11-10Merge in some parts of the ubc work that has been done in NetBSD that are notArtur Grabowski
UBC, but prerequsites for it. - Create a daemon that processes async I/O (swap and paging in the future) requests that need processing in process context and that were processed in the pagedaemon before. - Convert some ugly ifdef DIAGNOSTIC code to less intrusive KASSERTs. - misc other cleanups.
2001-11-09various style fixes.Artur Grabowski
2001-11-09minor sync to NetBSD.Artur Grabowski
2001-11-07Another sync of uvm to NetBSD. Just minor fiddling, no major changes.Artur Grabowski
2001-11-07Add an alignment argument to uvm_map that specifies an alignment hintArtur Grabowski
for the virtual address.
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-11-06Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,Artur Grabowski
instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and avoid a multiprocessor race. This commit breaks vax because it doesn't look like any other arch, someone working on vax might want to look at this and try to adapt the code to be more like the rest of the world. Idea and uvm parts from NetBSD.
2001-11-06More sync to NetBSD.Artur Grabowski
- Use malloc/free instead of MALLOC/FREE for variable sized allocations. - Move the memory inheritance code to sys/mman.h and rename from VM_* to MAP_* - various cleanups and simplifications.
2001-11-06Move the last content from vm/ to uvm/Artur Grabowski
The only thing left in vm/ are just dumb wrappers. vm/vm.h includes uvm/uvm_extern.h vm/pmap.h includes uvm/uvm_pmap.h vm/vm_page.h includes uvm/uvm_page.h
2001-11-06Kill vm/vm_param.h, move it to uvm/uvm_param.hArtur Grabowski
2001-11-06Sync to NetBSD.Artur Grabowski
2001-11-06sync to NetBSD.Artur Grabowski
2001-11-06Minor sync to NetBSD.Artur Grabowski
2001-11-05Minor sync to NetBSD.Artur Grabowski
2001-11-01Don't allow negative offsets. Some type confusion.Artur Grabowski
2001-11-01Change d_mmap in struct cdevsw from:Artur Grabowski
int (*d_mmap) __P((dev_t, int, int)); to: paddr_t (*d_mmap) __P((dev_t, off_t, int)); This allows us to mmap devices past 4GB offsets.
2001-10-26 - every new fd created by falloc() is marked as larval and should not be usedArtur Grabowski
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile.
2001-09-20occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok
2001-09-20Avoid leaking memory if uiomove fails.Artur Grabowski
2001-09-19merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okMichael Shalayeff
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-09-05use %ll instead of %qTheo de Raadt
2001-08-31do not init swapdev_vp if it's already done elsewhere; art@ okMichael Shalayeff
2001-08-25Default to disabled zeroing of pages in the idle loop.Artur Grabowski
2001-08-24switch to the optimised AES reference code fromMarkus Friedl
http://www.esat.kuleuven.ac.be/~rijmen/rijndael/rijndael-fst-3.0.zip the same code is used by ssh, so please make sure to update usr.sbin/ssh/rijndael.c if you change this code. tested on sparc (jason) and with swap encryption (me); ok deraadt@, provos@
2001-08-12merge vm_map.h into uvm_map.h, kinda matches netbsd's approachMichael Shalayeff
2001-08-12vm_pager.h no moreMichael Shalayeff
2001-08-12vm_inherit.h no moreMichael Shalayeff
2001-08-12vm_extern.h no moreMichael Shalayeff
2001-08-12moce pglisth into uvm_pglist.hMichael Shalayeff