]> xenbits.xensource.com Git - osstest/rumprun.git/log
osstest/rumprun.git
9 years agoConsolidate the RUMPRUN_MKCONF include dance into global.mk
Antti Kantee [Thu, 22 Oct 2015 01:27:30 +0000 (01:27 +0000)]
Consolidate the RUMPRUN_MKCONF include dance into global.mk

Convert all safe-looking locations, i.e. NOT app-tools
or platform/xen/xen.

9 years agoTravis: need config.mk too (for kernonly tests)
Antti Kantee [Thu, 22 Oct 2015 01:23:19 +0000 (01:23 +0000)]
Travis: need config.mk too (for kernonly tests)

9 years agoxen/Config.mk: fix pasto (I thought this built locally?!?)
Antti Kantee [Thu, 22 Oct 2015 01:17:14 +0000 (01:17 +0000)]
xen/Config.mk: fix pasto (I thought this built locally?!?)

9 years agofix travis buildtests.sh invocation
Antti Kantee [Thu, 22 Oct 2015 01:16:23 +0000 (01:16 +0000)]
fix travis buildtests.sh invocation

9 years agobuildtests.sh: fix usage
Antti Kantee [Thu, 22 Oct 2015 01:13:34 +0000 (01:13 +0000)]
buildtests.sh: fix usage

9 years agoAt end of build, print RUMPRUN_SHCONF too
Antti Kantee [Thu, 22 Oct 2015 01:11:04 +0000 (01:11 +0000)]
At end of build, print RUMPRUN_SHCONF too

9 years agouse a predictable object directory, source config from there
Antti Kantee [Thu, 22 Oct 2015 00:53:31 +0000 (00:53 +0000)]
use a predictable object directory, source config from there

9 years agoRely on RUMPRUN_SHCONF being set in the env.
Antti Kantee [Thu, 22 Oct 2015 01:05:23 +0000 (01:05 +0000)]
Rely on RUMPRUN_SHCONF being set in the env.

As opposed to giving the same params manually on the command line.

9 years agoCreate RUMPRUN_SHCONF, OBJDIR -> RROBJ, DESTDIR -> RRDEST.
Antti Kantee [Thu, 22 Oct 2015 01:06:00 +0000 (01:06 +0000)]
Create RUMPRUN_SHCONF, OBJDIR -> RROBJ, DESTDIR -> RRDEST.

9 years agoPrint RUMPRUN_MKCONF value at the end of build-rr run
Antti Kantee [Thu, 22 Oct 2015 00:43:29 +0000 (00:43 +0000)]
Print RUMPRUN_MKCONF value at the end of build-rr run

9 years agocreate config.mk into objdir
Antti Kantee [Thu, 22 Oct 2015 00:29:56 +0000 (00:29 +0000)]
create config.mk into objdir

9 years agoFail gracefully if some bootstrap routine calls exit.
Antti Kantee [Wed, 21 Oct 2015 21:28:43 +0000 (21:28 +0000)]
Fail gracefully if some bootstrap routine calls exit.

9 years agoSupport pipe between multibaked executables.
Antti Kantee [Wed, 21 Oct 2015 08:20:00 +0000 (08:20 +0000)]
Support pipe between multibaked executables.

The usual multibake cautions apply due to the currently shared
libc state, and especially in this case shared stdio state.

9 years agoAllow config entries in nested objects.
Antti Kantee [Wed, 21 Oct 2015 00:26:41 +0000 (00:26 +0000)]
Allow config entries in nested objects.

9 years agoFix rc object processing.
Antti Kantee [Wed, 21 Oct 2015 00:26:21 +0000 (00:26 +0000)]
Fix rc object processing.

9 years agoDon't accept pipe runmode for now.
Antti Kantee [Tue, 20 Oct 2015 23:36:49 +0000 (23:36 +0000)]
Don't accept pipe runmode for now.

Implementing it is a bit more difficult than imagined ...

