The NetBSD Project

CVS log for src/lib/librumpuser/rumpuser.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / librumpuser

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.68: 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: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -2 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.67: download - view: text, markup, annotated - select for diffs
Sun Aug 16 11:05:06 2015 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, netbsd-8-base, 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, netbsd-8, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -6 lines
Fix return value inspection for clock_nanosleep() (not displayed in the
diff, need to look at the entire file for context).

from Robert Millan <rmh@freebsd.org> via rumpkernel-users

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jul 27 07:31:00 2015 UTC (9 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
Print the "halted\n" from previous commit to stdout, not stderr.

The putchar hypercall writes to stdout, so this change restores
the original "functionality" (which was not intended to change).

from gson, via tests

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Jul 24 14:11:11 2015 UTC (9 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -2 lines
Since the rump kernel does not know when the container it's running in
actually halts, print "halted" in the hypercall.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Nov 5 00:43:55 2014 UTC (10 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -3 lines
check clock_gettime() rv

Revision 1.19.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:21 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.2.3: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.3: +17 -429 lines
Rebase to HEAD as of a few days ago.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:52:26 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +8 -390 lines
Rebase.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Jul 25 14:00:31 2014 UTC (10 years, 4 months ago) by justin
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-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
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +7 -5 lines
Clean up error handling in rumpuser_init()

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jul 22 22:41:58 2014 UTC (10 years, 4 months ago) by justin
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -35 lines
Clean up random implementation for librumpuser

Use /dev/urandom for platforms without arc4random, not srandom(),
deduplicate code, do not read excessive random bytes

Reviewed by pooka@

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jul 10 08:17:43 2014 UTC (10 years, 5 months ago) by justin
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -2 lines
Reinstate include of netdb.h, needed on some cross builds

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jul 9 23:41:40 2014 UTC (10 years, 5 months ago) by justin
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -357 lines
Split out file and memory access in librumpuser

This allows alternate implementations to reuse these parts, and the file
parts will at the next hypercall revision be moved to their own driver.

Discussed with pooka@

Revision 1.15.4.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:00 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15.4.4: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.4.4: +310 -459 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.59: download - view: text, markup, annotated - select for diffs
Wed Apr 2 13:54:42 2014 UTC (10 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9
Branch point for: tls-earlyentropy
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -27 lines
Always use sysconf() to query host processor count instead of separate
tricks for each platform.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Mar 16 10:23:59 2014 UTC (10 years, 8 months ago) by njoly
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
Do not use uninitialized pointer if posix_memalign() fails.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Feb 20 00:44:20 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -15 lines
make implementation of rumpuser_kill() match the documentation

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Feb 20 00:42:27 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -10 lines
Translate signal numbers between rump kernel and (POSIX) host.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Oct 27 16:39:46 2013 UTC (11 years, 1 month ago) by rmind
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +10 -5 lines
librumpuser: add some #ifdef __APPLE__ and missing bits to build it on OS X.
OK pooka@

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Aug 14 08:29:25 2013 UTC (11 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -2 lines
Change the default value of rump kernels CPUs to 2.  It used to be
the number of host cores, but that value is overkill for most uses,
especially with massively multicore hosts.  Dozens of useless virtual
CPUs are relatively speaking expensive in terms of bootstrap time and
memory footprint.  On the other end of the spectrum, defaulting to 2
might shake out some bugs from the qemu test runs.

Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:21:08 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.2.2: preferred, colored
Changes since revision 1.19.2.2: +328 -447 lines
resync from head

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed May 15 15:57:01 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +39 -2 lines
Add a generalized rumpuser_syncfd() call which allows the caller
to request a sync or a barrier for fd.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed May 15 14:58:24 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -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.51: download - view: text, markup, annotated - select for diffs
Wed May 15 14:52:49 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +7 -5 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.50: download - view: text, markup, annotated - select for diffs
Thu May 2 21:45:29 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4 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.49: download - view: text, markup, annotated - select for diffs
Wed May 1 17:17:54 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -3 lines
avoid Wunused on !NetBSD

Revision 1.48: 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.47: preferred, colored
Changes since revision 1.47: +4 -4 lines
Flip parameter order in the clock hypercalls to make them consistent
with everything else wrt in/out parameters.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Apr 30 12:39:20 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +17 -19 lines
Translate error codes between the hypervisor and rump kernel.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Apr 30 11:26:26 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +26 -8 lines
Some systems don't provide preadv/pwritev (hi Solaris!), so implement
that with lseek + readv/writev instead (and avoid rewinding the
pointer with soon-to-be documentation).

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Apr 30 00:03:52 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +99 -72 lines
Make hypercall calling conventions consistent: iff a hypercall can fail,
it returns an int containing the error value.

Revision 1.44: 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.43: preferred, colored
Changes since revision 1.43: +21 -82 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.43: 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.42: preferred, colored
Changes since revision 1.42: +58 -49 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.42: 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.41: preferred, colored
Changes since revision 1.41: +8 -9 lines
The fsync hypercall is now used only with close, so get rid of it.
rumpuser_bio() should do the necessary syncing.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Apr 29 14:51:39 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -11 lines
Make the rump kernel upcalls which were previous available only to
the sysproxy module available for the entire hypervisor.

Revision 1.40: 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.39: preferred, colored
Changes since revision 1.39: +2 -10 lines
RUMPUSER_OPEN_DIRECT is no longer necessary

Revision 1.39: 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.38: preferred, colored
Changes since revision 1.38: +2 -49 lines
changes to bio hypercalls, part 3/n:

retire the filemmap/memsync hypercalls, they're no longer used

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Apr 29 12:56:04 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -34 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.37: download - view: text, markup, annotated - select for diffs
Sun Apr 28 13:39:13 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -3 lines
don't need event.h here anymore

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Apr 28 13:17:25 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +83 -31 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.35: 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.34: preferred, colored
Changes since revision 1.34: +2 -135 lines
make the file monitoring hypercalls private to shmif

Revision 1.34: 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.33: preferred, colored
Changes since revision 1.33: +2 -9 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.33: download - view: text, markup, annotated - select for diffs
Sat Apr 27 16:56:29 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +18 -7 lines
make the random hypercall more generic

Revision 1.32: 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.31: preferred, colored
Changes since revision 1.31: +4 -10 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.31: 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.30: preferred, colored
Changes since revision 1.30: +2 -10 lines
rumpuser_poll() is used only by sockin, so make the hypercall
private to that component.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Apr 27 14:59:08 2013 UTC (11 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +34 -4 lines
* integrate rumpuser_getversion() with the hypervisor initialization
* rename some identifiers to better match reality

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Mar 18 21:00:52 2013 UTC (11 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: agc-symver-base, agc-symver
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -4 lines
Terminate result of readlink().  Makes writefilewatch_setup() work in
cases when the buffer doesn't accidentally contain suitable zeroes.

Thanks to Juan RP who debugged this with me!

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:01 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.2.1: preferred, colored
Changes since revision 1.19.2.1: +34 -6 lines
resync with head

Revision 1.15.4.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:05:27 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.15.4.3: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.4.3: +33 -5 lines
sync with head

Revision 1.15.4.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:32:28 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15.4.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.4.2: +27 -8 lines
sync with (a bit old) head

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jan 14 21:04:15 2013 UTC (11 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Use the /proc way for counting host cores on Cygwin.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:14:12 2013 UTC (11 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
.. and make it compile on said platforms.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:13:04 2013 UTC (11 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +27 -2 lines
Provide an implementation of writewatchfile for platforms without kqueue
or inotify (it's a rather simple implementation ;)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Dec 14 10:48:48 2012 UTC (12 years ago) by pooka
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -4 lines
FreeBSD and DragonFly also provide hosts cpus via sysctl hw.ncpu.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Dec 13 15:35:09 2012 UTC (12 years ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Apparently MAP_ANON mmap() on Linux requires MAP_PRIVATE to be specified
for the addr parameter to have a sane effect.  Make it so.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:00:45 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +113 -10 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:29:40 2012 UTC (12 years ago) by pooka
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +20 -5 lines
Fixes for Solarisa.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Nov 14 09:22:58 2012 UTC (12 years ago) by pooka
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -4 lines
Check return value of ftruncate().  Some versions of gcc give
warnings if I don't.

Revision 1.15.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 18:59:17 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15.4.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.4.1: +129 -24 lines
sync with head

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Oct 10 11:15:57 2012 UTC (12 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +65 -3 lines
Implement the writewatchfile routines for a Linux hypervisor.  As a
result, the shmif network driver now works when hosted on Linux.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Sep 14 16:29:22 2012 UTC (12 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +26 -4 lines
Do not assume that O_FOO flags have matching values in the rump kernel
and hypervisor.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Aug 25 18:00:06 2012 UTC (12 years, 3 months ago) by pooka
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -19 lines
Make librumphijack compile and work on Linux.  Do not try to hijack
calls which are not supported on Linux and therefore cannot be
handled by the rump kernel side syscall emulation (not that they'd
be present in the calling binaries anyway).

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Jul 27 09:09:05 2012 UTC (12 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +59 -21 lines
Once again, make the rump kernel hypercall layer work on Linux.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 25 22:32:47 2012 UTC (12 years, 5 months ago) by abs
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)

Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:33 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -2 lines
sync with head

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Nov 28 08:05:05 2011 UTC (13 years ago) by tls
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -2 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.12.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:04 2011 UTC (13 years, 10 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +33 -9 lines
Sync with HEAD

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 6 21:05:53 2011 UTC (13 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -7 lines
Support query of the partition size in case underlying device is
a wedge.  This still lacks the proplibistic query of the sector
size and just assumes 512.  It's good that we make asking a file's
size as simple as requiring one stat(), one open() and three (3)
different ioctls plus some proplist mumbojumbo.  I'm surprised it's
available at all by means other than #wish.

code mostly from Taylor R Campbell, rant from me.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jan 22 14:22:10 2011 UTC (13 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
happiness is a quiet lint

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jan 20 15:00:12 2011 UTC (13 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +12 -3 lines
include pid of rump server in hostname

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jan 5 09:43:00 2011 UTC (13 years, 11 months ago) by pooka
Branches: MAIN
Branch point for: bouyer-quota2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -8 lines
Fix fd leak also in non-NetBSD code path.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jan 5 00:19:20 2011 UTC (13 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -2 lines
Fix fdleak in error case. Found by cppcheck.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 15 15:23:32 2010 UTC (14 years ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +24 -24 lines
Make int *error and optional parameter (i.e. it can be NULL).
Sometimes the caller just doesn't care which errno close() might
throw.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 11 10:25:59 2010 UTC (14 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -3 lines
* if kevent() fails with EINTR, try again instead of returning an error
* stuff rumpuser_dprintf to stderr instead of stdout

Revision 1.8: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +9 -2 lines
Version rumpuser ABI with a lightweight mechanism.

Revision 1.7: 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.6: preferred, colored
Changes since revision 1.6: +6 -4 lines
Add the ability to specify a preferred address the "map anon memory"
hypercall.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 2 18:15:35 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +12 -3 lines
Check return value of posix_memalign ... always helpful to not return
garbage memory in case of failure.

Revision 1.5: 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.4: preferred, colored
Changes since revision 1.4: +11 -20 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.4: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +18 -2 lines
Add rumpuser interface to fetch number of host cpus.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Apr 21 11:16:41 2010 UTC (14 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -2 lines
Actually, support rumpuser_kill() only on NetBSD, since signal
numbers may not match on non-NetBSD hosts.

Revision 1.2: 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.1: preferred, colored
Changes since revision 1.1: +14 -2 lines
Add rumpuser_kill, which sends a signal to a host process.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Feb 26 18:54:20 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
librumpuser is not _KERNEL code and does not belong in sys.  Move
the source files from src/sys/rump/librump/rumpuser to src/lib/librumpuser
(from where it is already built).  Even so, keep rumpuser.h in
sys/rump/include for kernel source tree self-containment.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>