From nobody Sat May 4 05:17:48 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556207545; cv=none; d=zoho.com; s=zohoarc; b=PeK1VZBTBgYcL+THwLZbgYt2lL1DXZsbO/lp7WKwgRr6jK5KGiIrsX8DeDECyWuTdvruh8yqs3slKptdhVWRxcjG4Li13n9G8TX4PqIHLnocCP3iQh1lU4bxFDzI9nEchd2iTOzlL+861L+KyI18pcoVEHUDe1Ee7DVSxciRq6s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556207545; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=xccpHTTUYboZPKSdehmy/+e7yK74K/mrX0p5kyjOS5c=; b=mJ+0E9ZiJS9x7iJQq4Nx4xD6i+ombwu/q7ke5mHcjgjaK0BEcVC26EDuRyU7chbC+QyAxDAh6Nrw+vMYxYRwEW6LWQLq31eHhbZ0TB28eNZ2HGxn2zC5bvuPWUBqBlwhJxv8rqBLdW5ppm/AysgpeRaXEqmaOYBCcojYzi/N1Oo= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556207545578611.1910760161833; Thu, 25 Apr 2019 08:52:25 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeV-0002t9-SE; Thu, 25 Apr 2019 15:51:11 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeU-0002s6-D3 for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:51:10 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id eff14e7a-6771-11e9-8aa2-d34eebeff8db; Thu, 25 Apr 2019 15:51:06 +0000 (UTC) X-Inumbo-ID: eff14e7a-6771-11e9-8aa2-d34eebeff8db X-IronPort-AV: E=Sophos;i="5.60,394,1549929600"; d="scan'208";a="84415683" From: Ian Jackson To: Date: Thu, 25 Apr 2019 16:50:51 +0100 Message-ID: <20190425155056.23145-2-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190425155056.23145-1-ian.jackson@eu.citrix.com> References: <20190425155056.23145-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 1/6] ts-syslog-server: --no-stdin option X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Useful when running on a tty interactively. Signed-off-by: Ian Jackson --- ts-syslog-server | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ts-syslog-server b/ts-syslog-server index 1234bb7d..06a07adf 100755 --- a/ts-syslog-server +++ b/ts-syslog-server @@ -28,6 +28,13 @@ use Socket qw(PF_INET SOCK_DGRAM INADDR_ANY =20 tsreadconfig(); =20 +our $use_stdin =3D 1; + +if (@ARGV && $ARGV[0] eq '--no-stdin') { + $use_stdin =3D 0; + shift @ARGV; +} + die if @ARGV && $ARGV[0] =3D~ m/^-/; =20 logm("starting syslog server ..."); @@ -42,7 +49,8 @@ $myaddr =3D inet_ntoa($myaddr); =20 store_runvar('syslog_server',"$myaddr:$port"); =20 -my @fhs =3D qw(S STDIN); +my @fhs =3D qw(S); +push @fhs, qw(STDIN) if $use_stdin; =20 foreach my $fh (@fhs) { my $fl =3D fcntl($fh, F_GETFL, 0) // die $!; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sat May 4 05:17:48 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556207545; cv=none; d=zoho.com; s=zohoarc; b=hTU5AA6q0niR/U7DWNZj82gxbBPrEiqUGS41fD5HmH81l5jJMns+3xEFoZHi2dJhhy5znFiNX4lkdv0m+eHGKnOnUc9fL08tP3WF5ip2ZK0apw4SIwEafFGIekj+17Cb1dpqrM5RqsbpTbbqR6QxnfxFrcPwYEyOifULKsZrezQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556207545; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=CVVlGsVm96b8Nyw87ID8vYIkyMk0EePf+Vh8LM18cJA=; b=T8QyrSjeqLZLWgcULUzeS8aiKt76JXobikNFU0FP2Lqrxv5+UxGGFW9/CfttOQNDIoO6M6vVBrWq2XX5Ov0AMEFZfMibuhFJ+sm+k7/pHr2SwlcdNRnZco/yWLGYyXCyfuzjJw5bGHJ/stpJRljgAeaFzahpE+zNACMROTJ/BHE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556207545520996.617832141599; Thu, 25 Apr 2019 08:52:25 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeS-0002qa-7j; Thu, 25 Apr 2019 15:51:08 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeR-0002pZ-64 for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:51:07 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id edee0dc0-6771-11e9-9fff-4b8dfb8fe4e9; Thu, 25 Apr 2019 15:51:03 +0000 (UTC) X-Inumbo-ID: edee0dc0-6771-11e9-9fff-4b8dfb8fe4e9 X-IronPort-AV: E=Sophos;i="5.60,394,1549929600"; d="scan'208";a="84415674" From: Ian Jackson To: Date: Thu, 25 Apr 2019 16:50:52 +0100 Message-ID: <20190425155056.23145-3-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190425155056.23145-1-ian.jackson@eu.citrix.com> References: <20190425155056.23145-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 2/6] sg-run-job, ts-host-install: New --build option X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Used to specify that the host will be used for building. Currently has no effect. Signed-off-by: Ian Jackson --- sg-run-job | 2 +- ts-host-install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sg-run-job b/sg-run-job index 56b6384a..7c58d4ba 100755 --- a/sg-run-job +++ b/sg-run-job @@ -734,7 +734,7 @@ proc allocate-build-host {ostype} { } proc prepare-build-host-linux {} { global jobinfo - run-ts broken host-install(*) ts-host-install-twice + run-ts broken host-install(*) ts-host-install-twice + --build run-ts . host-build-prep ts-xen-build-prep } =20 diff --git a/ts-host-install b/ts-host-install index 4213c3a2..7094559f 100755 --- a/ts-host-install +++ b/ts-host-install @@ -41,6 +41,7 @@ while (@ARGV and $ARGV[0] =3D~ m/^-/) { $poweron_test_only=3D 1; } elsif (m/^--rescue$/) { $xopts{RescueMode}=3D 1; + } elsif (m/^--build$/) { } else { die "$_ $!"; } --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sat May 4 05:17:48 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556207543; cv=none; d=zoho.com; s=zohoarc; b=apQqmBRNdTFTKg5YRkI58s62Kkn93nFX3suQOid4Rekg37ude3iKt8qQml8aLInYR84pd4X3HOdhTRwUa9UQiDHBwYhpm+k/16Q8+lUqe0eMIGlBgFUvIwk0KgZP8CTjSmPAJ7128dG00hMFCVcIyk9fcnXAY/5a9KHnjd0pd28= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556207543; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=VSFPUkFT+2nLRvc2Jg1MQ8qTKZkXPSb26KKQPBMRHnA=; b=gKvfzRqJrIx7tUfXccGsGk1SHkV1U+PjGBLZRLCHFthxVoiWxF1t5rQz14WO7cWOydhLBF5tntt8aucPB2hDAgXPHoq9QuxRtycHwNTPtVL6m4ouP93FkBMbEA3MwfKx6r0cJ0fXEhgrH+/7rKLfA+z75HqfoNypgMKBJhPQWTk= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556207543254653.9433921710106; Thu, 25 Apr 2019 08:52:23 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeP-0002oO-6J; Thu, 25 Apr 2019 15:51:05 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeO-0002oC-Db for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:51:04 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id ee2e617d-6771-11e9-843c-bc764e045a96; Thu, 25 Apr 2019 15:51:03 +0000 (UTC) X-Inumbo-ID: ee2e617d-6771-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,394,1549929600"; d="scan'208";a="84415675" From: Ian Jackson To: Date: Thu, 25 Apr 2019 16:50:53 +0100 Message-ID: <20190425155056.23145-4-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190425155056.23145-1-ian.jackson@eu.citrix.com> References: <20190425155056.23145-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 3/6] mg-repro-setup: Fix runvar adjustment shell syntax X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" -r would fail with a bash syntax error. This bug has existed ever since this feature was introduced. Signed-off-by: Ian Jackson --- mg-repro-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg-repro-setup b/mg-repro-setup index 37ccb59d..6ed4d85e 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -108,7 +108,7 @@ adjrunvar () { for arg in "${adjustsets[@]}"; do case "$arg" in !*|^*) delrunvar "${arg#?}" ;; - *=3D*) adjrunvar "${arg%%=3D*}" "{$arg#*=3D}" ;; + *=3D*) adjrunvar "${arg%%=3D*}" "${arg#*=3D}" ;; *) bad-adjuistset-pattern ;; esac done --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sat May 4 05:17:48 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556207551; cv=none; d=zoho.com; s=zohoarc; b=hPDHysXXk23nYHkOTv/dzBLG5J6RK3zn5XsJ6+vymi+hMywmTePdL3Z6gNeE5jIXpBU3X5lFuFRW50re62YPV+ttua23ntB+tBmefDPdtMLgGcJI9FClJvquXbVoj2Jr0qV5SGFCiq/Fm0pScHs5BzHuxQbBdVka6Mc3aVcuni4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556207551; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=f3GOBteqxoVlF7pnsQGz80akCxqRhivTHc08nTk6cn4=; b=E0L8SIixd327j5rcOWJrLqt+W/l7JJ1Be2H0/+CXZ2gRVUT4drtsQ9idzUv4IpQsBxXpZwvc9f7eWFlUabuWwFstLAWoEwaiWBGn5y4kUsw/9TKJhjE1GeT7eiUmR4Zp21ZwRI5ZDRLzDMVoqvXqfsbwHMiX5/cXCM0MFskLCzg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556207551514116.4352945355954; Thu, 25 Apr 2019 08:52:31 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeV-0002ss-HS; Thu, 25 Apr 2019 15:51:11 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeU-0002s7-D3 for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:51:10 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f095de9a-6771-11e9-be76-9337133c23b6; Thu, 25 Apr 2019 15:51:08 +0000 (UTC) X-Inumbo-ID: f095de9a-6771-11e9-be76-9337133c23b6 X-IronPort-AV: E=Sophos;i="5.60,394,1549929600"; d="scan'208";a="84415685" From: Ian Jackson To: Date: Thu, 25 Apr 2019 16:50:54 +0100 Message-ID: <20190425155056.23145-5-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190425155056.23145-1-ian.jackson@eu.citrix.com> References: <20190425155056.23145-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 4/6] Debian: preferred arch: Honour LinuxKernPreferredArchInfo X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Nothing sets this yet. Signed-off-by: Ian Jackson --- Osstest/Debian.pm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 600f18b1..addaaad2 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -1334,6 +1334,44 @@ END preseed_hook_command($ho, 'late_command', $sfx, $cmds); }); =20 + my $kern_arch_info =3D $xopts{LinuxKernPreferredArchInfo}; + # LinuxKernPreferredArchInfo contains + # Kernel_Debian the Debian arch for the kernel we would prefer + my $kern_arch =3D $kern_arch_info->{Kernel_Debian}; + if ($kern_arch && + $ho->{Flags}{"arch-$r{arch}"} && !$ho->{Flags}{"arch-$kern_arch"}) { + # We check the flag for $r{arch} because for various reasons + # it may not be set. For example, in standalone mode it is + # currently not normally necessary to set any arch hostflags. + # In that situation we bet that the kern arch can be used; + # this is a good bet because currently this is used for + # running amd64 kernels with i386 userland and hosts that can + # do only i386 are fairly rare, especially server hosts. + # If this causes a problem, setting the i386 host flag will + # (somewhat counterintuitively) cause this check to miss + # the amd64 host flag + logm("NOT using $kern_arch kernel (flags say not supported by host)"); + $kern_arch =3D undef; + } + if ($kern_arch) { + logm("Using $kern_arch kernel for $r{arch} userland"); + preseed_hook_command($ho, 'late_command', $sfx, <{Flags}{'need-uboot-bootscr'} ) { my @bootargs =3D uboot_common_kernel_bootargs($ho); =20 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sat May 4 05:17:48 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556207545; cv=none; d=zoho.com; s=zohoarc; b=MDP46z3Yoj2Q0sYsXQMVnT4BELHrxjmWPoX2GMg7JPEsjhAfDZ+FE7ilm5DKEfw/V3pFnJj6Ip/1iSl18XpP1p94tdRVv6FHQ+n2P2wYu/CYwttrDvpW6SgZXhiHfNf45UMIvwoPiHIF6zglr/hOX8U9kiTCFNv7zwTZM4C3O1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556207545; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=fNMXIySb24WK0okkb8wuPa33ieJRcuJ88/I2nEGzPoE=; b=HPc1UBxV8x12/jqCU2ajFam/MoCearFQGA9RwbtQRHIyT8CJj4xVLbZCWr9BY+dNXbpb6jQK2Wh6XvI5cLg8JBTpKBc0+7YhfZ4Xqmk0jpN6zW56U5pF+p3beMEXtXs1Kjky6diFSBcqB2U6ErvDeh19gSbtpWRPvJXVIoDtM08= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556207544761591.9005544611841; Thu, 25 Apr 2019 08:52:24 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeR-0002pj-Kf; Thu, 25 Apr 2019 15:51:07 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeP-0002op-N8 for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:51:05 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id ee815c5e-6771-11e9-843c-bc764e045a96; Thu, 25 Apr 2019 15:51:04 +0000 (UTC) X-Inumbo-ID: ee815c5e-6771-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,394,1549929600"; d="scan'208";a="84415677" From: Ian Jackson To: Date: Thu, 25 Apr 2019 16:50:55 +0100 Message-ID: <20190425155056.23145-6-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190425155056.23145-1-ian.jackson@eu.citrix.com> References: <20190425155056.23145-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 5/6] Debian: preferred arch: Apply setarch to sshd X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Many build systems (including Xen's, and autoconf) use uname to try to discern the system's architecture. When running i386 userland on an amd64 kernel, this gives the wrong answer. These build systems then go off and try to do a sort of cross compile thing, and, generally, fall over. The uname -m value (which is what is at issue) is an inherited process property. Linux provides a utility `setarch' which changes this. We need to apply this to all builds; and it is not really convenient to add an adverbial command to every build via the existing ssh build shell rune mechanisms. A fairly simple way to get the right behaviour is to wrap sshd instead. sshd doesn't mind what `personality' it sees. Replacing /usr/bin/sshd with a wrapper shell script might break start-stop-daemon's attempts to shut down or restart sshd but we don't care about that in osstest (certainly not on build installs, where this feature is to be used). Nothing uses this yet. Signed-off-by: Ian Jackson --- Osstest/Debian.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index addaaad2..8abd6aed 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -1337,6 +1337,7 @@ END my $kern_arch_info =3D $xopts{LinuxKernPreferredArchInfo}; # LinuxKernPreferredArchInfo contains # Kernel_Debian the Debian arch for the kernel we would prefer + # Userland_setarch personality to restore using setarch my $kern_arch =3D $kern_arch_info->{Kernel_Debian}; if ($kern_arch && $ho->{Flags}{"arch-$r{arch}"} && !$ho->{Flags}{"arch-$kern_arch"}) { @@ -1354,10 +1355,16 @@ END $kern_arch =3D undef; } if ($kern_arch) { - logm("Using $kern_arch kernel for $r{arch} userland"); + my $setarch =3D "setarch $kern_arch_info->{Userland_setarch}"; + logm("Using $kern_arch kernel for $r{arch} userland ($setarch)"); preseed_hook_command($ho, 'late_command', $sfx, </target/usr/sbin/sshd.osstest-wrap +#!/bin/sh +exec $setarch /usr/sbin/sshd.distrib "\$@" +ENDW +chmod a+x /target/usr/sbin/sshd.osstest-wrap in-target sh -xec ' # the $r{arch} kernels end up being the default so shuffle them # where update-grub will not find them @@ -1368,6 +1375,8 @@ in-target sh -xec ' apt-get update apt-get install -f -y linux-image-$kern_arch update-grub + dpkg-divert --rename /usr/sbin/sshd + ln -s sshd.osstest-wrap /usr/sbin/sshd ' END } --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sat May 4 05:17:48 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556207544; cv=none; d=zoho.com; s=zohoarc; b=grMs0K2CE7b6SJEcaJfV4uUxt7KoHs0HqxHPK6XtM8/YB7engYb5u/ZYafyv5AwUEJnCFxZtGGbEYuGXVqzVKh9aTnwoxlDxBThdCF5eVb+B5EI/Y7nsWTHaPAZIoHo68vM9mD4uNxtrjza8yjHCjIj5NBzfOEi2mCEhbS1Wy8A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556207544; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=HJB7mIbZp6Q6ABEHsON2d/+k0RTa/mb6NZB88Z3oaLY=; b=ek9EuMLgIRr+FUDpgdd6eT+D9YOWhBQNkkO1u7JjdIj0je363U/3q/xLbCbKw0Bd11ErDK19PDDdxIhGPjzJ5/wzQMtPnR0w/irrszellVL5TbfZuOWzjJtf0BpK97uIoeeIXf4AdiWZnS+zR87H/nVmlwsDh8XLX/derg4sihI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556207544991163.65222495601836; Thu, 25 Apr 2019 08:52:24 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeR-0002q6-Sp; Thu, 25 Apr 2019 15:51:07 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgeP-0002oq-N8 for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:51:05 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id ee877cd7-6771-11e9-843c-bc764e045a96; Thu, 25 Apr 2019 15:51:04 +0000 (UTC) X-Inumbo-ID: ee877cd7-6771-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,394,1549929600"; d="scan'208";a="84415678" From: Ian Jackson To: Date: Thu, 25 Apr 2019 16:50:56 +0100 Message-ID: <20190425155056.23145-7-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190425155056.23145-1-ian.jackson@eu.citrix.com> References: <20190425155056.23145-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 6/6] builds: Run i386 builds on amd64 kernels X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Wei Liu , Andrew Cooper , Ian Jackson , Paul Durrant , Boris Ostrovsky Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Most hardware that supports i386 supports amd64 too. When doing builds we do need the right userland, but we don't actually care what the kernel is doing. With Linux 32-on-64 is good for that. Especially, there is a kernel regression (evident in the Debian stretch kernel, but not present in jessie's) where 32-bit Linux mismanages the memory on hosts with moderately large amounts of RAM (ie, significantly more RAM than can be addressed at once), resulting in what amounts to a near-stall of the paging system. Since the paging system is used for filesystem writes too, the effect is that commands run by builds can take totally unreasonable amounts of time. Ie, this version of Linux is broken when i386 PAE is needed. In practice this is causing significant trouble in the Xen Project CI. This kernel bug probably won't affect our test jobs because (i) we use our own kernels, so we would probably detect this regression when switching kernel branches etc. (ii) test jobs run with a dom0_mem setting which avoids the preconditions for the particular bug. CC: Juergen Gross CC: Boris Ostrovsky CC: Wei Liu CC: Andrew Cooper CC: Paul Durrant Signed-off-by: Ian Jackson Acked-by: Juergen Gross --- ts-host-install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ts-host-install b/ts-host-install index 7094559f..45f04764 100755 --- a/ts-host-install +++ b/ts-host-install @@ -31,6 +31,7 @@ my $debconf_priority; my $poweron_test_only; =20 our %xopts; +our $kern_arch_info; =20 while (@ARGV and $ARGV[0] =3D~ m/^-/) { $_=3D shift @ARGV; @@ -42,6 +43,12 @@ while (@ARGV and $ARGV[0] =3D~ m/^-/) { } elsif (m/^--rescue$/) { $xopts{RescueMode}=3D 1; } elsif (m/^--build$/) { + if ($r{arch} eq 'i386') { + $kern_arch_info =3D { + Kernel_Debian =3D> 'amd64', + Userland_setarch =3D> 'i386', + }; + } } else { die "$_ $!"; } @@ -61,6 +68,7 @@ sub install () { ($ho, '', DiskDevice =3D> $ho->{DiskDevice}, Properties =3D> $ho->{Properties}, + LinuxKernPreferredArchInfo =3D> $kern_arch_info, ExtraPreseed =3D> <{Name} d-i netcfg/get_ipaddress string $ho->{Ip} --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel