pgoyette
fa0f1ddde5
Keep condvar wmesg within 8 char limit
2010-08-11 11:51:06 +00:00
pooka
0c2778236c
Don't create the percpu clock interrupt threads as softint threads
...
because they aren't softint threads. This fixes callouts in
situations where there is nothing else happening in the rump kernel
(i.e. no threads executed which would trigger the softints when
they unschedule).
2010-08-10 21:32:38 +00:00
pooka
f762b5222f
Use correct indices for clock threads and more descriptive ones
...
for the softint threads.
2010-08-10 19:16:04 +00:00
hannken
ecb633e650
Correct previous. Skip marker pages in uvm_pagelookup().
...
Already awake :-)
2010-07-29 15:13:00 +00:00
pooka
a481b222d2
Remove questionable KASSERT from previous. hannken can look at
...
this more closely when he wakes up. Normally I wouldn't be in such
a huge rush, but due to atf bug #53 the whole test run breaks now.
At least with the KASSERT removed all tests pass again.
2010-07-29 15:04:04 +00:00
hannken
c84e81cad1
Add vm page flag PG_MARKER and use it to tag dummy marker pages
...
in genfs_do_putpages() and uao_put().
Use 'v_uobj.uo_npages' to check for an empty memq.
Put some assertions where these marker pages may not appear.
Ok: YAMAMOTO Takashi <yamt@netbsd.org>
2010-07-29 10:54:50 +00:00
pooka
dadac8f503
Add select to list on compat syscalls. Makes some code work for
...
me with a nb5 userland without having to compile with -g ;)
2010-07-26 11:52:25 +00:00
pooka
8b9126ba6d
If a thread wake up spuriously, re-set l_mutex to make sure it's
...
still at the original value and not the schedstate one. This makes
select not miss wakeups in cases where there was a lot of selecting
going on (which is not all that common in a rump kernel).
2010-07-23 19:14:14 +00:00
pooka
f3c8997bfe
Reset l_mutex when waking up a thread. select uses it to determine
...
if a thread is still selecting, and would get a KASSERT panic if
the thread had been woken up but not run yet when selnotify() was
called.
2010-07-22 21:00:07 +00:00
hannken
fb62bef947
Make holding v_interlock mandatory for callers of vget().
...
Announced some time ago on tech-kern.
2010-07-21 17:52:09 +00:00
pooka
6138a7dfff
Regen syscalls to get compat header included.
2010-07-19 15:38:55 +00:00
pooka
83ab3e68e5
* move stat syscalls to newstyle compat
...
* implement compat for pollts
2010-07-19 15:33:16 +00:00
pooka
53ef25afeb
regen: stat compat syscalls moved
2010-07-19 15:30:43 +00:00
pooka
7949f6c1c8
Don't provide stat compat syscalls here, they come from
...
rump_syscalls_compat.h now. (besides, I always hated how they were
in the rump_pub_sys namespace instead of the rump_sys namespace)
2010-07-19 15:29:44 +00:00
pooka
5397c7b6af
Ignore errors when copyin/out len == 0.
2010-07-18 12:44:31 +00:00
pooka
a6a5da1df4
support dotdot lookups
2010-07-13 18:08:58 +00:00
pooka
70d05149f8
Implement poor man's (or woman's) fault handler (or handlim).
...
from Stan (or Loretta)
2010-07-12 21:00:47 +00:00
pooka
bc8adcbc79
Assert that l_target_cpu isn't null, just in case we had some memory
...
corruption issues (like passing wrong size to kmem_free ....).
2010-07-11 16:20:39 +00:00
pooka
6a96ed6578
fd_hold() when creating new threads. This makes the fd code use
...
multithreaded mode and actually work with a multithreaded process.
2010-07-11 11:37:24 +00:00
pooka
b3a3054f7d
Reflect change to pool_drain_end. Makes -DRUMP_USE_UNREAL_ALLOCATORS
...
compile (and work) again.
2010-07-11 11:27:47 +00:00
hannken
7296ba383a
Replace vget() with vref()/vn_lock(), this node already has a reference.
2010-07-09 08:10:50 +00:00
pooka
0882d1cc0e
Emulate malloc(9) a little better by panicking if a should-not-fail
...
allocation fails. We could invoke the pagedaemon here, but since
malloc(9) is panicky when it runs out of kmem_map, let's do the
"same".
2010-07-08 11:39:58 +00:00
pooka
15882db1c8
Borrow /dev/mem major from i386 for /dev/null and autogenerate node.
2010-07-07 10:47:39 +00:00
pooka
f8c13e51aa
add /dev/putter to "devfs" (forgot to commit this earlier)
2010-07-07 10:46:20 +00:00
pooka
a98c8e62dd
Support VOP_WHITEOUT (mostly so that unionfs tests don't always
...
need to first mount ffs)
2010-07-03 10:55:47 +00:00
pooka
4ce05210c2
Run vfs component constructors.
2010-06-30 15:48:59 +00:00
pooka
cdb0cb985d
plug memory leaks (of course the function i copypasted for the
...
previous commit was the only one with the leak ...)
2010-06-30 15:40:30 +00:00
pooka
b93b8ba8f5
Implement VOP_SYMLINK/READLINK. The allows me to be a little lazier
...
in other places.
2010-06-30 14:50:35 +00:00
hannken
1423e65b26
Clean up vnode lock operations pass 2:
...
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
pooka
c15f18f449
As normal, fix breakage from untested commits by rmind.
2010-06-23 08:36:03 +00:00
pooka
8b642d489c
Remove overeager checks.
2010-06-22 12:33:15 +00:00
pooka
c063f898e1
regen for vnd (or at least something like that since this file
...
still isn't really generated, just copypasted)
2010-06-21 21:51:22 +00:00
pooka
9cb9168c28
Calculate memory mapping size based on underlying file size, not
...
our window to it. This fixes cases like opening a window at offsets
[8,32] to a file, which would cause host file offset [0,32-8] to
be mapped, i.e. [0,16] inside the window. Obviously, access to
the entire in-window [0,24] range should have been mapped (and
after this fix it is).
2010-06-21 14:25:35 +00:00
pooka
b7652de0db
Give the kernel pmap a container in case some tries to access it
...
via some pmap.h macro.
2010-06-17 08:22:02 +00:00
pooka
44b844dd2d
* support VOP_SEEK
...
* correctly handle VOP_OPEN(FREAD|FWRITE)
* fix host file write offset
2010-06-16 19:26:58 +00:00
pooka
e9abc8e26b
report actual size from read/write vops
2010-06-16 19:03:08 +00:00
pooka
cd3e4f8ebc
Reinstate the blanket pmap.h for archs which do not conform to the
...
kernel ABI (i.e. not i386 or amd64). Due to the "half function,
half macro, all noodles" nature of pmap.h, it's too entangling and
too brittle to keep up with an ifdeffy MI implementation.
2010-06-16 11:45:21 +00:00
pooka
28e6724056
Implement rumpblk_deregister, for unregistering fake block devices
...
(from etfs_deregister). Prompted by use case from njoly.
2010-06-15 18:53:48 +00:00
njoly
eb8e417a7b
Fix some rump_etfs_register/rump_etfs_remove memory leaks.
2010-06-15 17:23:31 +00:00
pooka
771f2275a6
Make it possible to define an upper limit for memory consumed by
...
the rump kernel by specifying RUMP_MEMLIMIT. In case allocation
over that limit is attempted, essentially pool reclaim and uvm_wait()
is done. The default is to allow to allocate as much as the host
will give.
XXX: uvm_km_alloc and malloc(9) do not currently conform. the
former is easy, the latter requires kern_malloc.c (rump malloc is
currently directly relegated to host malloc).
2010-06-14 21:04:56 +00:00
njoly
e97daef49a
Add rmdir(2) support for rump filsystem.
...
With help from pooka.
2010-06-14 13:40:25 +00:00
pooka
f51be744dd
Remove comment which wasn't supposed to get committed.
2010-06-14 13:28:44 +00:00
pooka
0733340220
Make some stubby tty routines used by printf weak aliases, so that
...
the full ones will be used if we have the upcoming tty component
loaded.
2010-06-14 13:25:40 +00:00
pooka
9c6bb4c515
Move FLAWLESSCALL from rump_dev_private.h into rump_private.h
...
so it can be used outside of devices.
2010-06-13 16:49:01 +00:00
pooka
a2b72aafa2
Fix previous in emul.c -- only numbers are operands for cpp comparisons.
...
Apparently non-numbers logically produce arch-dependent behaviour.
2010-06-13 15:17:02 +00:00
pooka
7ed9d6c421
deal with sun3's module disability
2010-06-13 11:35:41 +00:00
pooka
83474ef4e9
add rest of sparc pagesize variables
2010-06-13 11:05:58 +00:00
pooka
4df1419c47
Support rumpkern components and rumpkern components depending on vfs init.
2010-06-12 07:13:54 +00:00
pooka
eacf4402b9
Use kern_proc.c instead of a collection of stubs. But what we
...
really wanted from this commit was the support for proc_specificdata.
TODO: make creating a new process actually use kern_proc and
maybe even add an interface which starts a process with
"any pid you don't like"
2010-06-10 21:40:42 +00:00
pooka
df76692de4
regen: ksem syscalls
2010-06-10 19:10:09 +00:00