]>
xenbits.xensource.com Git - osstest/rumprun.git/log
Antti Kantee [Mon, 12 Oct 2015 14:01:50 +0000 (14:01 +0000)]
Specify libdir the same way both for ferment and bake.
Antti Kantee [Mon, 12 Oct 2015 13:57:53 +0000 (13:57 +0000)]
one -nostdinc is enough
Antti Kantee [Mon, 12 Oct 2015 13:45:45 +0000 (13:45 +0000)]
Destdir builds, part 1
Support a -d flag to build-rr.sh. Make some of the tools use
libraries and headers from that directory instead of a hardcoded
place.
Not everything is installed into destdir yet. More to come.
Martin Lucina [Mon, 12 Oct 2015 10:01:11 +0000 (12:01 +0200)]
Don't test hypervisor magic if HV base leaf is not supported
Martin Lucina [Mon, 12 Oct 2015 09:58:08 +0000 (11:58 +0200)]
Fix hypervisor magic byte order
Antti Kantee [Sun, 11 Oct 2015 12:19:07 +0000 (12:19 +0000)]
Restore Xen object order
Antti Kantee [Sun, 11 Oct 2015 15:41:11 +0000 (15:41 +0000)]
make sure -nostdinc gets set
Antti Kantee [Sun, 11 Oct 2015 00:00:34 +0000 (00:00 +0000)]
Fix test build for kernonly mode
Antti Kantee [Sat, 10 Oct 2015 23:59:52 +0000 (23:59 +0000)]
Fix to depend on right file
Antti Kantee [Sat, 10 Oct 2015 23:42:16 +0000 (23:42 +0000)]
Include platform and arch in "rumprun.o" filename
Antti Kantee [Sat, 10 Oct 2015 23:08:07 +0000 (23:08 +0000)]
Link minios.o into rumprun.o
Mirrors what platform/hw does.
Antti Kantee [Fri, 9 Oct 2015 18:15:46 +0000 (18:15 +0000)]
feed i a mushroom
[ci skip]
Antti Kantee [Thu, 8 Oct 2015 17:43:53 +0000 (17:43 +0000)]
travis: use -j16 (same as buildrump.sh)
Antti Kantee [Thu, 8 Oct 2015 17:43:15 +0000 (17:43 +0000)]
build-rr: accept -j as an argument
default is still -j4
Antti Kantee [Thu, 8 Oct 2015 17:20:45 +0000 (17:20 +0000)]
build-rr.sh: set -u
Antti Kantee [Thu, 8 Oct 2015 07:45:35 +0000 (07:45 +0000)]
No need to use strncpy() to copy one byte (and a lot of zeroes).
doubly so if strncpy() is used in a way which is doesn't really
handle termination properly anyway ...
Antti Kantee [Thu, 8 Oct 2015 07:38:58 +0000 (07:38 +0000)]
Make it easier to disable bootstrap console spam.
nb. easier, maybe not easy enough
related to #54
Antti Kantee [Wed, 7 Oct 2015 20:59:07 +0000 (20:59 +0000)]
build-rr.sh: fix typo in message
Antti Kantee [Wed, 7 Oct 2015 15:46:51 +0000 (15:46 +0000)]
add a note about what "experimental" means
[ci skip]
Antti Kantee [Tue, 6 Oct 2015 12:40:22 +0000 (12:40 +0000)]
Travis errored, force rebuild
XXX: should really really start doing this with a method
which does not pollute the revision history.
Antti Kantee [Tue, 6 Oct 2015 11:55:49 +0000 (11:55 +0000)]
ctassert that PAGES_PER_MAPWORD is a power of two
Antti Kantee [Tue, 6 Oct 2015 11:52:25 +0000 (11:52 +0000)]
Add bmk_ctassert() for compile-time assertions.
Antti Kantee [Mon, 5 Oct 2015 13:39:40 +0000 (13:39 +0000)]
assert that allocations are allocated in map
Antti Kantee [Mon, 5 Oct 2015 13:04:38 +0000 (13:04 +0000)]
control debug print spam with a variable
Antti Kantee [Mon, 5 Oct 2015 12:04:36 +0000 (12:04 +0000)]
Add bmk_pgalloc_dumpstats()
dumps pgalloc stats (in case someone didn't guess from the name)
Antti Kantee [Mon, 5 Oct 2015 11:08:18 +0000 (11:08 +0000)]
chunk_head -> chunk (simple)
no functional change intended
Antti Kantee [Mon, 5 Oct 2015 11:07:06 +0000 (11:07 +0000)]
use queue.h instead of homegrown linked list
Antti Kantee [Mon, 5 Oct 2015 01:37:52 +0000 (01:37 +0000)]
Don't overload variable
plus other cosmetic nits
Antti Kantee [Mon, 5 Oct 2015 01:31:54 +0000 (01:31 +0000)]
Use same indexes everywhere.
Antti Kantee [Mon, 5 Oct 2015 01:11:06 +0000 (01:11 +0000)]
fold common code into a subroutine
Antti Kantee [Mon, 5 Oct 2015 01:03:12 +0000 (01:03 +0000)]
add comment on why FREELISTS_LEVELS is like it is
Antti Kantee [Mon, 5 Oct 2015 00:54:21 +0000 (00:54 +0000)]
print_chunks() is a bit too silly to be kept alive
Antti Kantee [Mon, 5 Oct 2015 00:40:16 +0000 (00:40 +0000)]
Bring back chuck magic checks.
Problem they caught should be fixed now.
Antti Kantee [Mon, 5 Oct 2015 00:38:09 +0000 (00:38 +0000)]
prevent integer truncation in allocated_in_map()
Antti Kantee [Sun, 4 Oct 2015 22:47:04 +0000 (22:47 +0000)]
Revert "Put a magic number into the allocator chunks."
Breaks Travis CI tests. No idea why, so revert so that the
situation can be investigated.
This reverts commit
7dfdbb170ed8fffff11b2ad12a288e976b55a89d .
Antti Kantee [Sun, 4 Oct 2015 21:54:49 +0000 (21:54 +0000)]
Turn travis tests for hw/x86_64 back on
Need to try to figure out what's wrong ...
Antti Kantee [Sun, 4 Oct 2015 21:54:16 +0000 (21:54 +0000)]
don't overallow bitmap if memory starts from high up
Antti Kantee [Sun, 4 Oct 2015 21:15:14 +0000 (21:15 +0000)]
Make "Best effort" to display something for a test.
We might not get full output for whatever reason, so not-pretty
stuff is better than no stuff.
Antti Kantee [Sun, 4 Oct 2015 17:24:41 +0000 (17:24 +0000)]
Disable x86_64 tests for a short while.
Can't repeat locally, so can't be anything too serious.
Will fix it later tonight.
Antti Kantee [Sun, 4 Oct 2015 17:17:31 +0000 (17:17 +0000)]
Force retravis
Can't repeat the test failure locally ...
Antti Kantee [Sun, 4 Oct 2015 17:01:19 +0000 (17:01 +0000)]
Bunch of misc improvements
* misnamed FREELIST_SIZE
* misused FREELIST_EMPTY
* debug prints
* comments
Antti Kantee [Sun, 4 Oct 2015 16:47:28 +0000 (16:47 +0000)]
Allocate freelist head/tail at compile-time.
Antti Kantee [Sun, 4 Oct 2015 16:40:52 +0000 (16:40 +0000)]
Put a magic number into the allocator chunks.
Use that as an internal invariant. Free chunks must contain
the magic number.
Antti Kantee [Sun, 4 Oct 2015 16:27:30 +0000 (16:27 +0000)]
chunk_tail is not used in pgalloc => g/c
Antti Kantee [Sun, 4 Oct 2015 16:03:50 +0000 (16:03 +0000)]
introduce order2size() for common calculation
Antti Kantee [Sun, 4 Oct 2015 15:58:18 +0000 (15:58 +0000)]
Get rid of stupid_t and hide pointer arith in macros.
Antti Kantee [Sun, 4 Oct 2015 14:47:35 +0000 (14:47 +0000)]
Actually fix the "is address managed?" check
No, for real this time.
Antti Kantee [Sun, 4 Oct 2015 14:31:28 +0000 (14:31 +0000)]
Make sanity_check() compile again.
Run it after every allocation and deallocation if BMK_PGALLOC_DEBUG
is turned on.
Antti Kantee [Sun, 4 Oct 2015 14:12:05 +0000 (14:12 +0000)]
Record min/max addresses as pages instead of bytes
They're always used as pages...
Antti Kantee [Sun, 4 Oct 2015 13:58:37 +0000 (13:58 +0000)]
g/c no longer valid comment
Antti Kantee [Sun, 4 Oct 2015 13:48:22 +0000 (13:48 +0000)]
Accept -h as an alias for -?
Was missing from getopts param
Antti Kantee [Sun, 4 Oct 2015 13:47:47 +0000 (13:47 +0000)]
improve help message formatting and option grouping
Antti Kantee [Sun, 4 Oct 2015 12:34:44 +0000 (12:34 +0000)]
Pull in new buildrump.sh
Stops unwanted "obj" directory from being created as part of
running ./build-rr.sh
Antti Kantee [Fri, 2 Oct 2015 15:55:36 +0000 (15:55 +0000)]
Make sure we don't under/overflow our chunk merges.
Antti Kantee [Fri, 2 Oct 2015 15:38:10 +0000 (15:38 +0000)]
Make sure we don't access alloc_bitmap[] beyond its bounds.
Antti Kantee [Fri, 2 Oct 2015 15:37:52 +0000 (15:37 +0000)]
no casting for void *
Antti Kantee [Fri, 2 Oct 2015 14:54:50 +0000 (14:54 +0000)]
Print alloc/free when BMK_PGALLOC_DEBUGging
Antti Kantee [Fri, 2 Oct 2015 14:42:23 +0000 (14:42 +0000)]
make BMK_PGALLOC_DEBUG code compile
Antti Kantee [Fri, 2 Oct 2015 14:22:01 +0000 (14:22 +0000)]
Add -n (does the usual -n thing)
Antti Kantee [Fri, 2 Oct 2015 12:06:38 +0000 (12:06 +0000)]
Also stop at #GP on amd64
Antti Kantee [Thu, 1 Oct 2015 22:24:29 +0000 (22:24 +0000)]
Make sure -lc++ comes before -lunwind in C++ compilations
from issue #52
Antti Kantee [Thu, 1 Oct 2015 22:08:07 +0000 (22:08 +0000)]
Install unwind.h
from #52
Antti Kantee [Thu, 1 Oct 2015 19:50:58 +0000 (19:50 +0000)]
Attempt to print RIP for invalid opcode trap.
Martin Lucina [Thu, 1 Oct 2015 15:35:34 +0000 (17:35 +0200)]
Improve serial console detection
When running on Xen hypervisor, default to serial console
Martin Lucina [Thu, 1 Oct 2015 15:34:44 +0000 (17:34 +0200)]
Translate LF to CRLF in serialcons.c
Martin Lucina [Thu, 1 Oct 2015 15:34:07 +0000 (17:34 +0200)]
Add function to detect if running under hypervisor
Martin Lucina [Thu, 1 Oct 2015 15:32:05 +0000 (17:32 +0200)]
Remove broken abstraction in x86_cpuid()
CPUID is a mess, remove the broken abstraction in x86_cpuid() which
tries to detect the maximum supported level, as it gets in the way of
using other CPUID leaves (hypervisor detection).
Antti Kantee [Thu, 1 Oct 2015 11:29:58 +0000 (11:29 +0000)]
Cleanup platform config detection.
Use a bit of awk instead of an undocumented rumpbake command.
We'd need a bit of grep there already anyway to match the config
with the platform.
Antti Kantee [Thu, 1 Oct 2015 11:23:33 +0000 (11:23 +0000)]
Write xen_pci rule in simpler terms.
no computer change, just human friendly change
Antti Kantee [Thu, 1 Oct 2015 00:22:34 +0000 (00:22 +0000)]
Simplify rumpbake commands by removing redundant "bakeconf_"
Suggested by mato on rumpkernel-users
Antti Kantee [Tue, 29 Sep 2015 16:03:06 +0000 (16:03 +0000)]
rumprun-$platform-specs-bake -> specs-bake-$tuple-$platform
Allows same app-tools dir to contain >1 machine per platform.
Antti Kantee [Tue, 29 Sep 2015 15:13:29 +0000 (15:13 +0000)]
Revert "Use smallest prefix as platform, not largest."
Duh, thinko, it was previously correct.
This reverts commit
cce7f118b100a4d8f856cda3ef1907ca132dd6d5 .
Martin Lucina [Tue, 29 Sep 2015 12:31:36 +0000 (14:31 +0200)]
Save BIOS data area values in locore
Eliminates the need to muck with page tables on amd64
Martin Lucina [Tue, 29 Sep 2015 10:13:23 +0000 (12:13 +0200)]
Serial console support for hw (x86) platform
Implement basic serial console (output-only, without interrupts) for
hw/x86. Console output defaults to VGA, serial console is only used when
the BIOS claims VGA is not present and a serial port is present.
Antti Kantee [Tue, 29 Sep 2015 13:54:49 +0000 (13:54 +0000)]
Check that confname format follows currently allowed format.
Currently, confnames much begin with "hw_", "xen_" or just "_".
Antti Kantee [Tue, 29 Sep 2015 13:54:28 +0000 (13:54 +0000)]
Use smallest prefix as platform, not largest.
Antti Kantee [Mon, 28 Sep 2015 15:33:07 +0000 (15:33 +0000)]
Remove no longer necessary clause in "list" handling
Antti Kantee [Mon, 28 Sep 2015 15:31:30 +0000 (15:31 +0000)]
Limit visibility of _configs
Also, one underscore is enough (rumpbake.conf)
Antti Kantee [Mon, 28 Sep 2015 14:53:40 +0000 (14:53 +0000)]
Add "rumpbake justlist", which, like the old "list", just lists.
In other words, it does not print the descriptions.
Antti Kantee [Mon, 28 Sep 2015 14:36:10 +0000 (14:36 +0000)]
Improve rumpbake.conf flexibility.
It is now possible to add and remove elements from configurations
in custom configs (via -c conffile).
Antti Kantee [Mon, 28 Sep 2015 12:03:34 +0000 (12:03 +0000)]
Merge pull request #51 from nyx/patch-1
fix typo in README.md
Andrew Andkjar [Mon, 28 Sep 2015 11:56:15 +0000 (07:56 -0400)]
fix typo in README.md
Antti Kantee [Sat, 26 Sep 2015 14:49:49 +0000 (14:49 +0000)]
Revert "Hide fermented objects' exported symbols before baking."
This reverts commit
8a137b3c27cf370dd96638be2f172dcbb8d03378 .
As reported by @gandro, it breaks some subtle interactions with the
libunwind(?). So revert the change pending further investigation.
Antti Kantee [Fri, 25 Sep 2015 18:30:15 +0000 (18:30 +0000)]
Hide fermented objects' exported symbols before baking.
Makes it possible to multibake many applications which contain
the same symbols (or which are linked to the same lib).
Requested by @gandro.
Antti Kantee [Thu, 24 Sep 2015 19:07:08 +0000 (19:07 +0000)]
put internal functions in _namespace
Antti Kantee [Thu, 24 Sep 2015 19:02:07 +0000 (19:02 +0000)]
ROOTFSCFG => _RUMPRUN_ROOTFSCFG
Just makes it a bit less likely to have a collision.
Antti Kantee [Thu, 24 Sep 2015 13:25:49 +0000 (13:25 +0000)]
Merge pull request #50 from boardwalk/master
Allow ROOTFSCFG= to not be at the beginning of the command line.
Dan Skorupski [Thu, 24 Sep 2015 00:58:04 +0000 (19:58 -0500)]
Add myself to authors.
Dan Skorupski [Wed, 23 Sep 2015 19:46:26 +0000 (14:46 -0500)]
Allow ROOTFSCFG= to not be at the beginning of the command line.
syslinux passes the entire command line ala main(), ex:
"/myprogram.bin ROOTFSCFG=/json.cfg"
Sebastian Wicki [Tue, 22 Sep 2015 22:20:45 +0000 (00:20 +0200)]
Merge pull request #48 from gandro/sigign
Don't issue a warning when ignoring signals
Sebastian Wicki [Tue, 22 Sep 2015 21:24:47 +0000 (23:24 +0200)]
Don't issue a warning when ignoring signals
Since we are ignoring signals anyways. This also disables the warning
if `act` is NULL, since we return a valid structure in `oact`.
Antti Kantee [Tue, 22 Sep 2015 01:33:57 +0000 (01:33 +0000)]
Split PCI and DMA hypercalls into separate files.
PCI (usually) implies DMA, but DMA doesn't imply PCI.
Antti Kantee [Mon, 21 Sep 2015 13:49:14 +0000 (13:49 +0000)]
sigaction: make osa_handler SIG_IGN instead of SIG_DFL.
Latter was accidental. Former is more honest.
Antti Kantee [Fri, 18 Sep 2015 15:53:37 +0000 (15:53 +0000)]
Usage: use the more widely accepted version of alphabetical order.
Antti Kantee [Fri, 18 Sep 2015 15:52:26 +0000 (15:52 +0000)]
Accept a -o parameter which determines the build objdir
Only part of the objects go there as of now, and more work
is required to stuff all of the objects into objdir.
Antti Kantee [Fri, 18 Sep 2015 11:59:20 +0000 (11:59 +0000)]
update to match reality
[ci skip]
Antti Kantee [Thu, 17 Sep 2015 17:14:51 +0000 (17:14 +0000)]
Actually change the library name too (re previous commit)
Antti Kantee [Thu, 17 Sep 2015 16:49:06 +0000 (16:49 +0000)]
librumprun_unwind -> libunwind
There's nothing rumprun-specific in there. The original idea with the
rumprun prefix was to avoid namespace conflicts, but if someone wants
to link in another libunwind we'll be in trouble regardless. Also,
consistency with libcompiler_rt.
Antti Kantee [Sat, 12 Sep 2015 19:12:06 +0000 (19:12 +0000)]
Cache truth value of having a working C++ compiler
Antti Kantee [Fri, 11 Sep 2015 13:11:12 +0000 (13:11 +0000)]
pull in new src-netbsd
fixes snafu in previous