]> xenbits.xensource.com Git - rumpuser-xen.git/log
rumpuser-xen.git
10 years agoMerge pull request #24 from liuw/wip.qemu-stubdom-v2 xen-tested-master
Martin Lucina [Tue, 27 Jan 2015 11:40:19 +0000 (12:40 +0100)]
Merge pull request #24 from liuw/wip.qemu-stubdom-v2

Merging xen: export more symbols from @liuw

10 years agoxen: export gntmap_* symbols
Wei Liu [Tue, 27 Jan 2015 11:21:00 +0000 (11:21 +0000)]
xen: export gntmap_* symbols

Signed-off-by: Wei Liu <liuw@liuw.name>
10 years agoxen: move map_frames_ex under minios_ namespace
Wei Liu [Tue, 27 Jan 2015 11:26:10 +0000 (11:26 +0000)]
xen: move map_frames_ex under minios_ namespace

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
10 years agouse libc interfaces, not minios
Antti Kantee [Mon, 26 Jan 2015 11:42:13 +0000 (11:42 +0000)]
use libc interfaces, not minios

(why are there several copies of this code in the tree?)

10 years agorumprun, rumpconfig: Add support for setting guest environment.
Martin Lucina [Mon, 26 Jan 2015 11:40:11 +0000 (12:40 +0100)]
rumprun, rumpconfig: Add support for setting guest environment.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoIncrease default Mini-OS thread stack size to 256kB
Martin Lucina [Wed, 21 Jan 2015 19:02:53 +0000 (20:02 +0100)]
Increase default Mini-OS thread stack size to 256kB

Required to run some non-trivial applications (Hiawatha, PHP).

See issue #22.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoPull in latest src-netbsd
Martin Lucina [Wed, 21 Jan 2015 15:47:18 +0000 (16:47 +0100)]
Pull in latest src-netbsd

10 years agoRemove #define current get_current()
Antti Kantee [Wed, 21 Jan 2015 10:59:35 +0000 (10:59 +0000)]
Remove #define current get_current()

The name "current" is used in other contexts in the tree, and is just
a timebomb waiting for someone to include sched.h in the wrong place.

10 years agominor fixes to formatting and err{,x} calls
Antti Kantee [Tue, 20 Jan 2015 16:57:52 +0000 (17:57 +0100)]
minor fixes to formatting and err{,x} calls

10 years agobe verbose about error and workaround slow console
Antti Kantee [Tue, 20 Jan 2015 16:55:46 +0000 (17:55 +0100)]
be verbose about error and workaround slow console

In case the domu runs very quickly, there will be a complete failure
to observe any output.  Therefore, in case we exit with val != 0,
sleep a bit.  This is a cheap and dirty workaround.

10 years ago"advertise" tls_test in domain_config
Antti Kantee [Tue, 20 Jan 2015 16:47:39 +0000 (17:47 +0100)]
"advertise" tls_test in domain_config

10 years agoadd @mato's tls tester, simplified+automated a bit
Antti Kantee [Tue, 20 Jan 2015 16:46:29 +0000 (17:46 +0100)]
add @mato's tls tester, simplified+automated a bit

10 years agofix printf format string
Antti Kantee [Tue, 20 Jan 2015 16:12:19 +0000 (17:12 +0100)]
fix printf format string

10 years agogive all threads a chance to run before application runs
Antti Kantee [Tue, 20 Jan 2015 15:19:01 +0000 (15:19 +0000)]
give all threads a chance to run before application runs

10 years agoAdd TLS support for x86_64
Antti Kantee [Tue, 20 Jan 2015 14:56:05 +0000 (15:56 +0100)]
Add TLS support for x86_64

issue #19, with help from @mato

10 years agoapp-tools/ld: Ignore --export-dynamic and variants
Martin Lucina [Tue, 20 Jan 2015 12:22:33 +0000 (13:22 +0100)]
app-tools/ld: Ignore --export-dynamic and variants

Some applications insist on using --export-dynamic in LDFLAGS even when
configured with --disable-shared. Since we don't do dynamic linking,
we can safely ignore these options in stunt ld.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoapp-tools, buildxen: Disable use of sincos[f] by GCC
Martin Lucina [Tue, 20 Jan 2015 12:09:24 +0000 (13:09 +0100)]
app-tools, buildxen: Disable use of sincos[f] by GCC

Fixes issue #20.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agotest pthread_specificdata
Antti Kantee [Mon, 19 Jan 2015 16:14:00 +0000 (17:14 +0100)]
test pthread_specificdata

10 years agocancelstub binder is now provided by libpthread
Antti Kantee [Mon, 19 Jan 2015 15:32:10 +0000 (15:32 +0000)]
cancelstub binder is now provided by libpthread

10 years agofix unsupported call stubs used by pthread_cancelstub
Antti Kantee [Mon, 19 Jan 2015 15:31:37 +0000 (15:31 +0000)]
fix unsupported call stubs used by pthread_cancelstub

10 years agofix realloc() to use correct existing size
Antti Kantee [Fri, 16 Jan 2015 00:45:24 +0000 (00:45 +0000)]
fix realloc() to use correct existing size

prevents memory corruption in certain realloc() scenarios
reported by @mato

10 years agofix -DMEMALLOC_TESTING
Antti Kantee [Fri, 16 Jan 2015 00:44:58 +0000 (00:44 +0000)]
fix -DMEMALLOC_TESTING

10 years agoadd optional debug prints for cases where mmap "emulation" fails
Antti Kantee [Thu, 15 Jan 2015 11:27:21 +0000 (11:27 +0000)]
add optional debug prints for cases where mmap "emulation" fails

10 years agopull in new buildrump.sh and rumpsrc (openssl 1.0.1k)
Antti Kantee [Tue, 13 Jan 2015 18:26:15 +0000 (18:26 +0000)]
pull in new buildrump.sh and rumpsrc (openssl 1.0.1k)

10 years agorumpconfig: Enable deconfig for network interfaces
Martin Lucina [Tue, 13 Jan 2015 18:05:09 +0000 (19:05 +0100)]
rumpconfig: Enable deconfig for network interfaces

Enable deconfig of network interaces, including dhcp. Current tests show
that issue #14 appears to be fixed, so this should be good to go.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoMake initial stack setup consistent with per-thread stack setup
Martin Lucina [Tue, 13 Jan 2015 17:20:32 +0000 (18:20 +0100)]
Make initial stack setup consistent with per-thread stack setup

