CVS commit: src/sys/rump/librump/rumpkern

2015-08-16 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Aug 16 11:06:54 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
Don't use KASSERT() to test for external return values, use panic()

from Robert Millan 


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Aug 20 12:04:30 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern
Added Files:
src/sys/rump/librump/rumpkern: KERN.ioconf

Log Message:
generate ioconf.h for pseudo-device attach prototype


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/rump/librump/rumpkern/KERN.ioconf
cvs rdiff -u -r1.160 -r1.161 src/sys/rump/librump/rumpkern/Makefile.rumpkern

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Aug 21 06:56:12 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern
src/sys/rump/librump/rumpkern/opt: ksyms.h
Removed Files:
src/sys/rump/librump/rumpkern: KERN.ioconf

Log Message:
Remove KERN.ioconf, ksyms does not really need it.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/sys/rump/librump/rumpkern/KERN.ioconf
cvs rdiff -u -r1.161 -r1.162 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/librump/rumpkern/opt/ksyms.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-25 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Aug 25 14:47:27 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
add cpu_getmodel()


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-25 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Aug 25 14:47:40 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: scheduler.c

Log Message:
add ncpuonline


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-25 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Aug 25 14:53:25 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
initialize ncpuonline


To generate a diff of this commit:
cvs rdiff -u -r1.323 -r1.324 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-25 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Aug 25 14:52:59 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
remove mksysctls(), now provided by init_sysctl_base


To generate a diff of this commit:
cvs rdiff -u -r1.322 -r1.323 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-08-31 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Aug 31 07:38:48 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern rump.c

Log Message:
Allow rumpkernel to use rw_obj_*


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.324 -r1.325 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-09-15 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Sep 15 15:09:11 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern

Log Message:
Use the more widely accepted version of alphabetical order.


To generate a diff of this commit:
cvs rdiff -u -r1.163 -r1.164 src/sys/rump/librump/rumpkern/Makefile.rumpkern

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-09-29 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Sep 30 01:31:56 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: locks.c

Log Message:
Remove redundant UNLOCKED and LOCKED

UNLOCKED and LOCKED are done inside mutex_exit and mutex_enter respectively
so we don't need to do them outside mutex_exit and mutex_enter.

Reviewed by pooka@


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-09-29 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Sep 30 02:45:33 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: locks.c

Log Message:
Add lockdebug_barrier

ok pooka@


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-10-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct 14 01:33:32 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: rump_syscalls.c

Log Message:
CID 1327233: Expicitly ignore return values of syscalls that don't fail.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/sys/rump/librump/rumpkern/rump_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-11-26 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov 26 15:13:43 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
Adapt to e_default_mapaddr signature changes


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2015-12-29 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Dec 29 10:22:06 UTC 2015

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
Now that the table of auto-loadable syscalls is per-emulation, make sure
that the rump-kernel has its own list.  Otherwise, missing syscalls won't
trigger a module auto-load.

This commit finishes the work to get tests/lib/librumphijack/t_tcpip
nfs_autoload test case working again after 16 months of failures!  (see
PR bin/49153).


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-01-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jan 18 15:53:38 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
boottime is a timespec, not timeval


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-01-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jan 18 23:21:28 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
massively reduce header pollution from times prehistoric


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-01-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jan 18 23:27:20 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: emul.c lwproc.c

Log Message:
put lwp/proc stuff into the same source module (emul.c -> lwproc.c)


To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.177 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.35 -r1.36 src/sys/rump/librump/rumpkern/lwproc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-01-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Jan 22 04:26:01 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
Fix build with RUMP_LOCKDEBUG=yes


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-02-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Feb 17 01:42:25 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: hyperentropy.c

Log Message:
Make hyperentropy rndsource work synchronously, again.

This time for real!  *crosses fingers*


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/rump/librump/rumpkern/hyperentropy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-02-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Feb 17 01:48:04 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: hyperentropy.c

Log Message:
Caller must have exclusive access to rndsource for rnd_add_data(_sync).


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/rump/librump/rumpkern/hyperentropy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-02-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Feb 17 01:48:36 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: hyperentropy.c

Log Message:
Need  for mutex(9).


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/rump/librump/rumpkern/hyperentropy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-02-19 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri Feb 19 18:38:37 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: scheduler.c

Log Message:
add cpu_lock

from freqlabs on irc


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-03-08 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Mar  8 14:30:48 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Align the message buffer. The kernel routines normally are used only
with page aligned buffers and they assume at least pointer alignment. Be
defensive here and align to 256 Bytes.


To generate a diff of this commit:
cvs rdiff -u -r1.328 -r1.329 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-04-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Apr 11 06:49:11 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern

Log Message:
Add psref to rump kernel


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/rump/librump/rumpkern/Makefile.rumpkern

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-04-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Apr 24 07:45:10 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: lwproc.c

Log Message:
Add lwp_find() - verbatim copy from the hard kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/rump/librump/rumpkern/lwproc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-05-21 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat May 21 14:59:45 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: hyperentropy.c

Log Message:
Actually get as many bytes as requested from rumpuser_random.

rumpuser_random is limited to 32 bytes at a time -- which would be
reasonable, except that there are too many buffers in the way between
entropy sources and users of the entropy pool.

Partial fix for PR kern/51135.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/rump/librump/rumpkern/hyperentropy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2016-07-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jul 20 17:03:50 UTC 2016

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
add uvm_km_protect()


To generate a diff of this commit:
cvs rdiff -u -r1.169 -r1.170 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 14 10:27:53 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern emul.c intr.c rump.c

Log Message:
Include kern_tc and use a timecounter driver instead of homerolled
kern_tc implementation.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.124 -r1.125 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.23 -r1.24 src/sys/rump/librump/rumpkern/intr.c
cvs rdiff -u -r1.159 -r1.160 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 14 10:34:55 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: locks.c

Log Message:
Add comment about clock mismatch.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 14 14:49:05 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern emul.c

Log Message:
Use kern_syscall.c instead of homegrown syscall dis/establishment routines.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.125 -r1.126 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-17 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sat Apr 17 13:13:45 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c scheduler.c

Log Message:
Move scheduling related routines from emul.c to scheduler.c


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-17 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sat Apr 17 16:34:29 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c rump.c

Log Message:
One emul is enough and since we need emul_netbsd, retire emul_rump.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.160 -r1.161 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-19 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Apr 19 11:26:33 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
no \n in panic


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-21 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 21 16:16:31 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern emul.c rump.c
scheduler.c vm.c

Log Message:
support kern_resource


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.130 -r1.131 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.161 -r1.162 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpkern/scheduler.c
cvs rdiff -u -r1.70 -r1.71 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-21 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 21 20:07:02 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
remove stuff which now comes via std. kernel source modules


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-22 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Apr 22 07:10:47 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c signals.c

Log Message:
more signal stuff to group.  no functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/librump/rumpkern/signals.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Apr 26 20:10:23 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Change machine from "rump" to MACHINE so that module_base goes
right.

Now, any guesses on how many archs this seemingly trivial change
will break the principal metric, i.e. The Build(tm)?  Keep the bets
coming in.


To generate a diff of this commit:
cvs rdiff -u -r1.163 -r1.164 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Apr 26 23:17:13 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern
Added Files:
src/sys/rump/librump/rumpkern: kobj_rename.c

Log Message:
Implement kobj_renamespace() for rump.  Support for a few archs is
missing, but that doesn't really matter, since they are living in
their own "everything is a macro" happyland and don't support the
native kernel ABI anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r0 -r1.1 src/sys/rump/librump/rumpkern/kobj_rename.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-27 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Apr 27 23:30:30 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c rump.c rump_private.h
rumpcpu_generic.c scheduler.c
src/sys/rump/librump/rumpkern/arch/i386: rumpcpu.c

Log Message:
Fix multiple virtual cpu support.

... or at least on x86.  CPU_INFO_FOREACH() still isn't MI, and I
don't want to support 2^n different versions.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/rump/librump/rumpkern/intr.c
cvs rdiff -u -r1.164 -r1.165 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.43 -r1.44 src/sys/rump/librump/rumpkern/rump_private.h
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/librump/rumpkern/rumpcpu_generic.c
cvs rdiff -u -r1.11 -r1.12 src/sys/rump/librump/rumpkern/scheduler.c
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-27 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 00:32:30 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
Fix snafu which caused the clock to travel lightspeed.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-27 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 00:42:16 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: scheduler.c

Log Message:
Limit virtual CPUs to MAXCPUS for now.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-27 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 00:43:16 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Make number of virtual CPUs match number of host CPUs on NetBSD/x86 hosts.


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 07:42:56 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
Make initial devsw a little more believable.  Especially adjust
max_sys_devsw, since it was previously a bit too much, given that
the correct value is 0.


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 11:34:18 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
If RUMP_NCPU is set, use that for virtual CPU count instead of
host CPU count.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 14:23:58 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Set l_sysent so that syscall autoload actually works instead of autocores.


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 14:51:08 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Uncrack my brain, buggy let me !be.

