From nobody Mon Feb 9 20:11:12 2026 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