]> xenbits.xensource.com Git - osstest/rumprun.git/log
osstest/rumprun.git
9 years agoconfig.md: Continuing work on configuration spec
Martin Lucina [Tue, 1 Dec 2015 15:18:37 +0000 (16:18 +0100)]
config.md: Continuing work on configuration spec

Now mostly documents the current implementation

9 years agorumprun: use sysctl() to disable DAD
Antti Kantee [Mon, 30 Nov 2015 23:21:47 +0000 (23:21 +0000)]
rumprun: use sysctl() to disable DAD

It's possible since there's a new src-netbsd in town (has
been for some time now).

9 years agoconfig: Formatting fixes
Martin Lucina [Mon, 30 Nov 2015 15:15:07 +0000 (16:15 +0100)]
config: Formatting fixes

9 years agoFirst cut of rumprun unikernel configuration specification
Martin Lucina [Mon, 30 Nov 2015 15:12:19 +0000 (16:12 +0100)]
First cut of rumprun unikernel configuration specification

This is mostly extracted from current librumprun_base/config.c and
app-tools/rumprun source. Work in progress.

9 years agohw/x86: Load configuration from multiboot module if found
Martin Lucina [Mon, 30 Nov 2015 13:33:58 +0000 (14:33 +0100)]
hw/x86: Load configuration from multiboot module if found

9 years agorumpbake_main<n> -> rumprun_main<n>
Antti Kantee [Sun, 29 Nov 2015 18:55:00 +0000 (18:55 +0000)]
rumpbake_main<n> -> rumprun_main<n>

Avoids the problematic term "rumpbake", and the
function name is more a property of rumprun anyway.

9 years agoRestore old argv behaviour which was lost with rc_TESTING.
Antti Kantee [Wed, 25 Nov 2015 22:02:59 +0000 (22:02 +0000)]
Restore old argv behaviour which was lost with rc_TESTING.

The first argv deriving from cmdline will be used for all
remaining executables.  Sucky semantics, but while we're in
limbo, we're in limbo, and not much sense can be made here.

9 years agominios: don't rely on specific page table allocation scheme
Wei Liu [Mon, 23 Nov 2015 13:05:08 +0000 (13:05 +0000)]
minios: don't rely on specific page table allocation scheme

Today mini-os is making assumptions how the page tables it is started
with are being allocated. Especially it is using the number of page
table frames to calculate which is the first unmapped pfn.

Instead of relying on page table number assumptions just look into the
page tables to find the first pfn not already mapped.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
master commit: 8d84345a20d8a46ea26379c9f19961f6aa3e6e83
master date: Fri Nov 20 19:32:42 2015 +0100
[ wei: port to rumprun ]
Signed-off-by: Wei Liu <liuw@liuw.name>
9 years agorumprun: fix grub-mkrescue argument order
Antti Kantee [Tue, 17 Nov 2015 11:44:53 +0000 (11:44 +0000)]
rumprun: fix grub-mkrescue argument order

Now matches man page.  Fixes issue #62.

9 years agopgalloc_align: make page size min alignment
Antti Kantee [Tue, 17 Nov 2015 11:40:33 +0000 (11:40 +0000)]
pgalloc_align: make page size min alignment

Fix callers and tighten assert.

9 years agoadd more kludges to deal with test build mess
Antti Kantee [Tue, 17 Nov 2015 01:44:54 +0000 (01:44 +0000)]
add more kludges to deal with test build mess

9 years agoUpdate src-netbsd and buildrump.sh.
Antti Kantee [Tue, 17 Nov 2015 01:20:38 +0000 (01:20 +0000)]
Update src-netbsd and buildrump.sh.

Fixes snafu in previous update of these submodules.

9 years agobuildtests.sh: don't set variables which are already set
Antti Kantee [Tue, 17 Nov 2015 00:47:45 +0000 (00:47 +0000)]
buildtests.sh: don't set variables which are already set

9 years agopull in latest src-netbsd and buildrump.sh
Antti Kantee [Tue, 17 Nov 2015 00:47:13 +0000 (00:47 +0000)]
pull in latest src-netbsd and buildrump.sh

9 years agoFix test build by making sure CC/CXX doesn't get overriden.
Antti Kantee [Mon, 16 Nov 2015 16:36:34 +0000 (16:36 +0000)]
Fix test build by making sure CC/CXX doesn't get overriden.

XXX: maybe the vars for the backend buildrump.sh tools in
config (e.g. CC) should have smarter names.

9 years agorumprun-bake: make -c conf-without-path work
Antti Kantee [Mon, 16 Nov 2015 15:13:21 +0000 (15:13 +0000)]
rumprun-bake: make -c conf-without-path work

9 years agorumprun-bake usage: all commands optionally take -c conffile
Antti Kantee [Mon, 16 Nov 2015 13:08:18 +0000 (13:08 +0000)]
rumprun-bake usage: all commands optionally take -c conffile

9 years agotests: include $RUMPRUN_MKCONF
Antti Kantee [Mon, 16 Nov 2015 12:18:15 +0000 (12:18 +0000)]
tests: include $RUMPRUN_MKCONF

"make clean" will now nuke hellopp.bin, where pertinent

9 years agorumprun-bake: check that "describe" is invoked with proper args
Antti Kantee [Sun, 15 Nov 2015 14:21:10 +0000 (14:21 +0000)]
rumprun-bake: check that "describe" is invoked with proper args

9 years agorumprun-bake: dumpconfig -> describe
Antti Kantee [Sun, 15 Nov 2015 14:07:54 +0000 (14:07 +0000)]
rumprun-bake: dumpconfig -> describe

New name seems, subjectively speaking, more professional.

9 years agorumprun-bake: improve usage
Antti Kantee [Sun, 15 Nov 2015 14:07:15 +0000 (14:07 +0000)]
rumprun-bake: improve usage

* add dumpconfig
* print synopsis and descriptions in the same order

9 years agorumprun-bake: give user a better chance to see compat warning
Antti Kantee [Sun, 15 Nov 2015 13:56:55 +0000 (13:56 +0000)]
rumprun-bake: give user a better chance to see compat warning

9 years agorumprun-bake: _uniq only just-in-time
Antti Kantee [Sat, 14 Nov 2015 20:27:07 +0000 (20:27 +0000)]
rumprun-bake: _uniq only just-in-time

It's not *that* difficult, and it's way faster.

9 years agorumprun-bake: fix _uniq param to make previous commit actually work
Antti Kantee [Sat, 14 Nov 2015 19:22:33 +0000 (19:22 +0000)]
rumprun-bake: fix _uniq param to make previous commit actually work

The numbers from the previous commit are less impressive now.
But we're still ahead of the 100ms human-lag-detection zone.

9 years agorumprun-bake: _uniq each config only in its final state
Antti Kantee [Sat, 14 Nov 2015 18:36:17 +0000 (18:36 +0000)]
rumprun-bake: _uniq each config only in its final state

Hugely speeds up config processing: makes "rumprun-bake list" go
from 150ms to 40ms on my machine and, most importantly, removes
human-observable sluggishness.

9 years agorumprun-bake: add "dumpconfig" to command line syntax
Antti Kantee [Sat, 14 Nov 2015 17:52:52 +0000 (17:52 +0000)]
rumprun-bake: add "dumpconfig" to command line syntax

9 years agoAssign ${.PARSEDIR} directly instead of cd + pwd.
Antti Kantee [Sat, 14 Nov 2015 13:32:08 +0000 (13:32 +0000)]
Assign ${.PARSEDIR} directly instead of cd + pwd.

Fixes issue #60

9 years agobuild-rr: abspath PLATFORMDIR
Antti Kantee [Sat, 14 Nov 2015 13:31:42 +0000 (13:31 +0000)]
build-rr: abspath PLATFORMDIR

9 years agorumprun-bake: fix grammar in usage and reword slightly
Antti Kantee [Fri, 13 Nov 2015 14:44:08 +0000 (14:44 +0000)]
rumprun-bake: fix grammar in usage and reword slightly

9 years agobuild-rr: catch errors from buildrump.sh probe
Antti Kantee [Fri, 13 Nov 2015 14:28:01 +0000 (14:28 +0000)]
build-rr: catch errors from buildrump.sh probe

9 years agobuild-rr: run setvars also for install
Antti Kantee [Fri, 13 Nov 2015 13:58:07 +0000 (13:58 +0000)]
build-rr: run setvars also for install

Makes "./build-rr hw install" work.  Without this fix the
default object directory would not get set.

9 years agobuild-rr: add -d to synopsis
Antti Kantee [Fri, 13 Nov 2015 12:41:03 +0000 (12:41 +0000)]
build-rr: add -d to synopsis

9 years agorumprun launcher: fail if -D is used with iso
Antti Kantee [Wed, 11 Nov 2015 15:28:08 +0000 (15:28 +0000)]
rumprun launcher: fail if -D is used with iso

9 years agoapp-tools cc: fail for -print-multiarch
Antti Kantee [Thu, 5 Nov 2015 23:13:00 +0000 (23:13 +0000)]
app-tools cc: fail for -print-multiarch

Some packages (e.g. python) will do the wrong thing if the
compiler pretends to support multiarch.

with thanks to @rday

9 years agoapp-tools cc: use basename $0 for error, not whole $0
Antti Kantee [Thu, 5 Nov 2015 23:11:06 +0000 (23:11 +0000)]
app-tools cc: use basename $0 for error, not whole $0

9 years agobuild-rr: write "config" which includes both mk/sh configs
Antti Kantee [Thu, 5 Nov 2015 21:34:49 +0000 (21:34 +0000)]
build-rr: write "config" which includes both mk/sh configs

9 years agoRun "make includes" so that unwind.h gets installed again.
Antti Kantee [Thu, 5 Nov 2015 16:59:02 +0000 (16:59 +0000)]
Run "make includes" so that unwind.h gets installed again.

Fixes rumprun-packages/38

9 years agox86: ack insr interrupts on PIC.
Antti Kantee [Thu, 5 Nov 2015 16:33:16 +0000 (16:33 +0000)]
x86: ack insr interrupts on PIC.

Partial fix for #59 in the sense that the guest no longer
stops responding.

Still no idea why repeating the problem is only possible on
amd64 with serial console, so further exploration is necessary.

per tip from @mato

9 years agog/c leftover local prototypes
Antti Kantee [Wed, 4 Nov 2015 23:11:10 +0000 (23:11 +0000)]
g/c leftover local prototypes

no functional change

9 years agobuild-rr: update usage
Antti Kantee [Wed, 4 Nov 2015 15:49:12 +0000 (15:49 +0000)]
build-rr: update usage

9 years agorumprun: fix -W t,inet,dhcp under set -u
Antti Kantee [Wed, 4 Nov 2015 13:50:02 +0000 (13:50 +0000)]
rumprun: fix -W t,inet,dhcp under set -u

9 years agorumprun: adjust copypasteware in error messages
Antti Kantee [Wed, 4 Nov 2015 13:49:13 +0000 (13:49 +0000)]
rumprun: adjust copypasteware in error messages

9 years agorumprun launcher: set -eu
Antti Kantee [Wed, 4 Nov 2015 13:35:31 +0000 (13:35 +0000)]
rumprun launcher: set -eu

Tried to go through a bunch of different scenarios, but some
fallout is possible, of course.

9 years agoprune unnecessary header
Antti Kantee [Wed, 4 Nov 2015 12:48:51 +0000 (12:48 +0000)]
prune unnecessary header

9 years agoMerge pull request #58 from gaffo/patch-1
Antti Kantee [Wed, 4 Nov 2015 10:55:27 +0000 (10:55 +0000)]
Merge pull request #58 from gaffo/patch-1

Correct error output, $image_path is blank / not a real variable

9 years agotoolchain.cmake.in: Fix CMAKE_FIND_ROOT_PATH
Martin Lucina [Wed, 4 Nov 2015 10:33:03 +0000 (11:33 +0100)]
toolchain.cmake.in: Fix CMAKE_FIND_ROOT_PATH

9 years agoCorrect error output, $image_path is blank / not a real variable
Mike Gaffney [Wed, 4 Nov 2015 08:07:27 +0000 (00:07 -0800)]
Correct error output, $image_path is blank / not a real variable

When running, error doesn't say what it's missing, it is actually empty string in this case due to the wrong variable name being used.

9 years agomemalloc: nicer alloc stats print
Antti Kantee [Wed, 4 Nov 2015 02:06:08 +0000 (02:06 +0000)]
memalloc: nicer alloc stats print