In other words, make previous commit to this file actually work.
Funny how it's possible to fix things to not dump core and still
have them not work.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Apr 28 16:34:25 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
Instead of causing a catastrophic failure when uvm_loanuobjpages()
is called, just pretend it hit a wired page and return EBUSY.  This
should cause callers to use a non-loaning access path instead.

Fixes file read path of stock nfs kernel module (previously it was
easy to just frob the nfsd_use_loan boolean into the other position
by simple value assingment, but now that nfsserver can be autoloaded
at runtime into the rump kernel, that approach is a little more
challenging since the variable isn't available in application
linkage.  yes, things like adding a sysctl for the variable would
work, but now everything works out-of-the-box).


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-04-30 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri Apr 30 20:54:17 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern emul.c
Added Files:
src/sys/rump/librump/rumpkern: devsw.c

Log Message:
Include devsw_conv0 from an i386 kernel compilation (no, we don't
care about the arch as long as all the devices we care about are
present).  The file should be autogenerated, but that requires some
more changes to config(1).


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r0 -r1.1 src/sys/rump/librump/rumpkern/devsw.c
cvs rdiff -u -r1.133 -r1.134 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-01 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sat May  1 09:00:06 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
Now that we have a big devsw_conv0, need at least as many entries
in devsw as the highest device number in the conv table.  Do a
"good for a hundred years" guess now, fix properly later.


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-02 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun May  2 11:11:36 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.3

Log Message:
ABC2010 paper


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/rumpkern/rump.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 11 14:06:08 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
uvm_object_printit() should be wrapped in DEBUGPRINT


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 11 14:57:20 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Initialize p_pgrp when creating a new process structure (and not
only for proc0).  This makes something work.  I just can't remember
what it was anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 11 20:25:14 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
adjust comment in previous.
XXX: should make that (and physmem) mean something here


To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 11 22:21:05 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern

Log Message:
Actually, push defining _RUMPKERNEL down to libkern, since it's
not needed elsewhere.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/rump/librump/rumpkern/Makefile.rumpkern

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-12 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May 12 16:48:21 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
fix inversion: advance clock on cpu0, not the complement of cpu0


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri May 14 13:04:14 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
Pick up after people who find build-testing their changes too difficult.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 18 15:12:19 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern locks.c
Added Files:
src/sys/rump/librump/rumpkern: klock.c

Log Message:
Move routines related to kernel locking and scheduling from
locks.c to klock.c.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r0 -r1.1 src/sys/rump/librump/rumpkern/klock.c
cvs rdiff -u -r1.40 -r1.41 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 18 15:16:10 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: klock.c ltsleep.c rump_private.h

Log Message:
Namespace rump-only kernel biglock routines appropriately.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/librump/rumpkern/klock.c
cvs rdiff -u -r1.25 -r1.26 src/sys/rump/librump/rumpkern/ltsleep.c
cvs rdiff -u -r1.45 -r1.46 src/sys/rump/librump/rumpkern/rump_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 18 16:29:36 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern
Added Files:
src/sys/rump/librump/rumpkern: locks_up.c

Log Message:
Add uniprocessor versions of mutex/rw/cv.  They work only on virtual
unicpu configurations (i.e. RUMP_NCPU==1), but are massively faster
than the multiprocessor versions since the fast path does not have
to perform any cache coherent operations.  _Applications_ with
lock-happy kernel paths, i.e. _not_ lock microbenchmarks, measure
up to tens of percents speedup on my Core2 Duo.  Every globally
atomic state required by normal locks/atomic ops implies a hideous
speed penalty even for the fast path.

While this requires a unicpu configuration, it should be noted that
we are talking about a virtual unicpu configuration.  The host can
have as many processors as it desires, and the speed benefit of
virtual unicpu is still there.  It's pretty obvious that in terms
of scalability simple workload partitioning and replication into
multiple kernels wins hands down over complicated locking or
locklessing algorithms which depend on globally atomic state.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r0 -r1.1 src/sys/rump/librump/rumpkern/locks_up.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May 18 16:30:22 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern

Log Message:
Whoops, default to MP locking.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/rump/librump/rumpkern/Makefile.rumpkern

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May 18 20:18:18 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
Add missing include


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May 26 21:48:20 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
print vm object refcount


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri May 28 16:44:14 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c scheduler.c threads.c

Log Message:
Improve the CPU scheduler for a host MP system with multithreaded
access.  The old scheduler had a global freelist which caused a
cache crisis with multiple host threads trying to schedule a virtual
CPU simultaneously.

