Commit Graph

423 Commits

Author SHA1 Message Date
pooka afbf917f75 Alpha requires 8k pages for mbuf size calculation to work (maybe
sparc64 too?).  Make it so.
2008-10-16 22:05:12 +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
christos 75e8ce56c6 revert stack protector change. 2008-10-16 19:35:07 +00:00
pooka 7555810672 regen: ioctl 2008-10-16 19:33:11 +00:00
pooka 6d68e64d68 Add an example of how to configure the virtual interface address
and the default gateway.

(this will probably go into some library eventually, but now it'll
just sit here as an example)
2008-10-16 19:28:26 +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 a208c2294a Deal with the ld.so/linkset brokenness and compile all of libnet
and libnetinet into a big bunch for now.  If they were separate
libraries, the DOMAIN_DEFINE() in the latter on the linkline would
not get noticed at "boot" time because of the abovementioned
brokenness.  One of these days I'll add code to dlopen() the
libraries and resplit them, but this will allow things to work
until then.
2008-10-16 19:14:51 +00:00
pooka 2690ed220b Ignore stack-protector, since with nfs_bio.c it gets its life force
drained out.  Yes, this is a quick kludge, should rather fix
nfs_bio.c to be less silly.
2008-10-16 19:06:40 +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 8447026c71 appease 64bit gcc 2008-10-16 13:36:06 +00:00
pooka 37b61acf1e * descend into rump/net
* descend into fs/lib/libnfs
2008-10-16 09:29:43 +00:00
pooka ce2bb4bac6 Add a prototype to allow this to build (will be moved to a better
place later).
2008-10-16 09:25:30 +00:00
pooka e66325797b kill default DBG=-g 2008-10-16 09:24:51 +00:00
pooka 47c581b572 nfs_boot calls some networking stack routines directly. Since rump
will not invoke nfs_boot in the foreseeable future, provide those
routines as stubs in case sockin is used instead of the real
networking stack.
2008-10-15 22:25:26 +00:00
pooka 2d1a1a1ecf Don't descend into rumptest automatically. Otherwise a manual
"make install" in this directory does some funnies.
2008-10-15 20:41:11 +00:00
pooka 1ff56ab29e One more init I happened to forget: iostat_init() 2008-10-15 20:15:37 +00:00
pooka cf82732ba2 Revert weird revivesa merge botch. (Hi Bill!) 2008-10-15 13:57:03 +00:00
pooka edfec78484 add -lrumpnet 2008-10-15 13:11:45 +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
pooka ba12d8328e Call rump_sys_setsockopt(SO_RCVTIMEO) for el-cheapo "async" socket i/o. 2008-10-15 11:45:35 +00:00
pooka 7dd6651a0a Mostly support TCP, mostly meaning "client-side TCP", since listen,
accept etc. is not supported yet.  Disconnect is not really supported
either, but doesn't matter in most cases.
2008-10-15 11:43:38 +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 fe413fd0f6 +IPL_SOFTNET 2008-10-14 14:09:29 +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 8a7a4b8184 Add a simple example of how to use rump networking facilities.
This just contacts www.NetBSD.org, does GET / and displays the
result.

It either uses the host kernel socket provided PF_INET or the kernel
TCP/IP stack running in userspace (via if_virt and /dev/tap),
depending on the libraries it's linked with.

(not built yet, as I need to commit some more bits from my local
tree for it work)
2008-10-14 00:56:24 +00:00
pooka 65f822a3e5 Make the "something random" ethernet address ETHER_IS_LOCAL
(address assignment probably needs some more work if we want to
support multiple interfaces).

hat tip to Quentin Garnier
2008-10-14 00:50:44 +00:00
pooka 5ca4322cea Add tcp debugging as a build option. 2008-10-13 22:24:06 +00:00
pooka e6b645ca82 Dear diary: an ethernet address with 0x01 set in the first octet
is an ethernet multicast address.  TCP does not like ethernet
multicast addresses.
2008-10-13 22:05:15 +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 fac4c8d11a Add some shameful kludges for the vax build. Eventually I'd like
to use the native kernel machine directory, so don't waste too much
effort fighting this now.
2008-10-12 22:08:08 +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