Commit Graph

674 Commits

Author SHA1 Message Date
perry
0e8e3df5ff More reproducible build fixes:
1) invoke objcopy with --preserve-dates or it will update all the
   dates in the .a file to the present date.
2) add an invocation of ar-as-ranlib or the object file index ends up
   with the date in it. (it might also end up with an incorrect
   index.)
2009-04-01 17:51:12 +00:00
pooka
c675da1b5a Be less verbose. (something like rump_dmesg with optional QUIET
would be nice, but needs work)
2009-04-01 14:37:00 +00:00
christos
a329e3090a we want microuptime too. 2009-03-30 12:47:49 +00:00
christos
e556421085 need getnanouptime not getmicrouptime 2009-03-30 02:01:09 +00:00
christos
e475692a7c one more timeval -> timespec line 2009-03-30 00:31:59 +00:00
christos
9d8b358050 Catch up with kernel changes 2009-03-29 20:59:17 +00:00
pooka
7e97c7f98e include subr_evcnt 2009-03-29 18:22:08 +00:00
pooka
c56f6fd76f remove entries which are done 2009-03-29 14:56:00 +00:00
pooka
2e346580a4 regen 2009-03-29 07:56:56 +00:00
pooka
46d9c48ff8 regen: new syscalls 2009-03-28 16:34:34 +00:00
pooka
c9e578684e rump_virtif_create prototype 2009-03-27 13:47:53 +00:00
pooka
06dceb4d08 * make interface creation open /dev/tapn for interface n
* create "unique" enaddr
* do send in async context
2009-03-27 13:46:34 +00:00
pooka
7a82389053 shotgun approach to rump syscalls 2009-03-27 13:18:27 +00:00
pooka
02040931ba Handle eof a bit differently. E.g. ffs and msdosfs seem to have
a quite different opinion about what happens in bmap beyond EOF,
so avoid calling it.
2009-03-26 08:22:22 +00:00
pooka
c2f2875913 Need to compile with -D_REENTRANT, otherwise calling putchar() can
cause libc to commit suicide (!!!).
2009-03-25 14:05:03 +00:00
pooka
e99fa0f61a massage comment. no functional change. 2009-03-23 11:52:42 +00:00
pooka
932c102c8b Support async writes, can benefit mmio case. 2009-03-23 11:48:32 +00:00
pooka
ddeb7494ff fix recent bug: writable images were not mapped with MAP_SHARED 2009-03-23 10:26:49 +00:00
pooka
3a6a8a145f Remove clearly incorrect constraint: can't compare range against eof if
offset != start.
2009-03-22 13:38:54 +00:00
pooka
b2ba089f62 Bounds-check requests in case we are operating directly on a regular file. 2009-03-22 09:51:05 +00:00
pooka
c7a778f6c1 reference to ABC2009 paper 2009-03-22 05:41:49 +00:00
pooka
0f732e9cfb remove RANLIB too. pointed out by perry. 2009-03-21 04:59:08 +00:00
pooka
f733e7ab3f need atomic.h 2009-03-20 08:30:52 +00:00
pooka
83102249b5 Reflect the change to archivebuild in bsd.lib.mk rev 1.296 for
deterministic builds, as hinted by perry.
2009-03-19 12:01:50 +00:00
pooka
18c512728c Simple syscall_establish() support.
(should use kernel sources version, but it's buried inside a
module with a lot of junk in it, so shortcut for now)
2009-03-19 09:36:38 +00:00
pooka
18c141daf8 Make it possible to mount a file system through the mount() system
call in addition to the old rump_mnt_mount().  Some issues remain
(but require more deeprooted changes):
* it is possible to mount only to /
* unmount needs MNT_FORCE due to the new fs being root and having
  a bonus reference
* cwdi is not set (since there is no concept of a process)
2009-03-19 09:14:37 +00:00
pooka
40e16b3309 regen: rump_sys_mount() 2009-03-19 09:09:36 +00:00
uebayasi
2e8ee3c0d9 Fix build on LP64. While here KNF around. 2009-03-19 03:05:14 +00:00
pooka
f9b03e467a Remember to kqueue_init() too so that non-timer events work. 2009-03-18 18:00:38 +00:00
pooka
471edf2cdf Support kqueue in the rump virtual kernel. 2009-03-18 17:56:15 +00:00
pooka
9f7fb39b1d regen: kevent and kqueue 2009-03-18 17:52:19 +00:00
pooka
6a77d87235 regen: arg -> callarg 2009-03-18 17:30:25 +00:00
pooka
938ad48315 When doing I/O to a regular file, try to use mmio instead of
read/write.  This makes a rump_fs file server around 5% faster.
2009-03-18 15:39:27 +00:00
pooka
f09f82998f * allow to specify PROT_READ/PROT_WRITE when mmapping a file
* add msync
2009-03-18 15:32:27 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
pooka
d8327efb56 Create receive thread only in if_start() to make sure it happens
after the we have been attached to the ethernet framework.
XXX: if_stop is still unimplemented
2009-03-01 20:50:04 +00:00
martin
bcd8301033 add missing atomic.h include 2009-03-01 07:10:41 +00:00
pooka
e4b2f37a4b don't require the ifnum return pointer. 2009-02-28 16:15:19 +00:00
pooka
0d6fd70c22 Remember to commit the rumpuser bits necessary for if_shm: mmaping
a file and waiting for writes to it.
2009-02-28 15:49:12 +00:00
pooka
a4aff0cbb8 Add a virtual ethernet interface which uses shared memory as the
bus instead of relying on the host kernel's tap and bridge.  This
is much lighterweight approach which does not consume non-pageable
kernel resources.
2009-02-28 15:28:45 +00:00
pooka
cc8bfe6c12 Fix a silly mistake: indubitably the struct ifnet pointer given to
ether_ifattach() should point to a struct ethercom.
2009-02-28 12:29:27 +00:00
pooka
9c5ad216e7 decouple rumpuser gettime from struct timeval 2009-02-27 15:15:19 +00:00
pooka
89890e45af g/c debug printf 2009-02-26 15:25:52 +00:00
pooka
197a83bc73 When using an array as a ringbuffer, need to perform modulo arithmetic
with arraysize instead of arraysize-1.  Previously there was one
inconsistency in the code.  This might fix a crash reported by apb.

Also, g/c outdated comment.
2009-02-26 15:25:11 +00:00
pooka
51e345d0a5 decouple from host struct iovec 2009-02-26 00:59:31 +00:00
pooka
8c19023a4f Make rumpuser stat and nanosleep independent of the host system
stat and timespec definitions.
2009-02-26 00:32:49 +00:00
ad
59fcf21389 PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.
2009-02-22 20:28:05 +00:00
pooka
69c19242f6 need sys/syscall.h 2009-02-20 18:08:12 +00:00
pooka
21edd4422b missed one prototype 2009-02-20 18:02:19 +00:00
pooka
700c2e19b8 typedef rump_sysproxy_t 2009-02-20 17:59:58 +00:00