The rump scheduler is different from a normal thread scheduler, so
it has different requirements.  First, we schedule a CPU for a
thread (which we get from the host scheduler) instead of scheduling
a thread onto a CPU.  Second, scheduling points are at every
entry/exit to/from the rump kernel, including (but not limited to)
syscall entry points and hypercalls.  This means scheduling happens
a lot more frequently than in a normal kernel.

For every lwp, cache the previously used CPU.  When scheduling,
attempt to reuse the same CPU.  If we get it, we can use it directly
without any memory barriers or expensive locks.  If the CPU is
taken, migrate.  Use a lock/wait only in the slowpath.  Be very
wary of walking the entire CPU array because that does not lead to
a happy cacher.

The migration algorithm could probably benefit from improved
heuristics and tuning.  Even as such, with the new scheduler an
application which has two threads making rlimit syscalls in a tight
loop experiences almost 400% speedup.  The exact speedup is difficult
to pinpoint, though, since the old scheduler caused very jittery
results due to cache contention.  Also, the rump version is now
70% faster than the counterpart which calls the host kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.14 -r1.15 src/sys/rump/librump/rumpkern/scheduler.c
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpkern/threads.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-28 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri May 28 18:17:24 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: scheduler.c

Log Message:
Deal with the "we get a portably arbitrary set of headers on
different archs" problem.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-05-31 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon May 31 23:18:33 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: ltsleep.c rump.c rump_private.h

Log Message:
Support mtsleep() without a biglocked sleeper (uvm uses this in
UVM_UNLOCK_AND_WAIT())


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/rump/librump/rumpkern/ltsleep.c
cvs rdiff -u -r1.172 -r1.173 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.46 -r1.47 src/sys/rump/librump/rumpkern/rump_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-01 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Jun  1 10:29:21 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump_private.h vm.c

Log Message:
* remove rumpvm_makepage, just use uvm_pagealloc()
* update copyright to reflect reality a little better


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/rump/librump/rumpkern/rump_private.h
cvs rdiff -u -r1.75 -r1.76 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-01 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Jun  1 19:18:21 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
Always use rumpuser_malloc() for allocating both poolpage and
poolpage_cache -- its bootstrap cost is slightly higher than
anonmmap, but it's faster in the long run.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-02 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Jun  2 10:55:19 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c rump_private.h vm.c

Log Message:
rumpvm_init -> uvm_init to get rid of local prototype.
no functional change


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.48 -r1.49 src/sys/rump/librump/rumpkern/rump_private.h
cvs rdiff -u -r1.78 -r1.79 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-03 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jun  3 10:56:20 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: locks_up.c memalloc.c rump.c
rump_private.h vm.c

Log Message:
Implement a sort-of pagedaemon: adjust all memory allocators to go
through an in-rumpkernel hypermemory allocator which knows it should
kick the pagedaemon and block in case ``waitok'' memory allocation
fails.

This allows us to recover from some out-of-memory situations.
Realworld'istically speaking (as opposed to whatever "should be"
theory), these OOM situations will happen extremely rarely if ever
when our hypervisor is a regular process.  Speculatively, this
should be useful for other types of hosts.

issues remaining:
 * the hypervisor does not know how to reclaim kernel memory (and
   for the reason I stated above, I'm not sure if it makes sense
   to teach the current implementation about that)
 * vfs memory (buffers, vm object pages etc.) is not reclaimed


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/librump/rumpkern/locks_up.c
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/rumpkern/memalloc.c
cvs rdiff -u -r1.174 -r1.175 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.49 -r1.50 src/sys/rump/librump/rumpkern/rump_private.h
cvs rdiff -u -r1.79 -r1.80 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-03 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jun  3 19:36:21 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: memalloc.c threads.c

Log Message:
Don't use rumpuser_malloc() directly.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/librump/rumpkern/memalloc.c
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpkern/threads.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-06 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Jun  6 20:09:38 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern

Log Message:
Make vers.c depend on sys/param.h too, to ensure that this file is
regenerated for on kernel version bump. Avoids __NetBSD_Version__ and
osrelease out of sync problem for mkupdate builds.

ok from po...@.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/rump/librump/rumpkern/Makefile.rumpkern

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-09 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Jun  9 07:54:13 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: locks.c

Log Message:
Similarly to cv_wait, fail if trying to cv_wait_sig() without threads.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-09 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Jun  9 12:02:37 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
On amd64, allocate module_map memory from the lowest 2GB.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-09 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Jun  9 13:51:02 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
initialize specificdata for lwp0 too


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-10 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jun 10 21:40:42 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern emul.c rump.c
rump_private.h rumpcopy.c signals.c vm.c

