rump kernels: Fix build
cover rump kernels: Fix build
This series fixes the rump kernel build, and the test plumbing. The tests still fail because they xenbus driver in rump kernel upstream has rotted. I'm working on that...
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 1/26 Executive: Do update flights_harness_touched for play flights
Have \bplay\b simply bypass the blessing check, but not the harness revision update which follows.
--- Osstest/JobDB/Executive.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Osstest/JobDB/Executive.pm +5 -3
@@ -108,9 +108,11 @@ END die "modifying flight $fl but flight not found\n" unless defined $bless; - return if $bless =~ m/\bplay\b/; - die "modifying flight $fl blessing $bless expected @$flok\n" - unless grep { $_ eq $bless } @$flok; + + unless ($bless =~ m/\bplay\b/) { + die "modifying flight $fl blessing $bless expected @$flok\n" + unless grep { $_ eq $bless } @$flok; + } my $rev = get_harness_rev();
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 2/26 Executive: Allow out-of-order manipulations of flights intended play
In reply to Ian JacksonFlights being operated on by a developer hacking about with the code, which were created with intended blessing play', are usually blessed running' or `broken' or something. So the safety catch bypass needs to look at the intended blessing too.
--- Osstest/JobDB/Executive.pm | 6 +++--- README.dev | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-)
Osstest/JobDB/Executive.pm +3 -3
@@ -102,14 +102,14 @@ sub dbfl_check ($$) { #method } die unless ref($flok) eq 'ARRAY'; - my ($bless) = $dbh_tests->selectrow_array(<<END, {}, $fl); - SELECT blessing FROM flights WHERE flight=? + my ($bless, $intended) = $dbh_tests->selectrow_array(<<END, {}, $fl); + SELECT blessing, intended FROM flights WHERE flight=? END die "modifying flight $fl but flight not found\n" unless defined $bless; - unless ($bless =~ m/\bplay\b/) { + unless ($bless =~ m/\bplay\b/ || $intended =~ m/\bplay\b/) { die "modifying flight $fl blessing $bless expected @$flok\n" unless grep { $_ eq $bless } @$flok; }
README.dev +2 -1
@@ -341,4 +341,5 @@ they crashed, are simply left with whatever blessing they had at the time. There is a special exception to the tools' flight status checks: any -flight whose blessing contains `play' can be operated on out of order. +flight whose blessing (or intended blessing) contains `play' can be +operated on out of order.
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 3/26 TestSupport: Produce stack trace for undef tfileex
In reply to Ian JacksonUse `confess' to see where an undef $rfile came from. I think there will probably be lots more of this pattern.
--- Osstest/TestSupport.pm | 3 +++ 1 file changed, 3 insertions(+)
Osstest/TestSupport.pm +3 -0
@@ -31,6 +31,7 @@ use Osstest::Logtailer; use File::Copy; use File::Basename; use IO::Handle; +use Carp; BEGIN { use Exporter ();
@@ -523,6 +524,8 @@ sub teditfileex { my $code= pop @_; my ($ho,$rfile,$lleaf,$rdest) = @_; + confess unless defined $rfile; + if (!defined $rdest) { $rdest= $rfile; }
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 4/26 rumprun: Rename all `rumpuserxen' to `rumprun'
In reply to Ian JacksonThe names have changed upstream.
Since upstream is no longer compatible and these tests have been failing since then, we are going to treat this as an entirely new test series.
In this patch we rename everything mechanically. More interesting changes will come later.
git-mv -f ts-rumpuserxen-build ts-rumprun-build
git-mv -f ts-rumpuserxen-demo-setup ts-rumprun-demo-setup git-mv -f ts-rumpuserxen-demo-xenstorels ts-rumprun-demo-xenstorels
git-ls-files | xargs perl -i~ -pe 's/rumpuserxen/rumprun/g' git-ls-files | xargs perl -i~ -pe 's/(_|\b)rumpuserxen(_|\b)/$1rumprun$2/g'
--- allow.all | 4 +- allow.rumpuserxen | 2 +- ap-common | 16 +++--- ap-fetch-version | 6 +- ap-fetch-version-old | 8 +-- ap-print-url | 4 +- ap-push | 8 +-- cr-daily-branch | 12 ++-- cri-common | 2 +- crontab | 4 +- make-flight | 14 ++--- mfi-common | 16 +++--- sg-run-job | 18 +++--- ts-rumprun-build | 126 +++++++++++++++++++++++++++++++++++++++++ ts-rumprun-demo-setup | 92 ++++++++++++++++++++++++++++++ ts-rumprun-demo-xenstorels | 124 ++++++++++++++++++++++++++++++++++++++++ ts-rumpuserxen-build | 126 ----------------------------------------- ts-rumpuserxen-demo-setup | 92 ------------------------------ ts-rumpuserxen-demo-xenstorels | 124 ---------------------------------------- 19 files changed, 399 insertions(+), 399 deletions(-) create mode 100755 ts-rumprun-build create mode 100755 ts-rumprun-demo-setup create mode 100755 ts-rumprun-demo-xenstorels delete mode 100755 ts-rumpuserxen-build delete mode 100755 ts-rumpuserxen-demo-setup delete mode 100755 ts-rumpuserxen-demo-xenstorels
allow.all +2 -2
@@ -2,6 +2,6 @@ test-@@-rtds@@ build-@@ logs-capture@@ test-@@-pcipt@@ test-@@-qemuu-@@ guest-localmigrate -test-@@-rumpuserxen@@ rumpuserxen-demo-xenstorels/xenstorels +test-@@-rumprun@@ rumprun-demo-xenstorels/xenstorels test-@@-win7-@@ guest-stop -test-@@-rumpuserxen-@@ rumpuserxen-demo-xenstorels/xenstorels.repeat +test-@@-rumprun-@@ rumprun-demo-xenstorels/xenstorels.repeat
allow.rumpuserxen +1 -1
@@ -1 +1 @@ -!test-@@-rumpuserxen-@@ rumpuserxen-demo-xenstorels/xenstorels.repeat +!test-@@-rumprun-@@ rumprun-demo-xenstorels/xenstorels.repeat
ap-common +8 -8
@@ -37,15 +37,15 @@ : ${PUSH_TREE_LIBVIRT:=$XENBITS:/home/xen/git/libvirt.git} : ${BASE_TREE_LIBVIRT:=git://xenbits.xen.org/libvirt.git} -: ${TREE_RUMPUSERXEN:=https://github.com/rumpkernel/rumprun-xen} -: ${TREEVCS_RUMPUSERXEN:=git} -: ${BASE_TREE_RUMPUSERXEN:=git://xenbits.xen.org/rumpuser-xen.git} -: ${PUSH_TREE_RUMPUSERXEN:=$XENBITS:/home/xen/git/rumpuser-xen.git} +: ${TREE_RUMPRUN:=https://github.com/rumpkernel/rumprun-xen} +: ${TREEVCS_RUMPRUN:=git} +: ${BASE_TREE_RUMPRUN:=git://xenbits.xen.org/rumpuser-xen.git} +: ${PUSH_TREE_RUMPRUN:=$XENBITS:/home/xen/git/rumpuser-xen.git} -: ${TREE_RUMPUSERXEN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)} -: ${TREEVCS_RUMPUSERXEN_RUMPSRC:=git} +: ${TREE_RUMPRUN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)} +: ${TREEVCS_RUMPRUN_RUMPSRC:=git} # rumpsrc-related runvars needed only for old rumpuser-xen -# (ie ones which need $bodges=1 in ts-rumpuserxen-build) +# (ie ones which need $bodges=1 in ts-rumprun-build) : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git} : ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git}
@@ -79,7 +79,7 @@ fi : ${LOCALREV_XEN:=daily-cron.$branch} : ${LOCALREV_LINUX:=daily-cron.$branch} : ${LOCALREV_LIBVIRT:=daily-cron.$branch} -: ${LOCALREV_RUMPUSERXEN:=daily-cron.$branch} +: ${LOCALREV_RUMPRUN:=daily-cron.$branch} : ${LOCALREV_SEABIOS:=daily-cron.$branch} : ${LOCALREV_OVMF:=daily-cron.$branch}
ap-fetch-version +3 -3
@@ -90,9 +90,9 @@ libvirt) repo_tree_rev_fetch_git libvirt \ $TREE_LIBVIRT master $LOCALREV_LIBVIRT ;; -rumpuserxen) - repo_tree_rev_fetch_git rumpuserxen \ - $TREE_RUMPUSERXEN master $LOCALREV_RUMPUSERXEN +rumprun) + repo_tree_rev_fetch_git rumprun \ + $TREE_RUMPRUN master $LOCALREV_RUMPRUN ;; seabios) repo_tree_rev_fetch_git seabios \
ap-fetch-version-old +4 -4
@@ -30,7 +30,7 @@ check_ap_fetch_placeholders : ${BASE_TAG_LINUX2639:=tested/2.6.39.x} : ${BASE_LOCALREV_LINUX:=daily-cron.$branch.old} : ${BASE_LOCALREV_LIBVIRT:=daily-cron.$branch.old} -: ${BASE_LOCALREV_RUMPUSERXEN:=daily-cron.$branch.old} +: ${BASE_LOCALREV_RUMPRUN:=daily-cron.$branch.old} : ${BASE_LOCALREV_SEABIOS:=daily-cron.$branch.old} : ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old} : ${BASE_TAG_LIBVIRT:=xen-tested-master}
@@ -97,9 +97,9 @@ libvirt) repo_tree_rev_fetch_git libvirt \ $BASE_TREE_LIBVIRT $BASE_TAG_LIBVIRT $BASE_LOCALREV_LIBVIRT ;; -rumpuserxen) - repo_tree_rev_fetch_git rumpuserxen \ - $BASE_TREE_RUMPUSERXEN xen-tested-master $BASE_LOCALREV_RUMPUSERXEN +rumprun) + repo_tree_rev_fetch_git rumprun \ + $BASE_TREE_RUMPRUN xen-tested-master $BASE_LOCALREV_RUMPRUN ;; seabios) repo_tree_rev_fetch_git seabios \
ap-print-url +2 -2
@@ -52,8 +52,8 @@ linuxfirmware) libvirt) echo $TREE_LIBVIRT ;; -rumpuserxen) - echo $TREE_RUMPUSERXEN +rumprun) + echo $TREE_RUMPRUN ;; seabios) echo $TREE_SEABIOS_UPSTREAM
ap-push +4 -4
@@ -37,7 +37,7 @@ TREE_LINUX=$PUSH_TREE_LINUX TREE_QEMU_UPSTREAM=$PUSH_TREE_QEMU_UPSTREAM TREE_XEN=$PUSH_TREE_XEN TREE_LIBVIRT=$PUSH_TREE_LIBVIRT -TREE_RUMPUSERXEN=$PUSH_TREE_RUMPUSERXEN +TREE_RUMPRUN=$PUSH_TREE_RUMPRUN TREE_SEABIOS=$PUSH_TREE_SEABIOS TREE_OVMF=$PUSH_TREE_OVMF
@@ -112,9 +112,9 @@ libvirt) cd $repos/libvirt git push $TREE_LIBVIRT $revision:refs/heads/xen-tested-master ;; -rumpuserxen) - cd $repos/rumpuserxen - git push $TREE_RUMPUSERXEN $revision:refs/heads/xen-tested-master +rumprun) + cd $repos/rumprun + git push $TREE_RUMPRUN $revision:refs/heads/xen-tested-master ;; seabios) cd $repos/seabios
cr-daily-branch +6 -6
@@ -195,9 +195,9 @@ if [ "x$REVISION_LIBVIRT" = x ]; then determine_version REVISION_LIBVIRT libvirt LIBVIRT export REVISION_LIBVIRT fi -if [ "x$REVISION_RUMPUSERXEN" = x ]; then - determine_version REVISION_RUMPUSERXEN rumpuserxen RUMPUSERXEN - export REVISION_RUMPUSERXEN +if [ "x$REVISION_RUMPRUN" = x ]; then + determine_version REVISION_RUMPRUN rumprun RUMPRUN + export REVISION_RUMPRUN fi if [ "x$REVISION_LINUXFIRMWARE" = x ]; then determine_version REVISION_LINUXFIRMWARE linuxfirmware LINUXFIRMWARE
@@ -238,9 +238,9 @@ libvirt) realtree=libvirt NEW_REVISION=$REVISION_LIBVIRT ;; -rumpuserxen) - realtree=rumpuserxen - NEW_REVISION=$REVISION_RUMPUSERXEN +rumprun) + realtree=rumprun + NEW_REVISION=$REVISION_RUMPRUN export REVISION_LINUX_OLD=disable export REVISION_LIBVIRT=disable ;;
cri-common +1 -1
@@ -76,7 +76,7 @@ select_xenbranch () { linux-*) tree=linux; xenbranch=xen-unstable ;; linuxfirmware) tree=linuxfirmware; xenbranch=xen-unstable ;; libvirt) tree=libvirt; xenbranch=xen-unstable ;; - rumpuserxen) tree=rumpuserxen; xenbranch=xen-unstable ;; + rumprun) tree=rumprun; xenbranch=xen-unstable ;; seabios) tree=seabios; xenbranch=xen-unstable ;; ovmf) tree=ovmf; xenbranch=xen-unstable ;; distros-*) tree=none; xenbranch=xen-unstable ;;
crontab +2 -2
@@ -8,8 +8,8 @@ [email protected],[email protected] 0 * * * * cd testing.git && BRANCHES=xen-unstable-smoke ./cr-for-branches branches -q "./cr-daily-branch --real" 4-59/30 * * * * cd testing.git && ./cr-for-branches branches -q "./cr-daily-branch --real" 18 9 * * 3,7 cd testing.git && BRANCHES=xen-unstable-coverity ./cr-for-branches branches -w "./cr-daily-branch --real" -18 4 * * * cd testing.git && BRANCHES='linux-3.0 libvirt rumpuserxen' ./cr-for-branches branches -w "./cr-daily-branch --real" -6-59/15 * * * * cd testing.git && EXTRA_BRANCHES='linux-3.0 rumpuserxen libvirt' ./cr-for-branches bisects -w "./cr-try-bisect --real" +18 4 * * * cd testing.git && BRANCHES='linux-3.0 libvirt rumprun' ./cr-for-branches branches -w "./cr-daily-branch --real" +6-59/15 * * * * cd testing.git && EXTRA_BRANCHES='linux-3.0 rumprun libvirt' ./cr-for-branches bisects -w "./cr-try-bisect --real" #8-59/5 * * * * cd bisects/adhoc.git && with-lock-ex -q data-tree-lock bash -c "./cr-try-bisect-adhoc; exit $?" 22 8 * * * cd testing.git && BRANCHES=maintjobs ./cr-for-branches . -w ./cr-all-branch-statuses '' 3 4 * * * savelog -c28 testing.git/tmp/cr-for-branches.log >/dev/null
make-flight +7 -7
@@ -107,9 +107,9 @@ job_create_test_filter_callback () { libvirt) if [ x$toolstack != xlibvirt ] ; then return 1; fi ;; - rumpuserxen) + rumprun) case "$job" in - *-rumpuserxen-*) + *-rumprun-*) ;; *) : "suppressed $job"
@@ -169,7 +169,7 @@ arch_branch_filter_callback () { qemu-upstream-4.2-testing) return 1;; qemu-upstream-4.3-testing) return 1;; qemu-upstream-4.4-testing) return 1;; - rumpuserxen) return 1;; + rumprun) return 1;; seabios) return 1;; ovmf) return 1;; esac
@@ -197,11 +197,11 @@ do_rumpkernel_tests () { branch_wants_rumpkernel_tests || return 0 rumparch=$dom0arch - job_create_test test-$xenarch$kern-$dom0arch-rumpuserxen-$rumparch \ - test-rumpuserxen xl \ + job_create_test test-$xenarch$kern-$dom0arch-rumprun-$rumparch \ + test-rumprun xl \ $xenarch $dom0arch \ - guests_rumpuserxenbuildjob=build-$rumparch-rumpuserxen \ - rump_builtimage=rumpuserxen:/usr/local/lib/xen/rump-kernel/rump-kernel \ + guests_rumprunbuildjob=build-$rumparch-rumprun \ + rump_builtimage=rumprun:/usr/local/lib/xen/rump-kernel/rump-kernel \ rump_cmdline=3 \ xenstorels_builtimage=:/usr/local/bin/xenstore \ xenstorels_cmdline='ls -fp device' \
mfi-common +8 -8
@@ -269,24 +269,24 @@ create_build_jobs () { case $arch in i386|amd64) - job_create_build build-$arch-rumpuserxen build-rumpuserxen \ + job_create_build build-$arch-rumprun build-rumprun \ arch=$arch \ tree_xen=$TREE_XEN \ - $RUNVARS $BUILD_RUNVARS $BUILD_RUMPUSERXEN_RUNVARS $arch_runvars \ + $RUNVARS $BUILD_RUNVARS $BUILD_RUMPRUN_RUNVARS $arch_runvars \ $hostos_runvars \ host_hostflags=$build_hostflags \ buildjob=${bfi}build-$arch \ - tree_rumpuserxen=$TREE_RUMPUSERXEN \ - ${TREEVCS_RUMPUSERXEN:+treevcs_rumpuserxen=}${TREEVCS_RUMPUSERXEN} \ - revision_rumpuserxen=$REVISION_RUMPUSERXEN \ + tree_rumprun=$TREE_RUMPRUN \ + ${TREEVCS_RUMPRUN:+treevcs_rumprun=}${TREEVCS_RUMPRUN} \ + revision_rumprun=$REVISION_RUMPRUN \ tree_xen=$TREE_XEN \ tree_qemuu=$TREE_QEMU_UPSTREAM \ revision_xen=$REVISION_XEN \ revision_qemuu=$REVISION_QEMU_UPSTREAM \ - tree_rumpuserxen_rumpsrc=$TREE_RUMPUSERXEN_RUMPSRC \ - ${TREEVCS_RUMPUSERXEN_RUMPSRC:+treevcs_rumpuserxen_rumpsrc=}${TREEVCS_RUMPUSERXEN_RUMPSRC} + tree_rumprun_rumpsrc=$TREE_RUMPRUN_RUMPSRC \ + ${TREEVCS_RUMPRUN_RUMPSRC:+treevcs_rumprun_rumpsrc=}${TREEVCS_RUMPRUN_RUMPSRC} # rumpsrc-related runvars needed only for old rumpuser-xen - # (ie ones which need $bodges=1 in ts-rumpuserxen-build) + # (ie ones which need $bodges=1 in ts-rumprun-build) ;; esac
sg-run-job +9 -9
@@ -441,18 +441,18 @@ proc test-guest-nomigr {g} { run-ts . = ts-guest-destroy + host $g } -proc need-hosts/test-rumpuserxen {} { return host } -proc run-job/test-rumpuserxen {} { +proc need-hosts/test-rumprun {} { return host } +proc run-job/test-rumprun {} { set g rump - run-ts . = ts-rumpuserxen-demo-setup + host $g + run-ts . = ts-rumprun-demo-setup + host $g run-ts . = ts-guest-start + host $g run-ts . = ts-guest-destroy + host $g set g xenstorels - run-ts . = ts-rumpuserxen-demo-setup + host + $g - run-ts . = ts-rumpuserxen-demo-xenstorels + host + $g + run-ts . = ts-rumprun-demo-setup + host + $g + run-ts . = ts-rumprun-demo-xenstorels + host + $g run-ts . = ts-guest-destroy-hard + host + $g repeat-ts 150 =.repeat \ - ts-rumpuserxen-demo-xenstorels + host + $g + \; \ + ts-rumprun-demo-xenstorels + host + $g + \; \ ts-guest-destroy-hard host $g + }
@@ -465,7 +465,7 @@ if {[file exists sg-run-job-adhoc]} { proc need-hosts/build {} { return BUILD } proc need-hosts/build-kern {} { return BUILD } proc need-hosts/build-libvirt {} { return BUILD } -proc need-hosts/build-rumpuserxen {} { return BUILD } +proc need-hosts/build-rumprun {} { return BUILD } proc run-job/build {} { run-ts . = ts-xen-build
@@ -479,8 +479,8 @@ proc run-job/build-libvirt {} { run-ts . = ts-libvirt-build } -proc run-job/build-rumpuserxen {} { - run-ts . = ts-rumpuserxen-build +proc run-job/build-rumprun {} { + run-ts . = ts-rumprun-build run-ts . = ts-xen-build + host tools }
ts-rumprun-build new file +126 -0
126 lines not on this page · raw message
ts-rumprun-demo-setup new file +92 -0
92 lines not on this page · raw message
ts-rumprun-demo-xenstorels new file +124 -0
124 lines not on this page · raw message
ts-rumpuserxen-build deleted +0 -126
126 lines not on this page · raw message
ts-rumpuserxen-demo-setup deleted +0 -92
92 lines not on this page · raw message
ts-rumpuserxen-demo-xenstorels deleted +0 -124
124 lines not on this page · raw message
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 5/26 rumprun: Fetch source from new upstream
In reply to Ian JacksonAlso, update for the current set of submodules.
--- ap-common | 2 +- ts-rumprun-build | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-)
ap-common +1 -1
@@ -37,7 +37,7 @@ : ${PUSH_TREE_LIBVIRT:=$XENBITS:/home/xen/git/libvirt.git} : ${BASE_TREE_LIBVIRT:=git://xenbits.xen.org/libvirt.git} -: ${TREE_RUMPRUN:=https://github.com/rumpkernel/rumprun-xen} +: ${TREE_RUMPRUN:=http://repo.rumpkernel.org/rumprun} : ${TREEVCS_RUMPRUN:=git} : ${BASE_TREE_RUMPRUN:=git://xenbits.xen.org/rumpuser-xen.git} : ${PUSH_TREE_RUMPRUN:=$XENBITS:/home/xen/git/rumpuser-xen.git}
ts-rumprun-build +2 -3
@@ -25,9 +25,8 @@ tsreadconfig(); selectbuildhost(\@ARGV); builddirsprops(); -our %submodmap = qw(nblibs nblibs - buildrump.sh buildrumpsh - rumpsrc netbsdsrc); +our %submodmap = qw(buildrump.sh buildrumpsh + src-netbsd netbsdsrc); our ($rux, $bodges);
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 6/26 rumprun: Move xenbits tree to osstest subdir
In reply to Ian JacksonMove our tested tree to /home/xen/git/osstest, where these kind of things live nowadays.
--- ap-common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ap-common +2 -2
@@ -39,8 +39,8 @@ : ${TREE_RUMPRUN:=http://repo.rumpkernel.org/rumprun} : ${TREEVCS_RUMPRUN:=git} -: ${BASE_TREE_RUMPRUN:=git://xenbits.xen.org/rumpuser-xen.git} -: ${PUSH_TREE_RUMPRUN:=$XENBITS:/home/xen/git/rumpuser-xen.git} +: ${BASE_TREE_RUMPRUN:=git://xenbits.xen.org/osstest/rumprun.git} +: ${PUSH_TREE_RUMPRUN:=$XENBITS:/home/xen/git/osstest/rumprun.git} : ${TREE_RUMPRUN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)} : ${TREEVCS_RUMPRUN_RUMPSRC:=git}
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 7/26 rumprun: ts-rumprun-build: Remove $bodges
In reply to Ian JacksonThis is very obsolete.
--- ap-common | 5 ----- ts-rumprun-build | 46 +--------------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-)
ap-common +0 -5
@@ -42,11 +42,6 @@ : ${BASE_TREE_RUMPRUN:=git://xenbits.xen.org/osstest/rumprun.git} : ${PUSH_TREE_RUMPRUN:=$XENBITS:/home/xen/git/osstest/rumprun.git} -: ${TREE_RUMPRUN_RUMPSRC:=$(besteffort_repo https://github.com/rumpkernel/rumpkernel-netbsd-src)} -: ${TREEVCS_RUMPRUN_RUMPSRC:=git} -# rumpsrc-related runvars needed only for old rumpuser-xen -# (ie ones which need $bodges=1 in ts-rumprun-build) - : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git} : ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git} : ${BASE_TREE_SEABIOS:=git://xenbits.xen.org/osstest/seabios.git}
ts-rumprun-build +1 -45
61 lines not on this page · raw message
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 8/26 rumprun: ts-rumprun-build: Build new rumprun properly, ship the output
In reply to Ian JacksonThe command is build-rr.sh' nowadays. The output longer includes test domain image and configuration. The output is in rumprun'.
--- ts-rumprun-build | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
ts-rumprun-build +2 -9
@@ -46,7 +46,7 @@ sub massage() { sub build() { target_cmd_build($ho, 7200, $rux, <<END); export XEN_HEADERS=$xendist/usr/local/include/xen - (./buildxen.sh && touch ../build-ok-stamp) |tee ../log + (./build-rr.sh xen && touch ../build-ok-stamp) |tee ../log test -f ../build-ok-stamp #/ echo ok. END
@@ -64,13 +64,6 @@ sub recordtools() { } sub install() { - my $destdir="dist/usr/local/lib/xen/rump-kernel"; - target_cmd_build($ho, 300, $builddir, <<END); - mkdir -p $destdir - cp rumprun/rump-kernel* $destdir - cp -r rumprun/img $destdir/ - cp rumprun/domain_config $destdir -END } checkout();
@@ -78,4 +71,4 @@ massage(); build(); recordtools(); install(); -built_stash($ho, $builddir, 'dist', 'rumprundist'); +built_stash($ho, $builddir, 'rumprun', 'rumprundist');
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 9/26 rumprun: ts-rumprun-build: Adjust command prefixes for new rumprun
In reply to Ian JacksonNowadays the expected use pattern is
CC=<...rumprun...>-gcc ./configure
etc.
--- ts-rumprun-build | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
ts-rumprun-build +6 -8
@@ -53,14 +53,12 @@ END } sub recordtools() { - foreach my $stem (qw(rumprun-xen rumpxen-app)) { - my $apptool = "$rux/app-tools/$stem"; - next unless target_file_exists($ho, "$apptool-configure"); - store_runvar('cmdprefix_configure', "$apptool-configure"); - store_runvar('cmdprefix_make', "$apptool-make"); - return; - } - die "app-tools not found ($rux)"; + my $gcc = target_cmd_output($ho, "echo $rux/bin/*-gcc"); + chomp $gcc; + die "$gcc ?" if $gcc =~ m/\S/; + my $prefix = "CC=$gcc "; + store_runvar('cmdprefix_configure', $prefix); + store_runvar('cmdprefix_make', $prefix); } sub install() {
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 10/26 ts-xen-build: Separate out kconfig from main build step
In reply to Ian Jackson--- ts-xen-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
ts-xen-build +5 -1
@@ -125,10 +125,14 @@ END fi END #/; - buildcmd_stamped_logged(9000, 'build', '',<<END,''); + + buildcmd_stamped_logged(600, 'kconfig', '',<<END,''); if test -f xen/Kconfig; then $make_prefix make -C xen olddefconfig fi +END + + buildcmd_stamped_logged(9000, 'build', '',<<END,''); $make_prefix make $makeflags @ARGV END
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 11/26 ts-xen-build: Support $r{cmdsuffix_configure}
In reply to Ian JacksonNothing sets this yet, so no functional change.
--- ts-xen-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ts-xen-build +2 -1
@@ -109,6 +109,7 @@ sub build () { my $ovmf_opt= $r{enable_ovmf} =~ m/true/ ? "--enable-ovmf" : "--disable-ovmf"; my $configure_prefix = $r{cmdprefix_configure} // ''; + my $configure_suffix = $r{cmdsuffix_configure} // ''; my $make_prefix = $r{cmdprefix_make} // ''; buildcmd_stamped_logged(600, 'configure', <<END,<<END,<<END);
@@ -120,7 +121,7 @@ sub build () { ovmf=$ovmf_opt fi END - $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf + $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix END fi END
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 12/26 ts-xen-build: Support --no-kconfig
In reply to Ian JacksonNothing passes this yet, so no functional change.
--- ts-xen-build | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
ts-xen-build +14 -1
@@ -25,7 +25,20 @@ use Osstest::BuildSupport; tsreadconfig(); selectbuildhost(\@ARGV); + +our $dokconfig = 1; + +while (@ARGV && $ARGV[0] =~ m/^-/) { + $_ = shift @ARGV; + last if m/^--$/; + if (m/^--no-kconfig$/) { + $dokconfig = 0; + } else { + die "$_ ?"; + } +} # remaining arguments are passed as targets to "make" + builddirsprops(); my $enable_xsm = ($r{enable_xsm}//'false') =~ m/true/ ? 1 : 0;
@@ -127,7 +140,7 @@ END END #/; - buildcmd_stamped_logged(600, 'kconfig', '',<<END,''); + buildcmd_stamped_logged(600, 'kconfig', '',<<END,'') if $dokconfig; if test -f xen/Kconfig; then $make_prefix make -C xen olddefconfig fi
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 13/26 rumprun: ts-rumprun-build: Update for new rumprun bin location
In reply to Ian JacksonThe compiler wrappers are in a different location in the new rumprun build tree.
--- ts-rumprun-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ts-rumprun-build +1 -1
@@ -53,7 +53,7 @@ END } sub recordtools() { - my $gcc = target_cmd_output($ho, "echo $rux/bin/*-gcc"); + my $gcc = target_cmd_output($ho, "echo $rux/rumprun/bin/*-gcc"); chomp $gcc; die "$gcc ?" if $gcc =~ m/\S/; my $prefix = "CC=$gcc ";
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 14/26 rumprun: ts-rumprun-build: Update for newer Xen
In reply to Ian JacksonNewer Xen needs more work to make it cross compile for rump.
* Pass --host=TARGET to configure. This is needed so that configure knows that we are deliberately cross compiling. (Otherwise it tries to run target binaries on the host, and crashes when that fails.)
* Pass CROSS_COMPILE in the environment. This arranges for the Xen Makefiles to run the right compiler, ie $(CROSS_COMPILE)-gcc.
* Put the rump compiler directory on PATH, so that the Xen Makefiles can find it.
* Pass HOSTCC=gcc in the environment; otherwise it tries to use the default CC (which is $(CROSS_COMPILE)gcc), when building build-system-internal tools which are to be run on the host as part of the build.
The need for this could be avoided by setting XEN_TARGET_ARCH to the rump architecture, but then we would have to provide a Xen arch config file for that architecture, which would be meaningless since we are not actually building a hypervisor, and would have to contain various dummy information.
NB in this commit message I use Xen terminology for cross arch names:
Xen GCC/GNU Meaning Example for terminology terminology rump cross build
host build Native architecture of i586-linux-gnu
the environment in which we are running the build.
target host Foreign architecture on i486-rumprun-netbsdelf
which the objects etc. which we are now building will eventually be run.
n/a target Used only when building a "Canadian"
cross compiler: the 2nd foreign architecture for which the compiler which we are now building (on the build(gnu)' arch) will, when we run it, produce binaries (when it is run on the host(gnu)' arch).
--- ts-rumprun-build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
ts-rumprun-build +9 -2
@@ -55,10 +55,17 @@ END sub recordtools() { my $gcc = target_cmd_output($ho, "echo $rux/rumprun/bin/*-gcc"); chomp $gcc; - die "$gcc ?" if $gcc =~ m/\S/; - my $prefix = "CC=$gcc "; + die "$gcc ?" unless $gcc =~ m#^(\S+)/([^/ \t]+)-g?cc$#; + my $bindir = $1; + my $gnutriplet = $2; + my $prefix = "PATH=$bindir:\$PATH "; + $prefix .= "CROSS_COMPILE=$gnutriplet- HOSTCC=gcc "; store_runvar('cmdprefix_configure', $prefix); store_runvar('cmdprefix_make', $prefix); + store_runvar('cmdsuffix_configure', " --host=$gnutriplet"); + # "host" is daft GCC/GNU terminology for the target architecture of + # a cross-compile, ie in our case the rump environemnt architecture + # for which the rump compilers are going to generate code. } sub install() {
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 15/26 rumprun: Drop old rumpuserxen demo
In reply to Ian JacksonThe WOPR demo is gone from rumpkernel upstream.
Sadly this leaves us without a test that the rump environment's networking is functional.
--- sg-run-job | 4 ---- 1 file changed, 4 deletions(-)
sg-run-job +0 -4
@@ -443,10 +443,6 @@ proc test-guest-nomigr {g} { proc need-hosts/test-rumprun {} { return host } proc run-job/test-rumprun {} { - set g rump - run-ts . = ts-rumprun-demo-setup + host $g - run-ts . = ts-guest-start + host $g - run-ts . = ts-guest-destroy + host $g set g xenstorels run-ts . = ts-rumprun-demo-setup + host + $g run-ts . = ts-rumprun-demo-xenstorels + host + $g
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 16/26 rumprun: Do not run xen/Kconfig
In reply to Ian JacksonWe aren't going to cross-build a Xen hypervisor for the rump environment. So don't configure it.
--- sg-run-job | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sg-run-job +1 -1
@@ -477,7 +477,7 @@ proc run-job/build-libvirt {} { proc run-job/build-rumprun {} { run-ts . = ts-rumprun-build - run-ts . = ts-xen-build + host tools + run-ts . = ts-xen-build + host --no-kconfig tools } proc prepare-build-host {} {
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 17/26 rumprun: Break out findtools
In reply to Ian JacksonThis makes room for setting up ccache.
No functional change yet.
--- ts-rumprun-build | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
ts-rumprun-build +10 -3
@@ -52,12 +52,18 @@ sub build() { END } -sub recordtools() { +my $bindir; +my $gnutriplet; + +sub findtools() { my $gcc = target_cmd_output($ho, "echo $rux/rumprun/bin/*-gcc"); chomp $gcc; die "$gcc ?" unless $gcc =~ m#^(\S+)/([^/ \t]+)-g?cc$#; - my $bindir = $1; - my $gnutriplet = $2; + $bindir = $1; + $gnutriplet = $2; +} + +sub recordtools() { my $prefix = "PATH=$bindir:\$PATH "; $prefix .= "CROSS_COMPILE=$gnutriplet- HOSTCC=gcc "; store_runvar('cmdprefix_configure', $prefix);
@@ -74,6 +80,7 @@ sub install() { checkout(); massage(); build(); +findtools(); recordtools(); install(); built_stash($ho, $builddir, 'rumprun', 'rumprundist');
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 18/26 rumprun: ts-rumprun-build: set up ccache
In reply to Ian Jackson--- ts-rumprun-build | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
ts-rumprun-build +14 -1
@@ -54,6 +54,7 @@ END my $bindir; my $gnutriplet; +my $ccachedir; sub findtools() { my $gcc = target_cmd_output($ho, "echo $rux/rumprun/bin/*-gcc");
@@ -63,8 +64,19 @@ sub findtools() { $gnutriplet = $2; } +sub setupccache() { + $ccachedir = "$bindir.ccache"; + target_cmd_build($ho, 600, $rux, <<END); + mkdir $ccachedir + ccache=\$(type -p ccache) + for f in $bindir/$gnutriplet-*; do + ln -s \$ccache $ccachedir/\${f##*/} + done +END +} + sub recordtools() { - my $prefix = "PATH=$bindir:\$PATH "; + my $prefix = "PATH=$ccachedir:$bindir:\$PATH "; $prefix .= "CROSS_COMPILE=$gnutriplet- HOSTCC=gcc "; store_runvar('cmdprefix_configure', $prefix); store_runvar('cmdprefix_make', $prefix);
@@ -81,6 +93,7 @@ checkout(); massage(); build(); findtools(); +setupccache(); recordtools(); install(); built_stash($ho, $builddir, 'rumprun', 'rumprundist');
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 19/26 Xen built versions: Move list of subtrees to BuildSupport
In reply to Ian JacksonTurn the adhoc list of tree names and subdirectories in collect_xen_built_versions into a hash, which we iterate over.
Doing this in a data-driven way allows us to provide this information to callers of collect_xen_built_versions, which is going to be helpful in a moment.
--- Osstest/BuildSupport.pm | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-)
Osstest/BuildSupport.pm +15 -9
@@ -42,7 +42,7 @@ BEGIN { xendist $xendist - collect_xen_built_versions + collect_xen_built_versions %xensubtrees submodulefixup submodule_have submodule_find
@@ -85,15 +85,21 @@ sub xendist () { ($ho, 'xendist', '', $r{"buildjob"}); } +our %xensubtrees = qw( + qemu tools/ioemu-dir + qemu tools/qemu-xen-traditional-dir + qemuu tools/qemu-xen-dir + seabios tools/firmware/seabios-dir + ovmf tools/firmware/ovmf-dir + minios extras/mini-os + ); + sub collect_xen_built_versions () { - my $tools="$builddir/xen/tools"; - my $extras="$builddir/xen/extras"; - store_revision($ho, 'qemu', "$tools/ioemu-dir", 1); - store_revision($ho, 'qemu', "$tools/qemu-xen-traditional-dir", 1); - store_revision($ho, 'qemuu', "$tools/qemu-xen-dir", 1); - store_revision($ho, 'seabios', "$tools/firmware/seabios-dir", 1); - store_revision($ho, 'ovmf', "$tools/firmware/ovmf-dir", 1); - store_revision($ho, 'minios', "$extras/mini-os", 1); + my $xendir = "$builddir/xen"; + foreach my $subtree (sort keys %xensubtrees) { + my $subdir = $xendir.'/'.$xensubtrees{$subtree}; + store_revision($ho, $subtree, "$subdir", 1); + } } #----- submodules -----
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 20/26 Xen built versions: ts-xen-build: check versions of Xen subtrees, only
In reply to Ian Jacksonts-xen-build has a check that the actually-built versions of the various subtrees are right. This allows it to spot if the machinery for specifying the subtree revision hasn't worked.
However, this machinery is troublesome: it assumes that the value specified in the revision_TREE runvar is a commit id, just like the value specified in built_revision_TREE. This is, currently, true in flights created by cr-daily-branch and cs-try-bisect.
But it is not necessarily true for flights created other ways. In principle it would be possible to look into each checked out subtree, and use git-rev-parse (and its equivalent for nother VCSs) to check whether the specified revision is right (by comparing it to origin/<revision_TREE>, not <revision_TREE>, I guess). This is quite fiddly.
The reason this is causing trouble now is that some of the ad-hoc rump kernel flights I'm currently making contain non-git-revison-id values for the revision_TREE for parts of the rumprun build.
So for now, limiting this check to TREEs which are actually Xen subtrees will fix the problem for me (and this will be necessary for the fuller fix, which I describe above). So do that.
Specifically:
* Add a new WHERE clause to the query statement, so that it selects only the row for one specific tree
* Run the query once for each tree in %xensubtrees
This leaves the query overly-complicated, but this doesn't matter, because if and when we make a fuller fix we'll throw this entire query away. So it is easier to put off rewriting it in the hope that this will never been needed.
--- ts-xen-build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
ts-xen-build +5 -2
@@ -217,10 +217,13 @@ sub checkversions () { WHERE reqd.flight=? and reqd.job=? AND built.flight=? and built.job=? AND built.name = 'built_' || reqd.name + AND reqd.name = ? END - $chk->execute($flight,$job,$flight,$job); my $mismatches= 0; - while (my $row= $chk->fetchrow_arrayref()) { + foreach my $subtree (sort keys %xensubtrees) { + $chk->execute($flight,$job,$flight,$job,$subtree); + my $row= $chk->fetchrow_arrayref(); + next unless $row; my ($tree, $reqd, $built) = @$row; next unless defined $reqd && defined $built; $reqd =~ s/^.*://;
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 21/26 rumprun: Do not stash whole build tree
In reply to Ian JacksonBuild steps all need the whole build tree in the same location, so have to be part of this job.
Test jobs need only rumprun.
--- ts-rumprun-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ts-rumprun-build +1 -1
@@ -96,4 +96,4 @@ findtools(); setupccache(); recordtools(); install(); -built_stash($ho, $builddir, 'rumprun', 'rumprundist'); +built_stash($ho, $builddir, 'rumprun/rumprun/bin', 'rumprundist');
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 22/26 TestSupport: guest_prepare_disk: cope with no disk
In reply to Ian JacksonIf the guest has no runvars specifying any kind of disk, do not attempt to mess about with unmounting it etc.
--- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/TestSupport.pm +1 -1
@@ -1580,7 +1580,7 @@ sub guest_prepare_disk ($) { guest_umount_lv($gho->{Host}, $gho); - return if $gho->{Diskfmt} eq "none"; + return if ($gho->{Diskfmt} // 'none') eq "none"; target_cmd_root($gho->{Host}, <<END); mkdir -p $gho->{Diskmnt}
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 23/26 rumprun: `rumpbake' our executables and run them with `rumprun'
In reply to Ian Jackson(Well, our one executable: xenstore-ls)
Modern rumprun requires the output of the linker to be `baked' (second link phase, where the complete unikernel is assembled).
This has to be done as part of the build, because it needs all the rumpkernel libraries. It generates a single image file - there is no longer any disk image or config file produced by the rump ecosystem.
The baked file needs to be provided in a dist. We have ts-rumprun-bake take command line argument specifying which things to bake. It reads the runvars for the source executables and creates a single dist output containing the images. There are now executables' and images'.
Furthermore modern rumprun requires the image to be run with `rumprun'. One underlying reason is that it wants to pass the command line and some other config parameters to the guest via xenstore, in /local/domain/GUEST/rumprun/cfg. To do this outside xl requires the domain to be created paused. Another is to abstract away details of the actual execution environment (compared to other unikernel execution models).
rumprun has a mode (-D -T) in which it would be possible to fish the configuration and the desired json object (for the cfg) out of the tempfile it creates. It might also be possible for osstest to construct these out of whole cloth.
However, this would be undesirable because it would break if rumprun changed (in particular, if the interface to the domain creation changed).
And because of the cfg wrinkle it still wouldn't let us construct a domain config file which could be passed to toolstack($ho)->guest_create.
So instead we invent Osstest::Rumprun::rumprun_guest_create, which invokes rumprun. rumprun implicitly invokes xl.
The config editing which was previously done by ts-rumprun-demo-setup is now done by passing appropriate options to rumprun.
--- Osstest/RumpRun.pm | 67 ++++++++++++++++++++++++++++++++++ make-flight | 2 +- sg-run-job | 2 ++ ts-rumprun-bake | 89 ++++++++++++++++++++++++++++++++++++++++++++++ ts-rumprun-demo-setup | 52 ++++----------------------- ts-rumprun-demo-xenstorels | 3 +- 6 files changed, 167 insertions(+), 48 deletions(-) create mode 100644 Osstest/RumpRun.pm create mode 100755 ts-rumprun-bake
Osstest/RumpRun.pm new file +67 -0
@@ -0,0 +1,67 @@ +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2009-2013 Citrix Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + +package Osstest::RumpRun; + +use strict; +use warnings; + +use Osstest::TestSupport; + +BEGIN { + use Exporter (); + our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); + $VERSION = 1.00; + @ISA = qw(Exporter); + @EXPORT = qw( + rumprun_guest_create + ); + %EXPORT_TAGS = ( ); + + @EXPORT_OK = qw(); +} + +sub rumprun_guest_create ($) { + my ($gho) = @_; + my $ho = $gho->{Host}; + my $gn = $gho->{Guest}; + guest_prepare_disk($gho); + + my $rumprun = target_var($gho, 'rumprun_path'); + if (!$rumprun) { + logm("finding rumprun to use for $gho->{Name} on $ho->{Name}"); + my $buildjob = $r{guests_rumprunbuildjob} // # todo: eliminate this + target_var($gho, 'rumprunbuildjob'); + my $rumprundist = target_extract_jobdistpath_subdir + ($ho, "rumprun-rumprun-g-$gho->{Name}", "rumprun", $buildjob); + $rumprun = "$rumprundist/rumprun"; + store_runvar("${gn}_rumprun_path", $rumprun); + } + + my $imagepath = $r{"${gn}_imagepath"}; + my $cmdline = guest_var($gho, 'cmdline', undef); + + my $cmd = "$rumprun xen"; + $cmd .= " -N $gn"; + $cmd .= " -IIFTAG,IFBASENAME,mac=$gho->{Ether}"; + $cmd .= " $imagepath"; + $cmd .= " $cmdline"; + + target_cmd_root($ho, $cmd, 100); +} + +1;
make-flight +1 -1
@@ -203,7 +203,7 @@ do_rumpkernel_tests () { guests_rumprunbuildjob=build-$rumparch-rumprun \ rump_builtimage=rumprun:/usr/local/lib/xen/rump-kernel/rump-kernel \ rump_cmdline=3 \ - xenstorels_builtimage=:/usr/local/bin/xenstore \ + xenstorels_builtimage=rumpimages:xenstorels \ xenstorels_cmdline='ls -fp device' \ all_hostflags=$most_hostflags }
sg-run-job +2 -0
@@ -478,6 +478,8 @@ proc run-job/build-libvirt {} { proc run-job/build-rumprun {} { run-ts . = ts-rumprun-build run-ts . = ts-xen-build + host --no-kconfig tools + run-ts . = ts-rumprun-bake + host \ + xenstorels ::/usr/local/bin/xenstore-ls } proc prepare-build-host {} {
ts-rumprun-bake new file +89 -0
89 lines not on this page · raw message
ts-rumprun-demo-setup +6 -46
64 lines not on this page · raw message
ts-rumprun-demo-xenstorels +2 -1
@@ -19,6 +19,7 @@ use strict qw(vars); use DBI; use Osstest; use Osstest::TestSupport; +use Osstest::RumpRun; use Data::Dumper; tsreadconfig();
@@ -44,7 +45,7 @@ sub arrangepreserve () { } sub start () { - guest_create($gho); + rumprun_guest_create($gho); $domid = guest_find_domid($ho, $gho); }
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 24/26 rumprun: xenstorels: Do not attempt to edit the config file
In reply to Ian JacksonThere is no config file any more, so this function now crashes due to passing undef to target_editfile_root.
We do not need to edit it to set on_poweroff to preserve because this is the default for rumprun.
--- ts-rumprun-demo-xenstorels | 15 --------------- 1 file changed, 15 deletions(-)
ts-rumprun-demo-xenstorels +0 -15
@@ -30,20 +30,6 @@ our $domid; our $gn = $gho->{Guest}; -sub arrangepreserve () { - target_editfile_root($ho,$r{"$gho->{Guest}_cfgpath"}, sub { - while (<EI>) { - if (m/^\s*on_poweroff\s*=/) { - target_editfile_cancel("already configured to preserve") - if m/\bpreserve\b/; - next; - } - print EO or die $!; - } - print EO "\n","on_poweroff='preserve'\n" or die $!; - }); -} - sub start () { rumprun_guest_create($gho);
@@ -118,7 +104,6 @@ sub check_output () { } } -arrangepreserve(); start(); await_end(); check_output();
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 25/26 rumprun: xenstorels: New regexps for finding output
In reply to Ian JacksonThe framing output in rumprun upstream has changed.
--- ts-rumprun-demo-xenstorels | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
ts-rumprun-demo-xenstorels +3 -2
@@ -77,10 +77,11 @@ END sub their_xenstorels () { some_xenstorels('theirs', sub { $output{theirs} =~ s{\r\n}{\n}g; - while ($output{theirs} =~ m{\n=== calling main\(\) ===\n\n}) { + while ($output{theirs} =~ m{\n=== calling ".*" main\(\) ===\n\n}) { $output{theirs} = $'; #'; } - $output{theirs} =~ m{\n=== main\(\) returned (\d+) ===\n} or die; + $output{theirs} =~ m{\n=== main\(\) returned (\d+) ===\n} or + $output{theirs} =~ m{\n=== ERROR: _exit\((\d+)\) called ===\n} or die; $output{theirs} = $`; die "$1 ?" if $1 ne '0'; $output{theirs} =~ s{^STUB \`\`\w+'' called\n}{}mg;
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 26/26 rumprun: xenstorels: Improve an error message slightly
In reply to Ian Jackson--- ts-rumprun-demo-xenstorels | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ts-rumprun-demo-xenstorels +1 -1
@@ -83,7 +83,7 @@ sub their_xenstorels () { $output{theirs} =~ m{\n=== main\(\) returned (\d+) ===\n} or $output{theirs} =~ m{\n=== ERROR: _exit\((\d+)\) called ===\n} or die; $output{theirs} = $`; - die "$1 ?" if $1 ne '0'; + die "EXIT STATUS $1 ?" if $1 ne '0'; $output{theirs} =~ s{^STUB \`\`\w+'' called\n}{}mg; }, <<END); cat /var/log/xen/console/guest-$gn.log
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel