Commit Graph

2577 Commits

Author SHA1 Message Date
ozaki-r
087b8cc474 Revert "Pull if_drain routine out of m_reclaim"
The commit broke dlopen()'d rumpnet on platforms where ld.so does not
override weak aliases (e.g. musl, Solaris, potentially OS X, ...).

Requested by pooka@.
2014-12-02 04:43:35 +00:00
pooka
eaa241e501 Remove shlib_version files and just use Makefile SHLIB_MAJOR/MINOR,
with the default provided by Makefile.rump (they're all 0.0 anyway)
2014-12-02 01:59:10 +00:00
pooka
7901989f05 most of this manpage moved to rumpkernel.7, so simplify a lot 2014-12-02 01:52:13 +00:00
pooka
4c9416f8e4 add a high-level rumpkernel.7 manpage 2014-12-02 01:51:45 +00:00
pooka
1b3fbb4b1b need -Wno-unused-parameter with -Wextra 2014-12-01 23:08:15 +00:00
pooka
0201ddbb4c define the warnings used for hypercall components once 2014-12-01 22:58:41 +00:00
pooka
03d8c7895a RUMPCOMP_USER has been deprecated for long enough, remove it. 2014-12-01 22:54:32 +00:00
ozaki-r
0b2631673e Pull if_drain routine out of m_reclaim
It's if-specific and should be in if.c.

No functional change.
2014-11-27 03:15:51 +00:00
pooka
8994492cd1 On second thought, let's not build the rump kernel component for ac97
by default.  The component is not used on a NetBSD target anyway.
2014-11-19 01:08:42 +00:00
pooka
784dbdc3ce Add hdaudio driver as a rump kernel component
tested by booting a rump kernel on a T61, coupled with a client which
writes some Roy Buchanan to /dev/audio
2014-11-19 00:18:58 +00:00
pooka
a0d2bb5e74 delay() can't use rumpuser_clock_sleep(), because that may unschedule().
Instead, busyloop with calls to rumpuser_clock_gettime().  Fixing delay()
properly should addressed in hypercall rev.18 by introducing a nowrap
variant/flag for rumpuser_clock_sleep().
2014-11-18 16:57:52 +00:00
pooka
ef964280f3 Attempt to make sure that DELAY()/delay() is available in all MD names. 2014-11-18 13:05:33 +00:00
pooka
c9ae4a1d22 add ac97 component
for use with eap and others
2014-11-18 09:04:20 +00:00
pooka
557725048e Add eap PCI audio driver.
tested by playing audio with rump kernel booted on qemu with -soundhw es1370
2014-11-18 08:43:03 +00:00
nonaka
a0b2d4d1c7 Adopy recent software volume control change. 2014-11-18 04:29:06 +00:00
pooka
3bc1213af0 Release all hypervisor-level resources for rump_etfs paths when the
rump kernel is halted.

Allows a Xen domU to not complain after it was shut down, or something
like that.  Requested by Martin Lucina.
2014-11-17 14:30:31 +00:00
nakayama
c0067af94a Wrap iconv.h also with #ifdef __NetBSD__. 2014-11-16 15:31:12 +00:00
nakayama
51553e0795 Using host iconv(3) is limited to NetBSD host. 2014-11-16 04:26:46 +00:00
nakayama
fb45a1eb84 Make rump_smbfs(8) uses host iconv(3) to convert filenames
character set.
2014-11-15 18:49:04 +00:00
pooka
77e862601f Move rump kernel man pages from various sources to sys/rump
namely:
  * src/lib is used only when building for POSIX'y platforms, but
    the man pages have their use for all platforms
  * rumpuser.3 is a function of the rump kernel, not one of the of
    the POSIX'y implementation hosted in src/lib/librumpuser

no functional change
2014-11-09 17:39:37 +00:00
pooka
b4d5024ba8 Ensure that no two VIRTIF's have the same modname, therefore
allowing them to coexist in the same rump kernel.

from Alexander Guy, via github
2014-11-06 23:25:16 +00:00
pooka
86040218de Add rump kernel component for viornd
tested: qemu -device virtio-rng-pci
2014-11-06 00:45:58 +00:00
justin
88f8b8fb5f Add libelf to rump directories 2014-10-29 21:16:06 +00:00
pooka
28b6ad5803 Perform internal consistency check automatically. 2014-10-29 19:59:32 +00:00
justin
539cfda85b Revert, zfs was already elsewhere in list 2014-10-29 19:35:29 +00:00
justin
d924940d40 Add zfs files to rump userspace sources 2014-10-29 17:36:07 +00:00
ozaki-r
58dd466be8 Make shmif buildable when DRPINTF enabled 2014-09-17 04:20:58 +00:00
pooka
1dc56c39a2 Implement pci_intr_setattr()
(well, kinda.  it just ignores the MPSAFE param for now, but that's
easy to fix later)
2014-08-26 10:58:13 +00:00
pooka
67433f3a0f Remove and obsolete rumpkern_time as a separate component. 2014-08-25 18:44:02 +00:00
pooka
b124cf15b4 No longer create a special process context to fork remote clients off
of, simply always rfork off of proc1 closing all descriptors, and have
the rump kernel open 0/1/2 if the parent process is "1".

Fixes tests/rump/rumpkernel/t_sp, which was failing since the
abovementioned special process change due to attempting to deliver a
signal to the special process and the special process was not equipped
to handle one.
2014-08-25 14:58:48 +00:00
pooka
272d41f121 Add a compile-time selector for I/O space operations. Needs more work
some day, but allows virtio drivers to work today.
2014-08-22 14:28:58 +00:00
pooka
b41a4e160f Nuke the DOMAINADD() macro and just call domain_attach(), now that things
work correctly that way.
2014-08-22 11:34:28 +00:00
pooka
08f38d958e Build virtio components as part of RUMPPCIDEVS 2014-08-22 09:58:55 +00:00
pooka
db494c8796 Add a rump kernel component for ld@virtio. 2014-08-22 09:57:05 +00:00
pooka
d7b8f51b8f Add a rump kernel component for the vioif virtio network interface. 2014-08-22 09:48:54 +00:00
pooka
e125b93131 Add a rump kernel component for the virtio bus. 2014-08-22 09:45:29 +00:00
justin
2ef27288ed Fix memory leak on error case, as reported in
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2
2014-08-17 19:28:46 +00:00
ozaki-r
bd5b4bd1c6 Bump SHMIF_VERSION 2014-08-16 06:18:01 +00:00
riastradh
5179cdd384 <sys/param.h> comes first, per /usr/share/misc/style. 2014-08-15 19:47:59 +00:00
justin
70b43d6df9 Fix header ordering 2014-08-15 18:23:42 +00:00
justin
2ebae814d9 add sys/atomic.h and order headers correctly 2014-08-15 17:45:00 +00:00
riastradh
2297b8f4c9 Call rnd_add_data asynchronously for the rump hyperentropy callback.
Avoids recursion rnd_getmore -> rnd_add_data -> rnd_getmore, which is
silly but I don't have time to fix it properly right now.
2014-08-15 15:04:33 +00:00
ozaki-r
5c34a7158d Make shmif SIMPLEX
Add a sender field to a packet header on a shmif bus to identify
and ignore packets sent by itself.

This makes shmif work with bridges.

ok pooka@
2014-08-15 15:03:03 +00:00
riastradh
2e29e09879 Restore placement of percpu_init in rump_init.
Probably doesn't matter, but let's avoid needless churn around the
real bug fix.
2014-08-14 16:28:49 +00:00
riastradh
7e616d7734 Defer cprng_fast_init until CPUs are detected. 2014-08-14 16:27:55 +00:00
pooka
ee9aa9eca6 Add component for the pcnet PCI driver to rump kernels. Virtualbox
emulates it by default, so it's nice-to-have for that.
2014-08-13 15:01:32 +00:00
justin
a1754a3d77 Add aarch64 to rump srcdirs 2014-08-11 22:13:56 +00:00
matt
f05b12d5ea Add MKCOMPAT support for aarch64 (COMPAT_MACHINE_CPU) 2014-08-11 22:03:25 +00:00
ozaki-r
f7f536e570 Do cprng_fast_init in rump_init
It fixes rump bootup failure:
  panic: kernel diagnostic assertion "off < percpu_nextoff" failed:
  file "/usr/src/lib/librump/../../sys/rump/../kern/subr_percpu.c", line 76
2014-08-11 04:27:24 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00