Log Message:
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"


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.137 -r1.138 src/sys/rump/librump/rumpkern/emul.c
cvs rdiff -u -r1.177 -r1.178 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.50 -r1.51 src/sys/rump/librump/rumpkern/rump_private.h
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/librump/rumpkern/rumpcopy.c \
src/sys/rump/librump/rumpkern/signals.c
cvs rdiff -u -r1.82 -r1.83 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-12 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sat Jun 12 07:13:54 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c rump_private.h

Log Message:
Support rumpkern components and rumpkern components depending on vfs init.


To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.51 -r1.52 src/sys/rump/librump/rumpkern/rump_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-13 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jun 13 11:05:58 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
add rest of sparc pagesize variables


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-13 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jun 13 11:35:41 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
deal with sun3's module disability


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-13 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jun 13 15:17:02 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern emul.c

Log Message:
Fix previous in emul.c -- only numbers are operands for cpp comparisons.
Apparently non-numbers logically produce arch-dependent behaviour.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.140 -r1.141 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jun 14 13:25:40 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jun 14 13:28:45 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
Remove comment which wasn't supposed to get committed.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jun 14 21:04:56 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: locks_up.c memalloc.c rump_private.h
vm.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/rump/librump/rumpkern/locks_up.c
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpkern/memalloc.c
cvs rdiff -u -r1.53 -r1.54 src/sys/rump/librump/rumpkern/rump_private.h
cvs rdiff -u -r1.83 -r1.84 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-21 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jun 21 21:51:23 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: devsw.c

Log Message:
regen for vnd (or at least something like that since this file
still isn't really generated, just copypasted)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/librump/rumpkern/devsw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-06-23 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Jun 23 08:36:03 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
As normal, fix breakage from untested commits by rmind.


To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/sys/rump/librump/rumpkern/emul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Jul  7 10:46:20 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: devsw.c

Log Message:
add /dev/putter to "devfs" (forgot to commit this earlier)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/librump/rumpkern/devsw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-08 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jul  8 11:39:58 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: memalloc.c

Log Message:
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".


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/memalloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jul 11 11:27:47 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: memalloc.c

Log Message:
Reflect change to pool_drain_end.  Makes -DRUMP_USE_UNREAL_ALLOCATORS
compile (and work) again.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/librump/rumpkern/memalloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jul 11 11:37:24 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
fd_hold() when creating new threads.  This makes the fd code use
multithreaded mode and actually work with a multithreaded process.


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-11 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jul 11 16:20:39 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: scheduler.c

Log Message:
Assert that l_target_cpu isn't null, just in case we had some memory
corruption issues (like passing wrong size to kmem_free ).


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-12 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jul 12 21:00:48 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rumpcopy.c

Log Message:
Implement poor man's (or woman's) fault handler (or handlim).

from Stan (or Loretta)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/rump/librump/rumpkern/rumpcopy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jul 18 12:44:31 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: rumpcopy.c

Log Message:
Ignore errors when copyin/out len == 0.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/librump/rumpkern/rumpcopy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-22 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jul 22 21:00:07 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: sleepq.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/rumpkern/sleepq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-23 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Fri Jul 23 19:14:15 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: sleepq.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/librump/rumpkern/sleepq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-29 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jul 29 15:04:04 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-07-29 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Thu Jul 29 15:13:01 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: vm.c

Log Message:
Correct previous.  Skip marker pages in uvm_pagelookup().
Already awake :-)


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-08-10 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Aug 10 19:16:04 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
Use correct indices for clock threads and more descriptive ones
for the softint threads.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-08-10 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Aug 10 21:32:38 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-08-11 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Aug 11 11:51:06 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: sysproxy_socket.c

Log Message:
Keep condvar wmesg within 8 char limit


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/rumpkern/sysproxy_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-08-15 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Aug 15 20:23:04 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: scheduler.c

Log Message:
Increment lwp's context switch counter when it is scheduled onto
a CPU.  This fixes some heavy-load problems with the pool code when
rump kernels essentially lied and caused the pool code not to do
a proper backdown from the fastpath when a context switch happened
when taking a lock.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/rump/librump/rumpkern/scheduler.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2010-08-15 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Aug 15 21:28:33 UTC 2010

Modified Files:
src/sys/rump/librump/rumpkern: intr.c

Log Message:
Implement softints properly: they need to have a schedulable entity
per cpu.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/rump/librump/rumpkern/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   4   5   >