9 years agorumprun: Generate random MAC addresses for qemu/kvm
Martin Lucina [Tue, 20 Oct 2015 16:30:16 +0000 (18:30 +0200)]
rumprun: Generate random MAC addresses for qemu/kvm

Each unikernel on kvm/qemu gets the same MAC address, making them
unusable in bridged configurations.

9 years agokill accidentally committed debug print
Antti Kantee [Tue, 20 Oct 2015 14:57:25 +0000 (14:57 +0000)]
kill accidentally committed debug print

9 years agoPerform some config sanity checks
Antti Kantee [Tue, 20 Oct 2015 14:56:07 +0000 (14:56 +0000)]
Perform some config sanity checks

9 years agorumprun_config_path: extern -> static
Antti Kantee [Tue, 20 Oct 2015 13:17:04 +0000 (13:17 +0000)]
rumprun_config_path: extern -> static

9 years agog/c deconfig
Antti Kantee [Tue, 20 Oct 2015 13:15:41 +0000 (13:15 +0000)]
g/c deconfig

Should be and (mostly is) implemented by the rump kernel.

9 years agog/c unused
Antti Kantee [Tue, 20 Oct 2015 13:14:36 +0000 (13:14 +0000)]
g/c unused

9 years agoSupport backgrounded rc execution.
Antti Kantee [Tue, 20 Oct 2015 13:06:42 +0000 (13:06 +0000)]
Support backgrounded rc execution.

9 years agoAutomatically detect type of block devices in runtime config.
Antti Kantee [Tue, 20 Oct 2015 01:42:04 +0000 (01:42 +0000)]
Automatically detect type of block devices in runtime config.

In other words, do not run blkid in rumprun.  This change addresses
two issues:
  1) systems which do not have blkid will now work
  2) identifying fs type at launchtime does not do anything useful

9 years agoFix end-of-build prints a bit more.
Antti Kantee [Mon, 19 Oct 2015 23:56:48 +0000 (23:56 +0000)]
Fix end-of-build prints a bit more.

9 years agoUse rumprun_exec for the old-style cmdline passing.
Antti Kantee [Mon, 19 Oct 2015 23:53:50 +0000 (23:53 +0000)]
Use rumprun_exec for the old-style cmdline passing.

(temporary compat)

9 years agoPush the runmain logic into librumprun_base.
Antti Kantee [Mon, 19 Oct 2015 22:46:23 +0000 (22:46 +0000)]
Push the runmain logic into librumprun_base.

It's no longer required elsewhere.

9 years agoadd missing \n to printf
Antti Kantee [Mon, 19 Oct 2015 16:30:36 +0000 (16:30 +0000)]
add missing \n to printf

9 years agorumprun_base: crank up WARNS
Antti Kantee [Sun, 18 Oct 2015 13:38:58 +0000 (13:38 +0000)]
rumprun_base: crank up WARNS

9 years agoDon't assign const char * to char *
Antti Kantee [Sun, 18 Oct 2015 13:37:57 +0000 (13:37 +0000)]
Don't assign const char * to char *

9 years agoRename librumprun_base/rumpconfig.c -> config.c
Antti Kantee [Sun, 18 Oct 2015 13:11:01 +0000 (13:11 +0000)]
Rename librumprun_base/rumpconfig.c -> config.c

"rumpconfig" is definitely the wrong name.  It could be
rumprun_config.c, but let's drop the redudancy wrt. the lib name.

9 years agoplatform/xen: don't override common TARGETS
Antti Kantee [Fri, 16 Oct 2015 19:05:52 +0000 (19:05 +0000)]
platform/xen: don't override common TARGETS

9 years agofix xen/Makefile to work again
Antti Kantee [Fri, 16 Oct 2015 18:54:40 +0000 (18:54 +0000)]
fix xen/Makefile to work again

9 years agoPLATFORM comes from config.mk, so g/c it from Makefiles.
Antti Kantee [Fri, 16 Oct 2015 17:15:47 +0000 (17:15 +0000)]
PLATFORM comes from config.mk, so g/c it from Makefiles.