9 years agomemalloc: ctassert malloc header size
Antti Kantee [Wed, 4 Nov 2015 01:58:14 +0000 (01:58 +0000)]
memalloc: ctassert malloc header size

9 years agoreduce malloc header overhead from 16 bytes to 8 bytes.
Antti Kantee [Wed, 4 Nov 2015 01:52:25 +0000 (01:52 +0000)]
reduce malloc header overhead from 16 bytes to 8 bytes.

As a side effect, alignment is limited to 2GB, but I think
that's enough, given that you'd have to have a guest with >4GB
memory for larger alignments to be possible.

9 years agomemalloc: use __builtin_clzl() instead of for loop.
Antti Kantee [Wed, 4 Nov 2015 00:08:15 +0000 (00:08 +0000)]
memalloc: use __builtin_clzl() instead of for loop.

9 years agomemalloc: NBUCKETS -> LOCALBUCKETS
Antti Kantee [Tue, 3 Nov 2015 23:29:57 +0000 (23:29 +0000)]
memalloc: NBUCKETS -> LOCALBUCKETS

(other buckets elsewhere)

9 years agomemalloc: a bunch of improvements
Antti Kantee [Tue, 3 Nov 2015 23:26:00 +0000 (23:26 +0000)]
memalloc: a bunch of improvements

* go directly to page allocator for large allocations
* make the test hit both small and large allocs
* code simplifications

9 years agomemalloc: avoid list ping-pong when allocating from core
Antti Kantee [Tue, 3 Nov 2015 21:44:51 +0000 (21:44 +0000)]
memalloc: avoid list ping-pong when allocating from core

9 years agomemalloc: use structs, not an union for alloc blocks
Antti Kantee [Tue, 3 Nov 2015 21:28:09 +0000 (21:28 +0000)]
memalloc: use structs, not an union for alloc blocks

9 years agopgalloc: fix comment
Antti Kantee [Tue, 3 Nov 2015 20:11:27 +0000 (20:11 +0000)]
pgalloc: fix comment

no fuctional change

9 years agocarveandlink_freechunk -> freechunk_link
Antti Kantee [Tue, 3 Nov 2015 19:48:33 +0000 (19:48 +0000)]
carveandlink_freechunk -> freechunk_link

more descriptional name
no functional change

9 years agorumpuser_mem: use page allocator for large allocations
Antti Kantee [Tue, 3 Nov 2015 19:42:17 +0000 (19:42 +0000)]
rumpuser_mem: use page allocator for large allocations

9 years agopgalloc: use builtin_ctz/clz instead of for loops.
Antti Kantee [Tue, 3 Nov 2015 18:17:08 +0000 (18:17 +0000)]
pgalloc: use builtin_ctz/clz instead of for loops.

9 years agoAdd bmk_pgalloc_align()
Antti Kantee [Tue, 3 Nov 2015 17:11:47 +0000 (17:11 +0000)]
Add bmk_pgalloc_align()

Can be used to allocate chunks with alignment > size.

9 years agomemalloc: g/c RCHECK never-conditionally-compiled checks
Antti Kantee [Mon, 2 Nov 2015 23:52:22 +0000 (23:52 +0000)]
memalloc: g/c RCHECK never-conditionally-compiled checks

9 years agouse constant width types
Antti Kantee [Mon, 2 Nov 2015 23:51:18 +0000 (23:51 +0000)]
use constant width types

9 years agomemalloc: remove unnecessary pagesize variable
Antti Kantee [Mon, 2 Nov 2015 23:07:58 +0000 (23:07 +0000)]
memalloc: remove unnecessary pagesize variable

9 years agosome comment massage
Antti Kantee [Mon, 2 Nov 2015 22:52:44 +0000 (22:52 +0000)]
some comment massage

9 years agomake the memalloc tester run on top of bmk
Antti Kantee [Mon, 2 Nov 2015 22:25:03 +0000 (22:25 +0000)]
make the memalloc tester run on top of bmk

9 years agoget install-time vars from objdir
Antti Kantee [Mon, 2 Nov 2015 14:44:49 +0000 (14:44 +0000)]
get install-time vars from objdir