Push an "end of backtrace" marker onto the stack and zero BP. For x86_64
additionally push an extra 0 to ensure correct stack alignment as per
the ABI.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoCorrect x86-64 stack alignment at thread entry (fixes #18)
Martin Lucina [Mon, 12 Jan 2015 14:20:00 +0000 (15:20 +0100)]
Correct x86-64 stack alignment at thread entry (fixes #18)

The x86-64 ABI mandates in section 3.2.2 that (%rsp + 8) is always a
multiple of 16 when control is transferred to a function entry point. We
did not correctly implement this convention which resulted in broken
alignment for stack variables, and, following from that, SSE
instructions generated by GCC faulting due to bad alignment.

For the x86-32 version the alignment constraint appears to be[1] that
%esp must be a multiple of 16, this is already the case so no change is
made to x86-32.s.

[1] http://sourceforge.net/p/fbc/bugs/659/,
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38496

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoUse 64bit values for minios sched sleeps
Antti Kantee [Tue, 13 Jan 2015 00:42:27 +0000 (01:42 +0100)]
Use 64bit values for minios sched sleeps

fixes issues when current _wall_ time in msecs cannot be held in
32bit uint (well, uptime too, but that didn't happen quite a quickly)

10 years agoactually timedwait for some time, like 100ms instead of 1ms
Antti Kantee [Tue, 13 Jan 2015 00:38:43 +0000 (01:38 +0100)]
actually timedwait for some time, like 100ms instead of 1ms

10 years agosleep(1) at the end
Antti Kantee [Tue, 13 Jan 2015 00:37:37 +0000 (01:37 +0100)]
sleep(1) at the end

ensures that the console has time to attach, in case we run
a fast-exit-backstage-lefting test

10 years agopull in new buildrump.sh
Antti Kantee [Mon, 12 Jan 2015 20:14:00 +0000 (20:14 +0000)]
pull in new buildrump.sh

10 years agouse purely posix interfaces in rumpkern_demo, not mini-os ones remain
Antti Kantee [Mon, 12 Jan 2015 16:40:16 +0000 (16:40 +0000)]
use purely posix interfaces in rumpkern_demo, not mini-os ones remain

10 years agorename httpd's main() to httpd_main()
Antti Kantee [Mon, 12 Jan 2015 16:39:39 +0000 (16:39 +0000)]
rename httpd's main() to httpd_main()

10 years agoalign to min 16 bytes
Antti Kantee [Mon, 12 Jan 2015 13:16:44 +0000 (14:16 +0100)]
align to min 16 bytes

required by NetBSD userland

10 years agoadd domain_config for hello test.
Antti Kantee [Mon, 12 Jan 2015 13:12:46 +0000 (14:12 +0100)]
add domain_config for hello test.

easy way to run the test without "how did this work again?" pondering

10 years agouse sudo for xl if not running as root, so test runner can be limited to sudo on...
Justin Cormack [Fri, 9 Jan 2015 15:03:58 +0000 (16:03 +0100)]
use sudo for xl if not running as root, so test runner can be limited to sudo on xl only

10 years agoAdd -fno-stack-protector also to xen/arch/x86 modules
Martin Lucina [Fri, 9 Jan 2015 14:52:29 +0000 (15:52 +0100)]
Add -fno-stack-protector also to xen/arch/x86 modules

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoFix warnings in rumpuser_clock_gettime()
Martin Lucina [Fri, 9 Jan 2015 14:44:18 +0000 (15:44 +0100)]
Fix warnings in rumpuser_clock_gettime()

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agospecifying USE_SSP=no twice is unnecessary
Antti Kantee [Fri, 9 Jan 2015 14:20:01 +0000 (14:20 +0000)]
specifying USE_SSP=no twice is unnecessary

10 years agosprinkle -fno-stack-protector
Antti Kantee [Fri, 9 Jan 2015 09:05:47 +0000 (09:05 +0000)]
sprinkle -fno-stack-protector

makes builds with e.g. Ubuntu gcc work, where stack protect is default

10 years agosysproxy stubs are no longer required
Antti Kantee [Thu, 8 Jan 2015 18:31:38 +0000 (18:31 +0000)]
sysproxy stubs are no longer required

10 years agosysproxy now requires -lrumpkern_sysproxy
Antti Kantee [Thu, 8 Jan 2015 18:31:16 +0000 (18:31 +0000)]
sysproxy now requires -lrumpkern_sysproxy

10 years agopull in latest buildrump.sh and src-netbsd
Antti Kantee [Thu, 8 Jan 2015 18:30:17 +0000 (18:30 +0000)]
pull in latest buildrump.sh and src-netbsd

10 years agoMerge pull request #17 from rumpkernel/sysproxy
Martin Lucina [Thu, 8 Jan 2015 17:09:59 +0000 (18:09 +0100)]
Merge pull request #17 from rumpkernel/sysproxy

Tested and working; merging.

10 years agoAdd -D option to attach gdbsx to domU
Martin Lucina [Thu, 8 Jan 2015 11:25:39 +0000 (12:25 +0100)]
Add -D option to attach gdbsx to domU

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoAdd initial sysproxy support on top of guest TCP/IP networking
Antti Kantee [Wed, 7 Jan 2015 07:51:42 +0000 (07:51 +0000)]
Add initial sysproxy support on top of guest TCP/IP networking

10 years agoignore -lssp_nonshared in case the toolchain thinks we need it
Antti Kantee [Sun, 4 Jan 2015 14:10:41 +0000 (14:10 +0000)]
ignore -lssp_nonshared in case the toolchain thinks we need it

fixes builds on at least alpine linux

10 years agoIgnore -pie.
Antti Kantee [Fri, 2 Jan 2015 18:57:59 +0000 (18:57 +0000)]
Ignore -pie.

If for some reason we grow PIE support later, can be revisited.  Though,
it probably should be called pik (position independent kernel)

from Kevin Smith on rumpkernel-users

10 years agoMerge pull request #16 from rumpkernel/wip-timekeeping
Martin Lucina [Sun, 28 Dec 2014 17:22:20 +0000 (18:22 +0100)]
Merge pull request #16 from rumpkernel/wip-timekeeping

Implement wall clock time (rumprun-xen issue #13)

10 years agoImplement wall clock time (rumprun-xen issue #13)
Martin Lucina [Sun, 28 Dec 2014 17:12:40 +0000 (18:12 +0100)]
Implement wall clock time (rumprun-xen issue #13)

This change adds minios_clock_wall() as a global symbol to return wall
clock time from Xen. I did not reinstate the minios "gettime()" which is
available upstream as that relies on a definitition of struct timeval.

minios_monotonic_clock() is renamed to minios_clock_monotonic() for
consistency.

rumpuser_clock_gettime() is updated to support RUMPUSER_CLOCK_REWALL,
returning wall clock time.

All rumphyper calls to the minios NOW() macro are replaced with calls to
the properly namespaces minios_clock_monotonic().

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoremove struct schedulable unused members
Antti Kantee [Sun, 21 Dec 2014 12:00:04 +0000 (12:00 +0000)]
remove struct schedulable unused members

10 years agouse common xen/baremetal build script
Antti Kantee [Fri, 19 Dec 2014 12:19:49 +0000 (12:19 +0000)]
use common xen/baremetal build script

10 years agofigure out target machine
Antti Kantee [Fri, 19 Dec 2014 11:41:10 +0000 (11:41 +0000)]
figure out target machine

also for future unification with baremetal

10 years agofix tyop
Antti Kantee [Fri, 19 Dec 2014 11:29:20 +0000 (11:29 +0000)]
fix tyop

10 years agopass extra buildxen parameters to buildrump.sh
Antti Kantee [Fri, 19 Dec 2014 11:28:07 +0000 (11:28 +0000)]
pass extra buildxen parameters to buildrump.sh

e.g. ./buildxen.sh -q -- -V BUILDRUMP_VARIABLE=12765

10 years agobeautify/unify buildrump.sh invocations
Antti Kantee [Fri, 19 Dec 2014 11:26:36 +0000 (11:26 +0000)]
beautify/unify buildrump.sh invocations

no functional change

10 years agoreorder slightly (for upcoming changes)
Antti Kantee [Fri, 19 Dec 2014 11:25:22 +0000 (11:25 +0000)]
reorder slightly (for upcoming changes)

10 years agocreate test.ffs in makefile instead of buildxen.sh
Antti Kantee [Fri, 19 Dec 2014 02:51:39 +0000 (02:51 +0000)]
create test.ffs in makefile instead of buildxen.sh

10 years agoNuke unnecessary buildrump.sh invocation.
Antti Kantee [Fri, 19 Dec 2014 02:24:07 +0000 (02:24 +0000)]
Nuke unnecessary buildrump.sh invocation.

Probably been unnecessary since we stopped needing multiple source trees.

10 years agoadd lame workaround for missing pci_user.h when using -s
Antti Kantee [Fri, 19 Dec 2014 00:25:27 +0000 (00:25 +0000)]
add lame workaround for missing pci_user.h when using -s

10 years agoaccept -q for quiet build (and -qq for even quieter)
Antti Kantee [Fri, 19 Dec 2014 00:22:05 +0000 (00:22 +0000)]
accept -q for quiet build (and -qq for even quieter)

10 years agofix makelwp signature
Antti Kantee [Fri, 19 Dec 2014 00:19:19 +0000 (00:19 +0000)]
fix makelwp signature

10 years agosupport -s alternative_source_tree
Antti Kantee [Fri, 19 Dec 2014 00:13:50 +0000 (00:13 +0000)]
support -s alternative_source_tree

10 years agouse makepci() to build pci device driver components
Antti Kantee [Fri, 19 Dec 2014 00:05:51 +0000 (00:05 +0000)]
use makepci() to build pci device driver components

10 years agopull in latest buildrump.sh for makepci
Antti Kantee [Fri, 19 Dec 2014 00:03:30 +0000 (00:03 +0000)]
pull in latest buildrump.sh for makepci

10 years agoRe-enable rumphyper_pci and PCI passthrough libs.
Martin Lucina [Thu, 18 Dec 2014 12:02:03 +0000 (13:02 +0100)]
Re-enable rumphyper_pci and PCI passthrough libs.

Fixed by adding relevant symbols to minios global namespace. Compile
tested only.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoMini-OS: Link entire arch-specific lib into minios.o
Martin Lucina [Thu, 18 Dec 2014 12:01:15 +0000 (13:01 +0100)]
Mini-OS: Link entire arch-specific lib into minios.o

The arch-specific lib contains code which external callers depend on;
ensure the whole archive is linked into minios.o.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoMini-OS: Add more symbols to global namespace
Martin Lucina [Thu, 18 Dec 2014 11:59:54 +0000 (12:59 +0100)]
Mini-OS: Add more symbols to global namespace

Adding minios_ioremap, minios_ioremap_nocache, minios_iounmap,
minios_alloc_contig_pages. Required by rumphyper_pci.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoupdate to latest src-netbsd
Antti Kantee [Wed, 17 Dec 2014 01:13:56 +0000 (01:13 +0000)]
update to latest src-netbsd

Shuffle _lwp a bit to accommodate to latest source, also add
some stubs we need now.

10 years agoMini-OS: netfront: Fix rx ring starvation in network_rx
Martin Lucina [Mon, 15 Dec 2014 21:02:27 +0000 (22:02 +0100)]
Mini-OS: netfront: Fix rx ring starvation in network_rx

In network_rx() we must push the same amount of requests back onto the
ring in the second loop that we consumed in the first loop. Otherwise
the ring will eventually starve itself of free request slots and no
packets will be delivered.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agobuildxen.sh: 'links' target is now in xen/Makefile
Martin Lucina [Mon, 15 Dec 2014 20:58:53 +0000 (21:58 +0100)]
buildxen.sh: 'links' target is now in xen/Makefile

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoMini-OS: Add monotonic_clock to minios_ namespace
Martin Lucina [Fri, 12 Dec 2014 17:28:42 +0000 (18:28 +0100)]
Mini-OS: Add monotonic_clock to minios_ namespace

This is needed by rumphyper_base, among other things. Unclear how it is
possible that the build was working until now, separating the Mini-OS
and rumprun build systems exposed this.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoExtricate rumprun build system from Mini-OS
Martin Lucina [Fri, 12 Dec 2014 17:18:50 +0000 (18:18 +0100)]
Extricate rumprun build system from Mini-OS

Moves the Mini-OS Makefile and associated bits to xen/, separating the
rumprun and Mini-OS build systems. This will hopefully prepare us better
for (possibly) merging with upstream Mini-OS.

Further changes arising from this:

- All minios and rumprun object files are now built under obj/

- MiniOS build installs the arch-specific ldscript under
  obj/xen/minios.lds

- Rather than separately specifying the arch-specific startfile in
  app-tools specs we link it into the final minios.o and use that as the
  startfile.

  The advantage of this approach is we no longer have to "hunt" for the
  startfile _OR_ the arch-specific lib in the top-level Makefile. It
  does mean the resulting application has a different memory layout due
  to link order but this should not matter.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoupdate buildrump.sh and use new subr.sh syntax
Antti Kantee [Tue, 9 Dec 2014 22:21:18 +0000 (22:21 +0000)]
update buildrump.sh and use new subr.sh syntax

10 years agouse stdlibs()
Antti Kantee [Mon, 8 Dec 2014 19:33:38 +0000 (19:33 +0000)]
use stdlibs()

10 years agoupdate buildrump.sh for subr::stdlibs()
Antti Kantee [Mon, 8 Dec 2014 19:32:31 +0000 (19:32 +0000)]
update buildrump.sh for subr::stdlibs()

10 years agoAdd __libc_static_tls_setup() as a nop
Antti Kantee [Mon, 8 Dec 2014 13:12:50 +0000 (13:12 +0000)]
Add __libc_static_tls_setup() as a nop

To be called by the next src-netbsd libc

10 years agofix minios include path
Antti Kantee [Sun, 7 Dec 2014 18:05:55 +0000 (18:05 +0000)]
fix minios include path

10 years agomove "include" to "xen/include"
Antti Kantee [Sun, 7 Dec 2014 17:57:55 +0000 (17:57 +0000)]
move "include" to "xen/include"

All of mini-os is more or less under xen/ now.

10 years agoapp-tools: Remove useless objcopy from stunt ld
Martin Lucina [Wed, 3 Dec 2014 16:25:01 +0000 (17:25 +0100)]
app-tools: Remove useless objcopy from stunt ld

Discussed with Ian previously; the objcopy step was left over from
previous attempts at namespacing mini-os and is no longer required as
this is performed when linking minios.o.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoRemove redundant building of httpd from buildxen.sh
Martin Lucina [Wed, 3 Dec 2014 16:16:12 +0000 (17:16 +0100)]
Remove redundant building of httpd from buildxen.sh

This is now done in main Makefile.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agopull in latest buildrump.sh
Antti Kantee [Mon, 1 Dec 2014 18:13:31 +0000 (18:13 +0000)]
pull in latest buildrump.sh

10 years agopull in latest src-netbsd
Antti Kantee [Sun, 30 Nov 2014 23:21:08 +0000 (23:21 +0000)]
pull in latest src-netbsd

10 years agopull in latest buildrump.sh
Antti Kantee [Sun, 30 Nov 2014 23:03:45 +0000 (23:03 +0000)]
pull in latest buildrump.sh

10 years agopull in latest buildrump.sh
Antti Kantee [Sun, 30 Nov 2014 22:57:09 +0000 (22:57 +0000)]
pull in latest buildrump.sh

10 years agoOverriding probe of RUMP_CURLWP is no longer necessary in -k builds
Antti Kantee [Sun, 30 Nov 2014 22:51:18 +0000 (22:51 +0000)]
Overriding probe of RUMP_CURLWP is no longer necessary in -k builds

10 years agopull in new buildrump.sh
Antti Kantee [Sun, 30 Nov 2014 22:51:06 +0000 (22:51 +0000)]
pull in new buildrump.sh

10 years agoput the "standard" demo routines in a subdirectory
Antti Kantee [Wed, 26 Nov 2014 16:57:11 +0000 (16:57 +0000)]
put the "standard" demo routines in a subdirectory

10 years agoAdd "ifconfig destroy" support
Antti Kantee [Sun, 16 Nov 2014 13:07:32 +0000 (13:07 +0000)]
Add "ifconfig destroy" support

compile-tested only

10 years agoadd missing warnx() %s parameter
Antti Kantee [Wed, 26 Nov 2014 15:24:49 +0000 (15:24 +0000)]
add missing warnx() %s parameter

10 years agorumprun: Use blkid rather than file to detect fstype
Martin Lucina [Sun, 23 Nov 2014 21:02:12 +0000 (22:02 +0100)]
rumprun: Use blkid rather than file to detect fstype

The output of file differs between systems (and Linux distribution
versions!). Use blkid for now to detect block device filesystem type,
will need to be revisited or marked as a dependency on e2fsprogs for
*BSD.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agorumprun: Use absolute path for disk image
Martin Lucina [Sun, 23 Nov 2014 21:00:24 +0000 (22:00 +0100)]
rumprun: Use absolute path for disk image

Avoids potential Xen stack confusion (documentation is unclear on
relative paths), plus shows full path in xenstore-ls.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agorumprun: Make diskspec backward compatible with Xen 4.1
Martin Lucina [Sun, 23 Nov 2014 20:58:19 +0000 (21:58 +0100)]
rumprun: Make diskspec backward compatible with Xen 4.1

Xen 4.1 is used in Debian stable; the diskspec used by xl is not clearly
documented and is just a passthrough to the xm disk stanza. We need mode
'w' rather than 'rw' which is also understood by (at least) Xen 4.4.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoUse readlink -f instead of realpath
Martin Lucina [Sun, 23 Nov 2014 12:47:48 +0000 (13:47 +0100)]
Use readlink -f instead of realpath

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoUse correct printf format for uint64_t
Martin Lucina [Fri, 21 Nov 2014 18:07:53 +0000 (19:07 +0100)]
Use correct printf format for uint64_t

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoSize RUMP_MEMLIMIT dynamically based on domU memory
Martin Lucina [Fri, 21 Nov 2014 18:00:07 +0000 (19:00 +0100)]
Size RUMP_MEMLIMIT dynamically based on domU memory

RUMP_MEMLIMIT was previously hardcoded to 8MB. We size it dynamically
based on domU memory allocation, with the rump kernel getting 50%.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoRemove talk of editing domain_config (no longer required)
Martin Lucina [Thu, 20 Nov 2014 11:09:33 +0000 (12:09 +0100)]
Remove talk of editing domain_config (no longer required)

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoAdd more simple demos in the tests/ directory
Martin Lucina [Thu, 20 Nov 2014 11:06:58 +0000 (12:06 +0100)]
Add more simple demos in the tests/ directory

Demos are built using app-tools and their own Makefile.

Signed-off-by: Martin Lucina <martin@lucina.net>
10 years agoMerge pull request #12 from mato/wip-rumpconfig
Martin Lucina [Thu, 20 Nov 2014 10:28:51 +0000 (11:28 +0100)]
Merge pull request #12 from mato/wip-rumpconfig

Major points from rumpkernel-users addressed, merging.

10 years agoCorrect argument parsing in rumprun
Martin Lucina [Thu, 20 Nov 2014 10:02:49 +0000 (11:02 +0100)]
Correct argument parsing in rumprun

Signed-off-by: Martin Lucina <martin@lucina.net>