Commit Graph

311 Commits

Author SHA1 Message Date
pooka dbeec14d9d Make sure we write a positive length of data. 2008-11-21 18:02:17 +00:00
pooka bedcc68e65 rump_vfs_load() is really rump_module_load(), so call it that and
move it from rumpvfs to rumpkern.
2008-11-21 06:09:51 +00:00
pooka e10fef6cd2 Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code.  File system rumps explicitly need
to include rumpvfs from now on.
2008-11-19 14:10:48 +00:00
ad 20514c29be +evcnt_detach 2008-11-19 12:20:40 +00:00
pooka 72b66cb31e Pass biodone() to rumpuser as a callback instead of hardcoding it.
Also, explicitly init rumpuser async io thread.
2008-11-18 12:39:35 +00:00
pooka 48d146fba6 cwd is logically a vfs concept, so take it out from the bosom of
kern_descrip and into vfs_cwd.  No functional change.
2008-11-18 11:36:58 +00:00
pooka d76a9369e5 Remove rump_vp locking interfaces, use RUMP_VOP instead. 2008-11-17 13:24:14 +00:00
pooka 50cbbdb2d5 No need to .WAIT anymore: headers are done in a separate pass and
binaries are no longer in this subtree.
2008-11-17 10:21:44 +00:00
pooka fa86dc99d5 reregen to get those most important rcsids right 2008-11-17 08:59:33 +00:00
pooka 20a993658a Move rump public headers to include/rump 2008-11-17 08:53:12 +00:00
pooka 85eff24b94 regen 2008-11-17 08:52:18 +00:00
pooka e5da604114 Add more verbose commentage to the module thread non-creation. 2008-11-17 08:43:41 +00:00
pooka 80610738b1 Ignore the module unload thread. 2008-11-17 08:41:28 +00:00
pooka 98bf46c51a <sys/buf.h> police 2008-11-16 18:44:07 +00:00
pooka 9c3d490eb5 regen 2008-11-16 18:41:05 +00:00
pooka ab7329f0f7 explicitly include <sys/buf.h> since we explicitly use it 2008-11-16 18:37:28 +00:00
pooka fe762e15b2 Clearly state that VOP_BMAP panic in putpages is because I'm a lazy bum.
(although I can't really think of any scenario where VOP_BMAP could
legally fail)
2008-11-14 11:57:07 +00:00
christos d296aa9163 fix compilation and lint warnings. 2008-10-30 01:54:24 +00:00
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
wrstuden 7e10f527c2 Regen syscall tables. I forgot to do it after revivesa. While pooka
did some, not all are regenerated. Do them all at once for consistency.
2008-10-16 20:12:23 +00:00
pooka 7555810672 regen: ioctl 2008-10-16 19:33:11 +00:00
pooka 710b373bce Before I sort all the COMPAT_RIDICULOUSLYPREHISTORIC ioctl stuff
out, add a weak alias for ifunit() so that utils can be linked with
sockin.
2008-10-16 19:27:24 +00:00
pooka 19b5350e77 call rump_netisr_init() 2008-10-16 16:41:07 +00:00
pooka 346ffecff3 ...... except that the compat converter is actually supposed to convert
the ioctl, not return random garbage.  It returning random garbage
causes an interface with an interesting netmask to get set and
hence a very interesting effect when you try to add a route for
your system.

All in all, a very healthy debugging session (if you're a vampire
or a wraith).
2008-10-16 16:40:39 +00:00
pooka a60de16dcb ... except that compat_ifioctl() must know how to route the
commands further.
2008-10-16 15:02:10 +00:00
pooka 61c2d7025c Add a few compat stubs. They shouldn't be required at all, but I
don't currently have the time to wage a holy war against how the
kernel decides it wants them.
2008-10-16 14:38:39 +00:00
pooka 1ff56ab29e One more init I happened to forget: iostat_init() 2008-10-15 20:15:37 +00:00
pooka 8fb0c4b043 Add support bits necessary for rumpnet functionality. 2008-10-15 13:04:26 +00:00
pooka f7c6dc5e73 provide rumpuser_net_connect() 2008-10-15 13:02:29 +00:00
pooka 687fd3f77a regen: few networking calls 2008-10-15 13:02:01 +00:00
pooka ab368d7178 Add the basic rump networking library, which provides e.g. sockets
and mbufs.  This is required by all network-using rump applications.
2008-10-15 13:00:39 +00:00
ad 1ec58d56ef - Rename cpu_lookup_byindex() to cpu_lookup(). The hardware ID isn't of
interest to MI code. No functional change.
- Change /dev/cpu to operate on cpu index, not hardware ID. Now cpuctl
  shouldn't print confused output.
2008-10-15 08:13:17 +00:00
wrstuden 4fb41e761e Merge wrstuden-revivesa into HEAD. Catch some files that I forgot
to revive on HEAD in previous commit.
2008-10-15 06:52:38 +00:00
wrstuden fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
pooka 6fd4c68b67 Add some more trivial emulations. 2008-10-14 10:42:27 +00:00
pooka a48233737f score some stubs 2008-10-14 10:32:38 +00:00
pooka 1c4adfb91b award unlimited sbsize rlimit 2008-10-13 19:41:13 +00:00
pooka c4be8eb459 regen: properly create weak references to sys_foo() 2008-10-13 18:17:43 +00:00
pooka 0473281d9b rump_enosys() is autogenerated into rump_syscalls (makes things
actually work)
2008-10-13 18:17:07 +00:00
pooka c65f514a40 Add uid_init() I managed to miss earlier. 2008-10-13 18:03:53 +00:00
pooka d10342d64b regen - weak aliasing for default syscall 2008-10-13 16:25:52 +00:00
pooka 42349670d9 add rump_enosys() 2008-10-13 16:20:09 +00:00
pooka 28f7a87951 Provide psignal() so that we don't get linked against psignal(3).
As there is no real process model currently, just "trap" the signals
appropriately.
2008-10-13 11:14:14 +00:00
pooka 123cb9861c Add callout inits which I managed to not commit earlier with the
rest of the callout stuff.

problem noticed by Arnaud Ysmal
2008-10-12 18:52:56 +00:00
pooka 2027ca6b58 Include <machine/cpu> for the benefit of archs where it doesn't happen
accidentally automagically.

Pointed out by Havard.
2008-10-11 16:23:24 +00:00
pooka 7e5aba5af0 Move uidinfo to its own module in kern_uidinfo.c and include in rump.
No functional change to uidinfo.
2008-10-11 13:40:57 +00:00
pooka be7784b146 Provide time_uptime and push it forward every now and then if we happen
to have the timer thread.  rump uptime - woohoo.
2008-10-10 21:00:30 +00:00
pooka 1fbd8b20a8 * implement uvm_km_alloc/free_poolpage()
* add silly stubs for uvm_lwp_hold/rele()
2008-10-10 20:51:44 +00:00
pooka 02758afb77 reorganize routines a bit better. no functional change 2008-10-10 20:45:21 +00:00
pooka b34df86410 remember to call percpu_init() 2008-10-10 20:24:10 +00:00