9 years agoReduce copypasteware in Makefiles
Antti Kantee [Fri, 16 Oct 2015 16:43:50 +0000 (16:43 +0000)]
Reduce copypasteware in Makefiles

9 years agoAssume Xen headers are in /usr/pkg/include on NetBSD.
Antti Kantee [Fri, 16 Oct 2015 14:10:38 +0000 (14:10 +0000)]
Assume Xen headers are in /usr/pkg/include on NetBSD.

This could be done better via a probe, but ...

9 years agoSimplify nolibc Makefile
Sebastian Wicki [Fri, 16 Oct 2015 13:06:17 +0000 (15:06 +0200)]
Simplify nolibc Makefile

No architecture specific ifdefs needed anymore, we can reuse
BUILDRUMP_TOOLFLAGS for i386.

9 years agoCONFIG -> RUMPRUN_MKCONF
Antti Kantee [Fri, 16 Oct 2015 02:10:06 +0000 (02:10 +0000)]
CONFIG -> RUMPRUN_MKCONF

If the name of the config file variable is not generic, devs
can set it in the env for convenience.  make it so!

9 years agoFix "buildtest" target.
Antti Kantee [Fri, 16 Oct 2015 02:08:26 +0000 (02:08 +0000)]
Fix "buildtest" target.

nb. it's no longer run automatically from the platform Makefile
since it requires a "make install" before it can be expected to work.

9 years agoRecord tool tuple in config.mk and use it.
Antti Kantee [Fri, 16 Oct 2015 02:06:57 +0000 (02:06 +0000)]
Record tool tuple in config.mk and use it.

9 years agoapp-tools Makefile: g/c MACHINE_ARCH assignment
Antti Kantee [Fri, 16 Oct 2015 01:59:03 +0000 (01:59 +0000)]
app-tools Makefile: g/c MACHINE_ARCH assignment

already set in config.mk

9 years agog/c unused variable
Antti Kantee [Fri, 16 Oct 2015 01:36:47 +0000 (01:36 +0000)]
g/c unused variable

9 years agoSpecifying LDFLAGS_BAKE here is finally unnecessary.
Antti Kantee [Thu, 15 Oct 2015 23:16:41 +0000 (23:16 +0000)]
Specifying LDFLAGS_BAKE here is finally unnecessary.

9 years agoGive app-tools its own Makefile instead of it being a .inc
Antti Kantee [Thu, 15 Oct 2015 22:41:09 +0000 (22:41 +0000)]
Give app-tools its own Makefile instead of it being a .inc

This means that app-tools are now built directly by build-rr.sh
instead of being driven by platform/x/Makefile.

9 years agoinclude platform in config.mk
Antti Kantee [Thu, 15 Oct 2015 22:34:27 +0000 (22:34 +0000)]
include platform in config.mk

9 years agog/c comment which makes little sense now
Antti Kantee [Thu, 15 Oct 2015 22:27:49 +0000 (22:27 +0000)]
g/c comment which makes little sense now

9 years agoStill set LDFLAGS_BAKE here until Makefile.app-tools is fixed.
Antti Kantee [Thu, 15 Oct 2015 20:15:01 +0000 (20:15 +0000)]
Still set LDFLAGS_BAKE here until Makefile.app-tools is fixed.

9 years agoFix itchy push finger problem part 1
Antti Kantee [Thu, 15 Oct 2015 20:12:20 +0000 (20:12 +0000)]
Fix itchy push finger problem part 1

restore @ln (not ln)

9 years agoSpecify bake-time special ldflags in global.mk
Antti Kantee [Thu, 15 Oct 2015 20:10:31 +0000 (20:10 +0000)]
Specify bake-time special ldflags in global.mk

Finally decouples Makefile.app-tools from platform/x/Makefile

9 years agoCreate links at the right place.
Antti Kantee [Thu, 15 Oct 2015 19:51:30 +0000 (19:51 +0000)]
Create links at the right place.

(no wonder I couldn't repeat the travis failure, I forgot to
commit this change ... :)

9 years agoNo reason to include <bmk-core/core.h> here
Antti Kantee [Thu, 15 Oct 2015 19:10:58 +0000 (19:10 +0000)]
No reason to include <bmk-core/core.h> here

9 years agoBuild librumprun_base as part of userland build-rr.sh cycle
Antti Kantee [Thu, 15 Oct 2015 17:52:45 +0000 (17:52 +0000)]
Build librumprun_base as part of userland build-rr.sh cycle

Also, install the lib to destdir.

9 years agoDon't complain if LDFLAGS_BAKE is missing.
Antti Kantee [Thu, 15 Oct 2015 19:10:03 +0000 (19:10 +0000)]
Don't complain if LDFLAGS_BAKE is missing.

Intermediary commit to fix cyclic commit dependency, the
reason will go away shortly.

9 years agomake "make clean" work for non-hw without PLATFORM=foo
Antti Kantee [Thu, 15 Oct 2015 16:57:34 +0000 (16:57 +0000)]
make "make clean" work for non-hw without PLATFORM=foo

9 years agog/c APPTOOLS_OBJS_BAKE, it does not contain any extra info.
Antti Kantee [Thu, 15 Oct 2015 16:55:55 +0000 (16:55 +0000)]
g/c APPTOOLS_OBJS_BAKE, it does not contain any extra info.

9 years agoInstall ldscript and use it for baking from destdir
Antti Kantee [Thu, 15 Oct 2015 16:50:36 +0000 (16:50 +0000)]
Install ldscript and use it for baking from destdir

9 years agoUse hypercalls instead of header/symbol kludges.
Antti Kantee [Thu, 15 Oct 2015 16:04:40 +0000 (16:04 +0000)]
Use hypercalls instead of header/symbol kludges.

9 years agoremove unnecessary cppflags
Antti Kantee [Thu, 15 Oct 2015 15:54:39 +0000 (15:54 +0000)]
remove unnecessary cppflags

9 years agog/c unused config options
Antti Kantee [Thu, 15 Oct 2015 14:59:37 +0000 (14:59 +0000)]
g/c unused config options

9 years agoadd backlink to rumpkernel.org
Antti Kantee [Thu, 15 Oct 2015 13:22:46 +0000 (13:22 +0000)]
add backlink to rumpkernel.org

[ci skip]

9 years agoAdd x86_64/xen to kernonly test builds.
Antti Kantee [Thu, 15 Oct 2015 01:34:18 +0000 (01:34 +0000)]
Add x86_64/xen to kernonly test builds.

9 years agotests: pass PLATFORM to nolibc Makefile
Antti Kantee [Thu, 15 Oct 2015 01:33:31 +0000 (01:33 +0000)]
tests: pass PLATFORM to nolibc Makefile

9 years agoIf Xenstore config isn't available, use cmdline.
Antti Kantee [Thu, 15 Oct 2015 01:30:25 +0000 (01:30 +0000)]
If Xenstore config isn't available, use cmdline.

This change essentially decouples the bmk part of the Xen platform
from the rumprun userspace, essentially fixing "kernonly" mode on
Xen...  or at least making it possible to build a Xen kernonly image.

9 years agog/c libs which are now included in $rumprun.o
Antti Kantee [Wed, 14 Oct 2015 15:19:12 +0000 (15:19 +0000)]
g/c libs which are now included in $rumprun.o

9 years agoclean MAINOBJ
Antti Kantee [Wed, 14 Oct 2015 15:13:52 +0000 (15:13 +0000)]
clean MAINOBJ

9 years agoPut ldscript in common place
Antti Kantee [Wed, 14 Oct 2015 15:08:15 +0000 (15:08 +0000)]
Put ldscript in common place

9 years agoJust create rumprun.o in the same place as hw
Antti Kantee [Wed, 14 Oct 2015 12:00:16 +0000 (12:00 +0000)]
Just create rumprun.o in the same place as hw

Need real objdir later (location via config.mk),
but go for the easy way now.

9 years agoallow specifying platform as a make variable
Antti Kantee [Wed, 14 Oct 2015 11:50:09 +0000 (11:50 +0000)]
allow specifying platform as a make variable

default: hw

9 years agoDon't require every arch Makefile to specify LDSCRIPT.
Antti Kantee [Wed, 14 Oct 2015 14:00:16 +0000 (14:00 +0000)]
Don't require every arch Makefile to specify LDSCRIPT.

It's always ${ARCHDIR}/kern.ldscript.

9 years agoAvoid the need for knowing about NULL
Antti Kantee [Wed, 14 Oct 2015 11:49:14 +0000 (11:49 +0000)]
Avoid the need for knowing about NULL

Probably need to fix it by introducing NULL into bmk somehow,
but this approach is easier for now.

9 years agocan install the objects just 0444 too (not writable)
Antti Kantee [Tue, 13 Oct 2015 19:46:53 +0000 (19:46 +0000)]
can install the objects just 0444 too (not writable)

9 years agoAdd CMake test
Martin Lucina [Wed, 14 Oct 2015 09:50:50 +0000 (11:50 +0200)]
Add CMake test

Only built if CMake is installed

9 years agodon't install pseudostubs if KERNONLY
Antti Kantee [Tue, 13 Oct 2015 16:11:29 +0000 (16:11 +0000)]
don't install pseudostubs if KERNONLY

9 years agog/c BASE_DIR, not used anymore (wheee!)
Antti Kantee [Tue, 13 Oct 2015 15:56:04 +0000 (15:56 +0000)]
g/c BASE_DIR, not used anymore (wheee!)

9 years agoPoint CMAKE_FIND_ROOT_PATH to the supposedly right place.
Antti Kantee [Tue, 13 Oct 2015 15:55:01 +0000 (15:55 +0000)]
Point CMAKE_FIND_ROOT_PATH to the supposedly right place.

XXX: no idea how to test that cmake works.  Would be
nice to have an automated test for that.

9 years agoinstall & use pseudostubs object from destdir
Antti Kantee [Tue, 13 Oct 2015 15:53:16 +0000 (15:53 +0000)]
install & use pseudostubs object from destdir

9 years agoImprove detection of pvclock
Martin Lucina [Tue, 13 Oct 2015 14:10:24 +0000 (16:10 +0200)]
Improve detection of pvclock

There are two MSR variants, old-style and new-style. We want to prefer
the new-style one, and neither if the relevant flags aren't set in
CPUID.

9 years agoImprove separation of pvclock/tscclock
Martin Lucina [Tue, 13 Oct 2015 13:53:10 +0000 (15:53 +0200)]
Improve separation of pvclock/tscclock

Allows us to init pvclock and fall back to tscclock if pvclock is
unavailable. Also allows for easier implementation of e.g. Xen HVM use
of pvclock later.

9 years agopvclock_read_wall_clock reads boot time, not current time
Martin Lucina [Tue, 13 Oct 2015 11:12:44 +0000 (13:12 +0200)]
pvclock_read_wall_clock reads boot time, not current time

9 years agoFix mul64_32() for i386 clobbering CF
Martin Lucina [Tue, 13 Oct 2015 10:55:56 +0000 (12:55 +0200)]
Fix mul64_32() for i386 clobbering CF

