From nobody Tue Feb 10 01:31:41 2026 Delivered-To: importer@patchew.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=1560942294; cv=none; d=zoho.com; s=zohoarc; b=KHB5tcI1eCFSURtaS8GuWqzJ1GNJsM8TfPuJ9aFKe1xou8V737w9WY5M/MDifRP3pcu+nDxLOKUH29ujBlS2/+abxOJR7aVDIwKORTxYxwqF8yehR+eqIiO3PT7yluJtUMxKJbeGwzapX24DUKJ6PVlo7BD9w/xAagHtz84J8as= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560942294; 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=Ygjrb2VjEJ7RY0h3fNCghHT+I/OKohA1gQoTsGiG5SE=; b=CdyHVwugke6XhcV+WCfy+BuH1HRIcbtR2XAmBTIQW+BOwV9NH7d4jD2TsyChIusySpfK2IjCvPyyqXkf9McKFmIFPalgZOfARUsI16+xbJTmC7u71oPNISMnPLRfLlGpzA4s56CiyW0S6//etze09Hu1wqyqoeE5iqOA4rjyf90= 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 1560942294889821.7919291174005; Wed, 19 Jun 2019 04:04:54 -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 1hdYN9-0002HN-BL; Wed, 19 Jun 2019 11:03:23 +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 1hdYN7-0002Gp-W1 for xen-devel@lists.xenproject.org; Wed, 19 Jun 2019 11:03:22 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d7b3e56c-9281-11e9-a863-bf914ca9b8e8; Wed, 19 Jun 2019 11:03:18 +0000 (UTC) X-Inumbo-ID: d7b3e56c-9281-11e9-a863-bf914ca9b8e8 Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com 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; Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: m1ine1BMZyNHDKt8WR2ra+qRoQ/z82FizDvzpcM/g888PQCeqgZYz9fER0xkRr8zCJTLNY2v8+ w+w+gwBhWUeCAKFosx6KZykDDlJS4FelEfrLWOWtDM8ddFPC+KFFdXUYaUhiKp16Ba/9V8iJv9 jJApGjx4CU5EaoqYjPtvMJJTuBCVQRQ5Xk6unM/C8SgEVxN8JaFEvsoPnTAgcfR6AP+o6SvLZS AjuICfVRhRyfyAzqKy6tiQqmITVywjtzZ1LPhQlLhjz67bVGILJ7aUu0yb4HprZoE1HlDJvVGH oR4= X-SBRS: 2.7 X-MesageID: 1935696 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,392,1557201600"; d="scan'208";a="1935696" From: Roger Pau Monne To: Date: Wed, 19 Jun 2019 13:02:50 +0200 Message-ID: <20190619110250.18881-5-roger.pau@citrix.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190619110250.18881-1-roger.pau@citrix.com> References: <20190619110250.18881-1-roger.pau@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 4/4] x86: check for multiboot{1, 2} header presence 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: Andrew Cooper , Wei Liu , Jan Beulich , Roger Pau Monne Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" After building the hypervisor binary. Note that the check is performed by searching for the magic header value at the start of the binary. Signed-off-by: Roger Pau Monn=C3=A9 --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu --- xen/arch/x86/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index 8a8d8f060f..9bb3bf6e6c 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -102,6 +102,9 @@ syms-warn-dup-$(CONFIG_SUPPRESS_DUPLICATE_SYMBOL_WARNIN= GS) :=3D $(TARGET): $(TARGET)-syms $(efi-y) boot/mkelf32 ./boot/mkelf32 $(notes_phdrs) $(TARGET)-syms $(TARGET) $(XEN_IMG_OFFSET) \ `$(NM) $(TARGET)-syms | sed -ne 's/^\([^ ]*\) . __2M_rwdat= a_end$$/0x\1/p'` + # Check for multiboot{1,2} headers + od -t x4 -N 8192 $(TARGET) | grep 1badb002 > /dev/null + od -t x4 -N 32768 $(TARGET) | grep e85250d6 > /dev/null =20 ALL_OBJS :=3D $(BASEDIR)/arch/x86/boot/built_in.o $(BASEDIR)/arch/x86/efi/= built_in.o $(ALL_OBJS) =20 --=20 2.20.1 (Apple Git-117) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel