Commit Graph

1395 Commits

Author SHA1 Message Date
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
pooka
066824f414 * use atomic ops instead of __cpu_simple_luck
* this interface is un-IFF_SIMPLEX
2010-08-10 18:17:12 +00:00
pooka
8a20e6b473 * improve diagnostic print
* deal with a tap quirk when it returns 0 bytes
2010-08-10 18:06:10 +00:00
pooka
fffcd29dff Attach component to make it work after defpseudodev conversion
(yea, i need to fix the infrastructure for this).
2010-08-03 19:55:17 +00:00
pooka
316bb4eafe * print interface number, backend path and ethernet address for dmesg
* make kassert more demanding
2010-07-29 22:48:11 +00:00
pooka
334470517a * increase bus size so that we don't wrap so quickly when NFS
flushes writes
* verbosize debug print a bit
2010-07-29 18:30:39 +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
hannken
4d87516177 Regen. LK_INTERLOCK is gone. 2010-07-28 09:32:13 +00:00
pooka
07196c5dd8 Descend into nfsserver, i.e. build & install the kernel nfs server bits. 2010-07-26 15:55:41 +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
pgoyette
01497b95ec Convert swwdog(4) from a simple defpseudo device to a defpseudodev so
that we can attach a power management handler.  The handler prevents
a suspend if the watchdog is active, to be consistent with other
watchdog drivers.

As discussed on tech-kern.
2010-07-22 14:10:14 +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
6ca15e9cbd regen from ages ago (to get rcsid consistent) 2010-07-19 15:38:28 +00:00
pooka
868e8536ec Add some forward declarations used by the interfaces. 2010-07-19 15:38:03 +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
abfc763eb1 add rump_syscalls_compat.h 2010-07-19 15:28:18 +00:00
pooka
5397c7b6af Ignore errors when copyin/out len == 0. 2010-07-18 12:44:31 +00:00
rmind
bcc65ff09f Split-off IPv4 re-assembly mechanism into a separate module. Abstract
into ip_reass_init(), ip_reass_lookup(), etc (note: abstraction is not
yet complete).  No functional changes to the actual mechanism.

OK matt@
2010-07-13 22:16:10 +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
2c9dc3f982 remember to add the new file to the build 2010-07-06 16:13:57 +00:00
pooka
c0f3dfaa52 Fix pointer assignment in previous commit (test compile works better
when you do it with the #defines which actually compile the code
in question).
2010-07-04 15:44:46 +00:00
pooka
54c71dee8c Use a bit more than 1 byte of space for routing messages. 2010-07-04 15:31:04 +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
hannken
f4a7cbc30c Regen. LK_TYPEMASK and LK_RELEASE are gone. 2010-07-02 10:45:16 +00:00
hannken
24578944a7 LK_* flags moved to sys/vnode.h 2010-07-02 10:44:26 +00:00
pooka
c9602161d3 Make putter its own component: rumpdev_putter. It was coupled in
with rumpfs_puffs for prehistoric reasons which are no longer valid
(namely, only fs components existed back then and there was no /dev
support in rump fs namespace).
2010-06-30 16:14:18 +00:00
pooka
5551d3c53c add component constructor to create /dev/puffs -> putter symlink 2010-06-30 15:50:20 +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
kefren
826653c190 Add MPLS support, proposed on tech-net@ a couple of days ago
Welcome to 5.99.33
2010-06-26 14:24:27 +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
hannken
da75ace1d5 Regen. LK_EXCLOTHER has gone. 2010-06-24 07:56:22 +00:00
pooka
c15f18f449 As normal, fix breakage from untested commits by rmind. 2010-06-23 08:36:03 +00:00