9 years agoImplement KVM pvclock support (#36)
Martin Lucina [Mon, 12 Oct 2015 16:09:49 +0000 (18:09 +0200)]
Implement KVM pvclock support (#36)

9 years agofix typo in previous
Antti Kantee [Tue, 13 Oct 2015 14:02:25 +0000 (14:02 +0000)]
fix typo in previous

9 years agoInstall mainobj and use it from destdir in app-tools.
Antti Kantee [Tue, 13 Oct 2015 13:19:18 +0000 (13:19 +0000)]
Install mainobj and use it from destdir in app-tools.

Note to devs: you must now "make && make install" in platform/foo

9 years agoremove unnecessary header
Antti Kantee [Tue, 13 Oct 2015 11:47:52 +0000 (11:47 +0000)]
remove unnecessary header

9 years ago__dead -> __attribute__((noreturn))
Antti Kantee [Tue, 13 Oct 2015 11:43:57 +0000 (11:43 +0000)]
__dead -> __attribute__((noreturn))

That way we don't have to depend on __dead being defined (which
might not be the case in every place we need to include this header).

9 years agomake "application" entry point consistently bmk_mainthread()
Antti Kantee [Tue, 13 Oct 2015 00:48:56 +0000 (00:48 +0000)]
make "application" entry point consistently bmk_mainthread()

9 years agoneed more types for kernonly rump_syscalls.h grokage
Antti Kantee [Tue, 13 Oct 2015 00:13:21 +0000 (00:13 +0000)]
need more types for kernonly rump_syscalls.h grokage

9 years agog/c __printflike and "implement" __dead
Antti Kantee [Mon, 12 Oct 2015 23:57:16 +0000 (23:57 +0000)]
g/c __printflike and "implement" __dead

9 years agog/c unused types
Antti Kantee [Mon, 12 Oct 2015 23:55:39 +0000 (23:55 +0000)]
g/c unused types

9 years agog/c target in comment
Antti Kantee [Mon, 12 Oct 2015 23:40:11 +0000 (23:40 +0000)]
g/c target in comment

Should've just been removed in the first place.

9 years agog/c targets we don't use
Antti Kantee [Mon, 12 Oct 2015 23:27:47 +0000 (23:27 +0000)]
g/c targets we don't use

They're not maybe a bad idea, but need to be more generic
than just being in one subdirectory.

9 years agoxenbus is not optional, so don't pretend it is
Antti Kantee [Mon, 12 Oct 2015 23:24:00 +0000 (23:24 +0000)]
xenbus is not optional, so don't pretend it is

9 years agoInclude libbmk_{core,rumpuser} in $MAINOBJ.
Antti Kantee [Mon, 12 Oct 2015 22:01:04 +0000 (22:01 +0000)]
Include libbmk_{core,rumpuser} in $MAINOBJ.

9 years agoSupport kernonly mode for Xen
Antti Kantee [Mon, 12 Oct 2015 18:20:11 +0000 (18:20 +0000)]
Support kernonly mode for Xen

nb. tests/nolibc won't build for xen; hw is hardcoded there

9 years agomini-os side no longer needs access to userland headers
Antti Kantee [Mon, 12 Oct 2015 18:00:17 +0000 (18:00 +0000)]
mini-os side no longer needs access to userland headers

!

9 years agoRemove the need for stdargh.h and its inclusion from console.h
Antti Kantee [Mon, 12 Oct 2015 17:59:37 +0000 (17:59 +0000)]
Remove the need for stdargh.h and its inclusion from console.h

9 years ago<bmk-rumpuser/core_types.h> needed here too
Antti Kantee [Mon, 12 Oct 2015 16:51:45 +0000 (16:51 +0000)]
<bmk-rumpuser/core_types.h> needed here too

9 years agoinclude <bmk-rumpuser/core_types.h>
Antti Kantee [Mon, 12 Oct 2015 16:40:30 +0000 (16:40 +0000)]
include <bmk-rumpuser/core_types.h>

9 years agoDon't force-include core_types.h here
Antti Kantee [Mon, 12 Oct 2015 16:31:12 +0000 (16:31 +0000)]
Don't force-include core_types.h here

May cause conflicts for modules with a wider type system.

9 years agowe still need the #ifdef __RUMP_KERNEL__ too
Antti Kantee [Mon, 12 Oct 2015 16:27:12 +0000 (16:27 +0000)]
we still need the #ifdef __RUMP_KERNEL__ too