9 years agoMake it clear that die produces an ERROR.
Antti Kantee [Mon, 2 Nov 2015 13:27:37 +0000 (13:27 +0000)]
Make it clear that die produces an ERROR.

9 years agoThrow nice error if user tries to install non-existent build
Antti Kantee [Mon, 2 Nov 2015 13:26:41 +0000 (13:26 +0000)]
Throw nice error if user tries to install non-existent build

9 years agoBuild malloc stats by default.
Antti Kantee [Mon, 2 Nov 2015 13:06:30 +0000 (13:06 +0000)]
Build malloc stats by default.

9 years agoadd hw_virtio_scsi configuration
Antti Kantee [Sun, 1 Nov 2015 23:46:18 +0000 (23:46 +0000)]
add hw_virtio_scsi configuration

9 years agoupdate buildrump.sh and src-netbsd
Antti Kantee [Sun, 1 Nov 2015 23:45:12 +0000 (23:45 +0000)]
update buildrump.sh and src-netbsd

9 years agog/c old way of specifying PCI support on platform/board
Antti Kantee [Sun, 1 Nov 2015 22:11:47 +0000 (22:11 +0000)]
g/c old way of specifying PCI support on platform/board

9 years agoDisable "stray interrupt" print
Antti Kantee [Sat, 31 Oct 2015 12:23:21 +0000 (12:23 +0000)]
Disable "stray interrupt" print

Doesn't convey anything useful in its current state.

9 years agoWhen building with -s, default destdir to rumprun-extsrc.
Antti Kantee [Sat, 31 Oct 2015 12:19:26 +0000 (12:19 +0000)]
When building with -s, default destdir to rumprun-extsrc.

Mirrors what object dirs do.

9 years agoMerge pull request #57 from mattgray/master
Antti Kantee [Fri, 30 Oct 2015 20:49:02 +0000 (20:49 +0000)]
Merge pull request #57 from mattgray/master

rumprun launcher: trim od output to support OS X

9 years agoAUTHORS updated
Matt Gray [Fri, 30 Oct 2015 19:23:48 +0000 (19:23 +0000)]
AUTHORS updated

9 years agorumprun launcher: OS X support: use printf to fix output of od
Matt Gray [Fri, 30 Oct 2015 20:00:53 +0000 (20:00 +0000)]
rumprun launcher: OS X support: use printf to fix output of od

9 years agocheckprevbuilds is now necessary only for xen
Antti Kantee [Fri, 30 Oct 2015 01:43:19 +0000 (01:43 +0000)]
checkprevbuilds is now necessary only for xen

9 years agoplatform/hw: create header links into objdir
Antti Kantee [Fri, 30 Oct 2015 01:40:43 +0000 (01:40 +0000)]
platform/hw: create header links into objdir

hw platform now builds completely into objdir, meaning multiple
parallel builds with different options are possible from one
working directory.

9 years agooops, revert buildrump.sh revision pointing to local repo
Antti Kantee [Thu, 29 Oct 2015 19:46:37 +0000 (19:46 +0000)]
oops, revert buildrump.sh revision pointing to local repo

9 years agorumprun launcher: remove use or readlink(1)
Antti Kantee [Thu, 29 Oct 2015 18:20:36 +0000 (18:20 +0000)]
rumprun launcher: remove use or readlink(1)

As reported by @mattgray on irc, the one available on OS X is
incompatible, and since resolving the canonical path doesn't
seem to be absolutely necessary, let's simply opt to not do it
at all.

9 years agobuild-rr: set -eu
Antti Kantee [Thu, 29 Oct 2015 16:40:04 +0000 (16:40 +0000)]
build-rr: set -eu

Both were previously set, but now they're set in the same place.
No functional change intended.

9 years agoSome archs: fix SRCS/ASMS to be those instead of .o
Antti Kantee [Thu, 29 Oct 2015 01:24:34 +0000 (01:24 +0000)]
Some archs: fix SRCS/ASMS to be those instead of .o

9 years agoBuild hw platform into $RROBJ.
Antti Kantee [Thu, 29 Oct 2015 01:15:14 +0000 (01:15 +0000)]
Build hw platform into $RROBJ.

9 years agoset --sysroot for compiler wrapper
Antti Kantee [Wed, 28 Oct 2015 22:05:01 +0000 (22:05 +0000)]
set --sysroot for compiler wrapper

Makes cc -print-sysroot work.  That said, why do we still
need -isystem and -L in our specs?  (yes, I tried without them,
lossage generated)

9 years agomakepseudolinkstubs: Use ${NM}, not nm
Antti Kantee [Wed, 28 Oct 2015 18:27:26 +0000 (18:27 +0000)]
makepseudolinkstubs: Use ${NM}, not nm

9 years agoFix include path for non-BUILDRR case.
Antti Kantee [Wed, 28 Oct 2015 17:46:46 +0000 (17:46 +0000)]
Fix include path for non-BUILDRR case.

9 years agoupdate buildrump.sh
Antti Kantee [Wed, 28 Oct 2015 17:35:26 +0000 (17:35 +0000)]
update buildrump.sh

9 years agoCheck if qemu supports -no-kvm
Antti Kantee [Wed, 28 Oct 2015 17:25:39 +0000 (17:25 +0000)]
Check if qemu supports -no-kvm

Some really old qemus might not.

9 years agofix error branch pastos in previous
Antti Kantee [Wed, 28 Oct 2015 13:10:34 +0000 (13:10 +0000)]
fix error branch pastos in previous

9 years agoUse ${READELF:=readelf} instead of hardcoding objdump.
Antti Kantee [Wed, 28 Oct 2015 13:07:42 +0000 (13:07 +0000)]
Use ${READELF:=readelf} instead of hardcoding objdump.

Use of readelf also mirrors rumprun-bake, so you need only
one binary dumping tool now (useful in env where the GNU'ish
toolchain isn't standard).

9 years agoxen ldscripts: include .text.* in text (like on hw)
Antti Kantee [Wed, 28 Oct 2015 12:48:12 +0000 (12:48 +0000)]
xen ldscripts: include .text.* in text (like on hw)

Might fix problems reported here:
https://www.freelists.org/post/rumpkernel-users/Issues-linking-executable-for-Rumprun-with-additional-library,4

9 years agoUse destdir/rumprun-$MACHINE_GNU_ARCH$ as a GNU-like prefix.
Antti Kantee [Wed, 28 Oct 2015 12:13:09 +0000 (12:13 +0000)]
Use destdir/rumprun-$MACHINE_GNU_ARCH$ as a GNU-like prefix.

9 years agoPut rumptools into the object directory.
Antti Kantee [Wed, 28 Oct 2015 01:35:55 +0000 (01:35 +0000)]
Put rumptools into the object directory.

9 years agoUpdate buildrump.sh and use new "probe" method.
Antti Kantee [Wed, 28 Oct 2015 01:34:32 +0000 (01:34 +0000)]
Update buildrump.sh and use new "probe" method.

The new probe method doesn't require any directories
to be created.

9 years agoUse MACHINE_GNU_ARCH, not MACHINE_ARCH
Antti Kantee [Tue, 27 Oct 2015 23:41:38 +0000 (23:41 +0000)]
Use MACHINE_GNU_ARCH, not MACHINE_ARCH

That matches the terms (and make variables!) with the NetBSD
Makefiles and avoids mismatch lossage.

9 years agoplatform/hw: need to use i386 as MACHINE_ARCH here
Antti Kantee [Tue, 27 Oct 2015 23:02:21 +0000 (23:02 +0000)]
platform/hw: need to use i386 as MACHINE_ARCH here

9 years agobuild-rr: don't override correct MACHINE_ARCH.
Antti Kantee [Tue, 27 Oct 2015 22:45:45 +0000 (22:45 +0000)]
build-rr: don't override correct MACHINE_ARCH.

The lossage stems from the fact that NetBSD uses i386 as
MACHINE, i386 as MACHINE_ARCH, and i486 as MACHINE_GNU_ARCH.
We want to follow the MACHINE_GNU_ARCH since it actually makes sense.

9 years agoOk, maybe the platform Makefiles aren't ready for -j
Antti Kantee [Tue, 27 Oct 2015 22:23:46 +0000 (22:23 +0000)]
Ok, maybe the platform Makefiles aren't ready for -j

9 years agobuild-rr: run platform make with -j
Antti Kantee [Tue, 27 Oct 2015 22:08:50 +0000 (22:08 +0000)]
build-rr: run platform make with -j