CVS log for src/sys/rump/include/rump/rumpuser.h
Up to [cvs.NetBSD.org] / src / sys / rump / include / rump
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.117: download - view: text, markup, annotated - select for diffs
Sun Sep 24 09:33:26 2023 UTC (14 months, 2 weeks ago) by martin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +6 -1
lines
PR kern/57626: instead of an (arbitrary) FAKE_PAGE_SHIFT (and always
using 4k pages), query the hypervisor for the real page size of the host
kernel and use that for architectures that do not have compile time
constant page sizes.
Revision 1.115.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:00 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115: +5 -2
lines
Merge changes from current as of 20200406
Revision 1.116: download - view: text, markup, annotated - select for diffs
Sun Mar 22 13:30:10 2020 UTC (4 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -2
lines
Teach rump to process __link_set_evcnts entries. (Second part of
fix for PR kern/55088)
Revision 1.114.10.1: download - view: text, markup, annotated - select for diffs
Sat Jan 13 21:57:11 2018 UTC (6 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +2 -1
lines
Pull up following revision(s) (requested by ozaki-r in ticket #495):
lib/librumpuser/rumpfiber.c: revision 1.13
lib/librumpuser/rumpuser_pth.c: revision 1.46
lib/librumpuser/rumpuser_pth_dummy.c: revision 1.18
sys/kern/kern_condvar.c: revision 1.40
sys/kern/kern_lock.c: revision 1.161
sys/kern/kern_mutex.c: revision 1.68
sys/kern/kern_rwlock.c: revision 1.48
sys/rump/include/rump/rumpuser.h: revision 1.115
sys/rump/librump/rumpkern/locks.c: revision 1.76-1.79
Apply C99-style struct initialization to lockops_t
--
Tweak LOCKDEBUG macros (NFC)
--
Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG
Formerly rump kernels treated the two types of mutexes as both adaptive for
LOCKDEBUG for some reasons.
Now we can detect violations of mutex restrictions on rump kernels such as
taking an adaptive mutex with holding a spin mutex as well as normal kernels.
--
rump: check if the mutex is surely owned by the caller in mutex_exit
Unlocking a not-owned mutex wasn't detected well (it could detect if the mutex
is not held by anyone but that's not enough). Let's check it (the check is the
same as normal kernel's mutex).
If LOCKDEBUG is enabled, give the check over LOCKDEBUG because it can provide
better debugging information.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Wed Dec 27 09:01:53 2017 UTC (6 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: phil-wifi
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -1
lines
Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG
Formerly rump kernels treated the two types of mutexes as both adaptive for
LOCKDEBUG for some reasons.
Now we can detect violations of mutex restrictions on rump kernels such as
taking an adaptive mutex with holding a spin mutex as well as normal kernels.
Revision 1.72.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:14 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.72.2.3: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.3: +2 -0
lines
update from HEAD
Revision 1.113.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:29 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +3 -1
lines
Sync with HEAD
Revision 1.114: download - view: text, markup, annotated - select for diffs
Sat Jan 3 17:24:20 2015 UTC (9 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -1
lines
limit visibility of sysproxy calls to where they are needed
Revision 1.72.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:39 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.72.2.2: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.2: +2 -1
lines
Rebase to HEAD as of a few days ago.
Revision 1.110.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:50 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +1 -2
lines
Rebase.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed Jun 18 19:50:32 2014 UTC (10 years, 5 months ago) by alnsn
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +1 -6
lines
Revert last change. This is not the right place for rumpuser_sync_icache().
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Jun 17 06:31:47 2014 UTC (10 years, 5 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +6 -1
lines
Implement rumpuser_sync_icache hypercall.
Revision 1.70.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:14 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.70.2.2: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.2.2: +152 -149
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:17 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +3 -2
lines
sync with head
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sun Apr 27 15:18:59 2014 UTC (10 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +1 -2
lines
weak alias removal implication: rumpuser_dl_globalsym() can now sleep
with the fishes.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Sun Mar 16 15:30:05 2014 UTC (10 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3
lines
remove unnecesary verbosity: s/RUMP_CURLWP_MODEL/RUMP_CURLWP/
Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Mar 15 15:15:26 2014 UTC (10 years, 8 months ago) by pooka
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -1
lines
Allow compile-time optimizations to curlwp. This can have a pretty
staggering impact on performance. When running sendto() in a loop,
the improvement is 200k more calls per second with an inlined __thread
curlwp as opposed to the default. In other words, it shaves off hundreds
of CPU cycles per call (~20%). Even just eliminating the x86_curlwp()
call in favor of an inline gives an improvement of 60k calls per second.
Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:27 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.1: +148 -146
lines
resync from head
Revision 1.108: download - view: text, markup, annotated - select for diffs
Wed May 15 16:00:04 2013 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -2
lines
Looks like I'm done revamping, so bump interface version to 17,
where it will hopefully stay for all eternity (unless some snafus
are discovered before NetBSD 7).
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed May 15 15:57:01 2013 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +8 -1
lines
Add a generalized rumpuser_syncfd() call which allows the caller
to request a sync or a barrier for fd.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed May 15 14:58:24 2013 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +4 -4
lines
Pass off_t over the hypercall interface as int64_t to avoid potential
problems in setups where off_t doesn't want to be 64bit.
I'm already excitedly waiting for 128bit off_t and _LARGE_LARGE_FILES
Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed May 15 14:52:49 2013 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +7 -7
lines
Pass enums over the hypercall interface as ints to avoid some
pathological scenarios from arising in setups where enums might be
of a different size in the rump kernel and hypervisor.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed May 15 14:07:26 2013 UTC (11 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +5 -2
lines
Add RUMPUSER_LWP_CLEAR instead of overloading RUMPUSER_LWP_SET.
This simplifies some alternative hypervisor implementations.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu May 2 21:45:28 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: khorben-n900
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3
lines
Ok, maybe using int64 for nanoseconds in the (sec,nsec) tuple was
a bit too future-proof. I think long is enough there (let's just
hope nobody redefines "nano"). Also, make seconds signed just in
case someone wants their clock to be in 1901.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu May 2 21:35:19 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +7 -6
lines
Push rwlock upgrade and downgrade into the hypervisor where there's
at least a chance to implement them with minimal fuss.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu May 2 19:15:01 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -3
lines
Inform the rump kernel hypervisor of valid thread contexts so
that the implementation can allocate and release storage for them
in an optimal fashion, if necessary.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Apr 30 16:03:44 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3
lines
Flip parameter order in the clock hypercalls to make them consistent
with everything else wrt in/out parameters.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Apr 30 13:29:28 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -2
lines
In kthread_create(), pass the priority and cpu index down to the
rump kernel hypervisor (though the current implementation doesn't take
advantage of them).
Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Apr 30 00:03:53 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +17 -22
lines
Make hypercall calling conventions consistent: iff a hypercall can fail,
it returns an int containing the error value.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Apr 29 20:08:48 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +11 -8
lines
Reduce hypercalls related to reading to essentially an amalgamation
of readv and preadv. ditto for writing. Hypercalls are so seldomly
used that it doesn't justify 3x the calls for syntactic sugar.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Apr 29 17:35:04 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +1 -2
lines
remove accidentally committed bit
Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Apr 29 17:31:05 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4
lines
Replace the various "get info from hypervisor" interfaces with one
unified rumpuser_getparam(), and make it return a plist. The
contents can come e.g. from the env or a config file. Make
identifiers starting with an underscore denote system identifiers
which must be implemented by hypervisor. (yea, j/k about the plist bit)
Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon Apr 29 15:40:38 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +2 -4
lines
The fsync hypercall is now used only with close, so get rid of it.
rumpuser_bio() should do the necessary syncing.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Apr 29 14:51:40 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +23 -21
lines
Make the rump kernel upcalls which were previous available only to
the sysproxy module available for the entire hypervisor.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Apr 29 14:07:01 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +61 -19
lines
regroup calls a bit and sprinkle comments
no functional change for a change
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Apr 29 13:21:03 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -3
lines
RUMPUSER_OPEN_DIRECT is no longer necessary
Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Apr 29 13:19:11 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +1 -7
lines
changes to bio hypercalls, part 3/n:
retire the filemmap/memsync hypercalls, they're no longer used
Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Apr 29 12:56:03 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +13 -36
lines
Rework how the bio hypercalls work, part 1/n:
Reduce the set of hypercalls to one: "do block i/o". This not only
eliminates a lot of pseudo-duplicate code, it also gives the
hypervisor a lot more freedom on how to optimize the i/o.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Apr 28 13:17:24 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +6 -4
lines
Improve the time-related hypercalls so that's it's possible to
sleep until an absolute time on the host's monotonic clock (should
something like that be supported).
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Apr 28 10:43:45 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +1 -4
lines
make the file monitoring hypercalls private to shmif
Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun Apr 28 09:58:11 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +1 -2
lines
The ioctl hypercall is used only by the usb host controller driver,
so make it exclusive to that component. I'm happy to see it gone.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Sat Apr 27 16:56:30 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +5 -2
lines
make the random hypercall more generic
Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Apr 27 16:32:56 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -3
lines
roll mutex init hypercalls into one (one of them already took a flag anyway)
Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Apr 27 16:05:54 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +5 -9
lines
move struct lwp forward decl before its first use. otherwise it's rather
pointless. some whitespace landscaping too.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Apr 27 16:02:55 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -2
lines
wrap unportable register_t with a long. should do it in the front
of the house too, but at least this is a start.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Apr 27 15:34:53 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +2 -3
lines
* treat kern_malloc.c as an unreal allocator (it's so lightweight)
* get rid of the rumpuser_realloc() hypercall
* pass size to rumpuser_free()
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Apr 27 15:32:36 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +6 -7
lines
Let the includer figure out where to get stdint or equivalent from.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Apr 27 15:01:21 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +1 -5
lines
rumpuser_poll() is used only by sockin, so make the hypercall
private to that component.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Apr 27 14:59:09 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -6
lines
* integrate rumpuser_getversion() with the hypervisor initialization
* rename some identifiers to better match reality
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Apr 27 14:02:17 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +1 -17
lines
remove prototypes for interfaces no longer provided
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Apr 27 13:59:46 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
Try to make sure that the appropriate calls to mutex_enter() takes
a spin mutex (i.e. does not relinquish cpu context while trying to
take the mutex).
Bump the hypercall interface version number. I'll be doing a bunch
of other cleanups to simplify the interface for the benefit of
alternative hypervisor implementations. I'll be riding this bump
and doing a second one only after I'm finished with all of the
changes.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Mar 8 19:04:28 2013 UTC (11 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: agc-symver-base,
agc-symver
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -5
lines
Ensure that rump kernel component constructors from the main object
get processed. This applies to ones which were linked statically.
Unfortunately, that's where it got a bit tricky, since the dlsym()
interface searches the handle and all its dependencies. For the main
object the list of dependencies includes all the dynamic rump kernel
components that were included when the binary is linked. So, a long
story short, make only one pass through the objects to harvest all the
component entries, weed out the dupes, and initialize components from
an in-memory dupe-free list when so requested.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri Mar 1 13:52:31 2013 UTC (11 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -1
lines
limit use of rumpuser.h to where it is meant to be used from
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:49 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +14 -1
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.70.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:53 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.70.2.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.2.1: +14 -1
lines
sync with head
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Sep 14 16:29:21 2012 UTC (12 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +14 -1
lines
Do not assume that O_FOO flags have matching values in the rump kernel
and hypervisor.
Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:48 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -2
lines
sync with head
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:49 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +2 -2
lines
sync to latest -current.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Mar 15 02:02:22 2012 UTC (12 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -2
lines
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Nov 28 08:05:06 2011 UTC (13 years ago) by tls
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -1
lines
Remove arc4random() and arc4randbytes() from the kernel API. Replace
arc4random() hacks in rump with stubs that call the host arc4random() to
get numbers that are hopefully actually random (arc4random() keyed with
stack junk is not). This should fix some of the currently failing anita
tests -- we should no longer generate duplicate "random" MAC addresses in
the test environment.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Aug 29 20:48:36 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -2
lines
Use __dead
Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:06 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +9 -10
lines
Sync with HEAD.
Revision 1.38.2.5: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:11 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38.2.4: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.4: +2 -2
lines
sync with head
Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon May 23 20:49:35 2011 UTC (13 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Mark rumpuser_exit and rumpuser_thread_exit as dead.
Revision 1.38.2.4: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:16 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38.2.3: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.3: +3 -5
lines
sync with head
Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Mar 21 16:41:08 2011 UTC (13 years, 8 months ago) by pooka
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -4
lines
Update copyright statements.
no functional change.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Mar 8 12:39:29 2011 UTC (13 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
Nuke all threads belonging to a process calling exec before allowing
the exec handshake to return.
In addition to being The Right Thing To Do, fixes some nasty
conditions for CLOEXEC fd's (or at least does so in theory, I
couldn't create any problems although I tried).
Revision 1.38.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:56:12 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.2: +35 -4
lines
sync with head
Revision 1.63.4.2: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:50 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.63.4.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.4.1: +3 -2
lines
Sync with HEAD
Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Feb 15 10:35:05 2011 UTC (13 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -2
lines
Add an "exec" callback for the proxy code. The client can now
notify the rump kernel of an exec having taken place.
Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:20:03 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4
lines
Sync with HEAD
Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Jan 28 19:21:29 2011 UTC (13 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Pass the value of getprogname() from the client to the server and
record it in p_comm. This is nice for things like sockstat, since
they now display the client command name:
pain-rustique:43:~> rump.sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root xulrunner- 16 0 tcp 192.168.2.114.65507 204.152.190.12.80
root xulrunner- 16 1 tcp 192.168.2.114.65501 204.152.190.12.80
root xulrunner- 16 2 tcp 192.168.2.114.65500 204.152.190.12.80
root xulrunner- 16 3 tcp 192.168.2.114.65499 204.152.190.12.80
root xulrunner- 16 5 tcp 192.168.2.114.65498 204.152.190.12.80
root xulrunner- 16 6 tcp 192.168.2.114.65497 204.152.190.12.80
root socket 62 0 tcp6 *.http *.*
root socket 62 1 tcp *.http *.*
root socket 63 0 tcp6 *.81 *.*
root socket 63 1 tcp *.81 *.*
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Jan 22 13:41:22 2011 UTC (13 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3
lines
In case sys_reboot() was called by a remote client, put the response
in the socket before we shut down. This way the response to the
syscall travels to the caller and they know things worked correctly
instead of having to just assume.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Jan 14 13:11:08 2011 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -2
lines
Support SIGMODEL_RAISE for non-local clients.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Jan 12 12:51:47 2011 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2
lines
add spop_procexit
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Jan 2 12:52:25 2011 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -2
lines
There is a use case where preserving the parent's fd table is
relevant, so to accommodate that change rump_lwproc_newproc() to
rump_lwproc_rfork(). The new interface has the rfork() fd table
semantics. The equivalent of rump_lwproc_newproc() is
rump_lwproc_rfork(RUMP_RFCFDG).
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Dec 30 15:47:30 2010 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -1
lines
Allow rump kernel to call dlsym(RTLD_DEFAULT).
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Dec 16 12:38:20 2010 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -3
lines
Print a banner a connecting client. The banner contains rump sp
protocol version, os name, os revision and machine.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Dec 12 17:10:36 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -1
lines
add rumpuser_sp_fini, which surpringly is the opposite of rumpuser_sp_init
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Dec 1 17:22:51 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2
lines
implement mutex_owner()
Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Dec 1 15:02:04 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2
lines
rumpuser interface changed
Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Dec 1 14:59:39 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2
lines
Track lwp as the rumpuser mutex owner instead of pthread_t (this
is done in rumpuser for simplicity, since on the kernel side things
we assume we have only one pointer of space). As a side-effect,
we can no longer know if the current thread is holding on to a
mutex locked without curlwp context (basically all mutexes inited
outside of mutex_init()). The only thing that called rumpuser_mutex_held()
for a non-kmutex was the giant lock. So, instead implement recursive
locking for the giant lock in the rump kernel and get rid of the
now-unused recursive pthread mutex in the hypercall interface.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Nov 30 14:23:24 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -1
lines
Require server to be explicitly initialized with rump_init_server(url).
Also, add rump_daemonize_begin() / rump_daemonize_end() to help
with the "can't daemon() after pthread_create()" problem. Applications
could accomplish the same, but since it's such a common operation,
provide a little help.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Nov 25 17:59:02 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -2
lines
*facepalm*, adjust remote copyinstr to work in cases where the end
of the max copyin extends to an unmapped page.
Noticed, as usual, by tests.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Nov 22 20:42:19 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -6
lines
Support physio for remote processes.
==> add support for remote vmspace vmapbuf/vunmapbuf
==> add proper support for copyin/out_vmspace
==> add support for remote vmspace uvm_io
==> add support for non-curproc rumpuser_sp_copyin/out
==> store remote context in vm_map->pmap instead of
pthread_specificdata
In short, makes read/write of most (all?) block devices work from
a remote rump client via rump syscalls.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Nov 19 17:06:57 2010 UTC (14 years ago) by pooka
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2
lines
Pass routines necessary for multithreaded operation down to rumpuser_sp.
Revision 1.35.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:50 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.35.2.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.2: +20 -2
lines
Sync with HEAD.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Nov 4 20:57:00 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2
lines
bump rumpuser version
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Nov 4 20:54:08 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -7
lines
Refactor the sysproxy code so that rumpuser contains only the server side.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Nov 1 13:55:19 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -1
lines
Missed a few symbols in previous ...
Also, reorganize rumpuser header inclusion to make sure problem is
caught already by the compiler.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Nov 1 13:49:10 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +16 -6
lines
Make librumpuser linkage once again free of librump.
problem pointed out by <he>
Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Oct 27 20:44:50 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +11 -1
lines
Start rework of system call proxying over socket ("sysproxy").
This incarnation is written in the user namespace as opposed to
the previous one which was done in kernel namespace. Also, rump
does all the handshaking now instead of excepting an application
to come up with the user namespace socket.
There's still a lot to do, including making code "a bit" more
robust, actually running different clients in a different process
inside the kernel and splitting the client side library from librump.
I'm committing this now so that I don't lose it, plus it generally
works as long as you don't use it in unexcepted ways: i've tested
ifconfig(8), route(8), envstat(8) and sysctl(8).
Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:58 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.2.1: +11 -9
lines
Sync with HEAD.
Revision 1.23.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:55:05 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.23.2.5: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.5: +17 -10
lines
sync with head.
Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:20:01 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +10 -8
lines
sync with head
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Jun 9 14:08:17 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -1
lines
Version rumpuser ABI with a lightweight mechanism.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Jun 9 11:35:36 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -2
lines
Add the ability to specify a preferred address the "map anon memory"
hypercall.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Jun 1 20:11:33 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -6
lines
Don't pass "canfail" down to rumpuser_malloc -- there's quite little
we can do with that info way down there. Instead, pass alignment.
Implement rumpuser_malloc() with posix_memalign().
Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon May 31 23:09:29 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2
lines
Support KTHREAD_JOINABLE/kthread_join(). Also fixes earlier bug
where all pthreads were created non-detached.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:06 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -3
lines
sync with head
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue May 18 14:58:41 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
Make it possible to use the scheduler lock as the rumpuser condvar
interlock. This is applicable in cases where the actual interlock
is the CPU the currently running thread is scheduled on. Borrowing
the scheduler lock as the mutex mandated by pthread_cond_wait()
does away with need to have an additional mutex. This both optimizes
runtime execution and simplifies code, as the extra lock typically
lead to quite some trickeries to avoid the dungeon collapsing due
to zaps from the wand of deadlock.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:29 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +11 -13
lines
Sync with HEAD.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Apr 28 00:33:45 2010 UTC (14 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -1
lines
Add rumpuser interface to fetch number of host cpus.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Apr 21 11:13:29 2010 UTC (14 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -1
lines
Add rumpuser_kill, which sends a signal to a host process.
Revision 1.23.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:37 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.23.2.4: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.4: +21 -7
lines
sync with head
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Mar 5 18:47:49 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -12
lines
During bootstrap, process all modinfos in a DSO in one go. Get
rid of dependency tricks, since they are no longer necessary.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Mar 1 13:12:20 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -1
lines
Introduce RUMP_COMPONENT. It behaves mostly like a simplified
module which is linked into the kernel and cannot be unloaded.
The main purpose is to get the proper constructors run and create
any /dev nodes necessary for said component. Once more of the
kernel (e.g. networking stack and device drivers) are converted to
MODULE and devfs pops up from somewhere, rump components can be
retired.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Feb 26 15:23:20 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2
lines
Rename rumpuser_dl_module_bootstrap() to rumpuser_dl_bootstrap(),
since it hasn't been involved only with modules for quite a while now.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Dec 23 17:17:59 2009 UTC (14 years, 11 months ago) by stacktic
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -1
lines
Fixed ukfs build on non-NetBSD system.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Nov 26 09:50:38 2009 UTC (15 years ago) by pooka
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -2
lines
Build the kernel symbol table in rumpuser bootstrap and feed it to
the rump kernel. After this change it is possible to use the
in-kernel linker and rump_sys_modctl() to load kernel modules at
runtime.
Previously loading modules at runtime was possible only through
using the host system ld.so. Note that it is still preferred to
use shared libs when possible, since they are PIC and n virtual
kernels will only require one copy of r/o segments. However, when
there is no access to source code, a binary kernel module is the
only thing available ...
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Nov 19 14:44:58 2009 UTC (15 years ago) by pooka
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2
lines
Create async i/o "interrupt" thread from within the kernel so that
it gets a kernel thread context.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Nov 11 16:46:50 2009 UTC (15 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2
lines
Make rumpuser_cv_timedwait take two int64's instead timespec to
uncouple it from the timespec layout. Also, change return value
to zero for "timeout didn't expire" and non-zero for "timeout
expired". This decouples the interface from errno assignments.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Oct 24 11:36:59 2009 UTC (15 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +11 -2
lines
Pass modinit to rumpuser_dl_module_bootstrap() as a function pointer
to avoid linker rump -> rumpuser -> rump dependency which is annoying
redundancy in static linking.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Oct 24 11:29:55 2009 UTC (15 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -3
lines
unused rumpuser_realpath is really dead
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Oct 15 00:33:37 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -1
lines
Add prototype for wait operation variants which do not drop any
resources (because they should be holding any in the first place).
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Oct 9 14:41:36 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
Provide an interface for reboot.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Sep 24 21:30:42 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -1
lines
Load modules from all components which are linked into a rump binary
with -lrumpcomponent. Previously only the first library component
containing a module would get loaded automatically.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Sep 21 15:29:36 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -1
lines
<sys/stdint.h> is a non-standard header, so include it only from
kernel code (where it will be included from the NetBSD kernel source
tree). Use <stdint.h> in userland namespace, i.e. when compiling
librumpuser.
Revision 1.23.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:04 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.23.2.3: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.3: +2 -1
lines
sync with head
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Sep 2 19:02:51 2009 UTC (15 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1
lines
add rumpuser_net_setsockopt()
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:53 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +3 -1
lines
Sync with HEAD.
Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:35 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.2: +3 -1
lines
sync with head
Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jun 10 18:34:49 2009 UTC (15 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -1
lines
Add rumpuser_dprintf(), which can be used as a "safe" debug print
routine -- the kernel printf does a lot of crud which is not always
nice and dandy especially when debugging locks.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:57 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +31 -12
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:29 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +181 -0
lines
sync with head.
Revision 1.9.4.4: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:50 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.9.4.3: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.3: +10 -4
lines
Sync with HEAD.
Revision 1.23.2.1
Mon Apr 27 14:28:58 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.23: +0 -181
lines
file rumpuser.h was added on branch yamt-nfs-mp on 2009-05-04 08:14:29 +0000
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 27 14:28:58 2009 UTC (15 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
jym-xensuspend-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -1
lines
* expand syncing logic into rumpuser, since it has more freedom on
how to do it (e.g. fsync_range)
* hash out O_DIRECT support. it's the fastest method of safely operating
on a file, but we can't currently autodetect support, so it's not
enabled by default
* sprinkle more event counters
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Apr 26 21:39:10 2009 UTC (15 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2
lines
Bump maximum number of outstanding async i/o's to 1024, 128 can
fill up really fast.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Apr 7 18:35:49 2009 UTC (15 years, 8 months ago) by pooka
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2
lines
Make it possible to use VCHR devices again.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Mar 18 15:32:27 2009 UTC (15 years, 8 months ago) by pooka
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -2
lines
* allow to specify PROT_READ/PROT_WRITE when mmapping a file
* add msync
Revision 1.9.4.3: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:34:07 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.9.4.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.2: +32 -22
lines
Sync with HEAD.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Feb 28 15:49:12 2009 UTC (15 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -1
lines
Remember to commit the rumpuser bits necessary for if_shm: mmaping
a file and waiting for writes to it.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Feb 27 15:15:19 2009 UTC (15 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -3
lines
decouple rumpuser gettime from struct timeval
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Feb 26 00:59:31 2009 UTC (15 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -6
lines
decouple from host struct iovec
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Feb 26 00:32:49 2009 UTC (15 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -4
lines
Make rumpuser stat and nanosleep independent of the host system
stat and timespec definitions.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Feb 7 01:50:29 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2
lines
Make the clock interrupt tick based on absolute time instead of
relative time. This prevents drifting. Also, keep track of time
within userspace, so we do not have to make a syscall to get the
clock value. This is approximately 7 times cheaper, but on the
negative side is limited to the clock interrupt frequency.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Feb 6 20:01:41 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -10
lines
Rip out the rwlock spl emulation code. It never did anything useful
except keep my feet warm by consuming an insane amount of cpu
cycles -- in rump our current "cpu" context is never interrupted
& we have MULTIPROCESSOR.
(itch i'm scratching: it made the networking stack 10-20% slower.
this is one of the places where fast code actually matters)
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jan 27 09:14:01 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
Instead of dynamically allocating and freeing the rumpuser async
io descriptors, just allocate an array statically and be happy.
Fixes a problem found by Arnaud Ysmal where a descriptor would be
allocated using kmem_alloc(9) and free'd using free(3).
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jan 26 12:08:38 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -1
lines
Support getsockname() and getpeername() in rumpuser.
XXX: all these rumpuser_net routines passing sockaddr should use proplib.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jan 23 19:19:32 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -1
lines
rumpuser_seterrno() to set errno from a rump kernel context.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jan 23 12:47:32 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1
lines
Support mmapping anonymous memory.
XXX: this is mainly for the benefit of correct alignment, but
MAP_ALIGNED() is not portable.
Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:25 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.1: +162 -0
lines
Sync with HEAD.
Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:35 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +162 -0
lines
Sync with HEAD.
Revision 1.9.4.1
Thu Jan 8 01:30:33 2009 UTC (15 years, 11 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.9: +0 -162
lines
file rumpuser.h was added on branch nick-hppapmap on 2009-01-19 13:20:25 +0000
Revision 1.9.2.1
Thu Jan 8 01:30:33 2009 UTC (15 years, 11 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.9: +0 -162
lines
file rumpuser.h was added on branch mjf-devfs2 on 2009-01-17 13:29:35 +0000
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jan 8 01:30:33 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: nick-hppapmap,
mjf-devfs2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -4
lines
missed this in previous commit:
Explicitly pass a pointer to the kernel lock/unlock routines in
rumpuser init instead of magically relying on the linker giving us
the symbols.
thanks to uwe for pointing out
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 7 20:34:32 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -5
lines
more namespacing: rua -> rumpuser_aio
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jan 7 19:49:48 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5
lines
Rename _rumpuser_malloc to rumpuser__malloc so that all exported
rumpuser symbols start with "rumpuser".
(no major bumps or compat will be provided)
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 5 01:51:31 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -5
lines
g/c unused rumpuser bswap routines
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Jan 2 02:54:13 2009 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -1
lines
Include kernel printf routines in rump instead of relying on the
magic libc symbol. This also allows to bid farewell to subr_prf2.c
and merge the contents back to subr_prf.c. The host kernel bridging
is now done via rumpuser_putchar().
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Dec 17 20:16:28 2008 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
If available (__NetBSD__), use pthread_setname_np() to set the
thread name for kthread_create().
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 25 20:39:57 2008 UTC (16 years ago) by pooka
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -1
lines
Support PRU_BIND / PRU_LISTEN / PRU_ACCEPT in sockin.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Nov 18 12:39:35 2008 UTC (16 years ago) by pooka
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -6
lines
Pass biodone() to rumpuser as a callback instead of hardcoding it.
Also, explicitly init rumpuser async io thread.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Nov 17 08:53:12 2008 UTC (16 years ago) by pooka
Branches: MAIN
Move rump public headers to include/rump
CVSweb <webmaster@jp.NetBSD.org>