From nobody Sat Apr 27 00:44:11 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=1565779527; cv=none; d=zoho.com; s=zohoarc; b=nVMyG/hTQdJ+7IJb+FSjJPONdutVgUlOO5Ogaq6NxQS/278+kidDrkEvCZbYz0ts0cN7BvUJLK4HAM3wSL1/xd3e+vz4GsZOkumEj0iOnZJnca4p8oVFP/B+Wlj7uFUzg6QzH5+lv+OOlXtkjv04S3xOKNYu8B+kZeRYH0DSPtQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565779527; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=r8qOl+Zscl8K75VO2Fq2vwTmza77oN6zCdoXv0Yhw4U=; b=FTxDUEqFBne5VVwGEfmHf2ZkpUftnB9XJR4iMAmHwUEW8fwdyGmy6ee5Qd+mvjDuWw8Mbwurdio2raSNigxx8HxAqH4vFcYJ/oPvzIqEC7T74JMfuNw7aWtOoNV1QvQ9sSi+elxMAj25+srEN2hLGeJ6bFKaX7FRkljnJ83VPBo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; 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 156577952721754.86802893587162; Wed, 14 Aug 2019 03:45:27 -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 1hxqlP-0008KQ-GC; Wed, 14 Aug 2019 10:44:19 +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 1hxqlO-0008KK-05 for xen-devel@lists.xenproject.org; Wed, 14 Aug 2019 10:44:18 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 743368de-be80-11e9-99b1-d371aab09a90; Wed, 14 Aug 2019 10:44:13 +0000 (UTC) X-Inumbo-ID: 743368de-be80-11e9-99b1-d371aab09a90 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1565779453; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SC80ZRXSvWOjaGJrsmfJ2nUUaQrtVj8HF8eElY/TYYY=; b=GezYEXoD8VSdfWCDcYTAN4Lzw7n8Cjz020mA6JD/ULPGclO37SIodxYF I6qxmMI02i865r65oXK1iCbj3T6nbU0fZA7NnaSFLKZxI1QSlVgDdkIJo cqR96EaiYpfj2YYLmhJfRc7Hve4LSbxxc9biL+iQswl1AQz225fm1CMr/ k=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@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 andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of Andrew.Cooper3@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="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@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="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 96IZGFmz6Nhzs/83vkRDTDAWQzE25HQpNRTq4GOe6y2TNw0LCV84h1hqHwfEMIjixof0Y7Re2J GOg9V8o4bD9vk0lP//0anSq2Kv8i+gxA6WnZiRS+4wElBwIFyhZhvPyEtNEpA2ZCZH8bW5WV5c XRU4wZvuYLv1bq8GIfxH5/cELESWIL5CfGPjjUZk9U3w2e4w1oKt+igEs1OzLy5UqwE/Ad8A/+ FOVU/sLADOdLZ/SAGju5NfStdkCzsq3p4av0UxNrREhPqOHSyWt8JEcfsw0QUbiVCy0DLEWlw3 UaU= X-SBRS: 2.7 X-MesageID: 4428476 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.64,384,1559534400"; d="scan'208";a="4428476" From: Andrew Cooper To: Xen-devel Date: Wed, 14 Aug 2019 11:44:04 +0100 Message-ID: <20190814104404.17739-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86/boot: Annotate pagetables with STT_OBJECT 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 , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Introduce a new ENDDATA() helper which sets type and size together. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 --- xen/arch/x86/boot/x86_64.S | 18 +++++++++--------- xen/include/asm-x86/config.h | 5 +++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/xen/arch/x86/boot/x86_64.S b/xen/arch/x86/boot/x86_64.S index 5ab24d73fc..8a4cc7e747 100644 --- a/xen/arch/x86/boot/x86_64.S +++ b/xen/arch/x86/boot/x86_64.S @@ -65,7 +65,7 @@ l1_identmap: .endif pfn =3D pfn + 1 .endr - .size l1_identmap, . - l1_identmap +ENDDATA(l1_identmap) =20 /* * __page_tables_start does not cover l1_identmap because it (l1_identmap) @@ -86,7 +86,7 @@ GLOBAL(l2_identmap) idx =3D idx + 1 .endr .fill 4 * L2_PAGETABLE_ENTRIES - 8, 8, 0 - .size l2_identmap, . - l2_identmap +ENDDATA(l2_identmap) =20 /* * L2 mapping the 1GB Xen text/data/bss region. At boot it maps 16MB from @@ -101,7 +101,7 @@ GLOBAL(l2_xenmap) idx =3D idx + 1 .endr .fill L2_PAGETABLE_ENTRIES - 8, 8, 0 - .size l2_xenmap, . - l2_xenmap +ENDDATA(l2_xenmap) =20 /* L2 mapping the fixmap. Uses 1x 4k page. */ l2_fixmap: @@ -114,7 +114,7 @@ l2_fixmap: .endif idx =3D idx + 1 .endr - .size l2_fixmap, . - l2_fixmap +ENDDATA(l2_fixmap) =20 /* Identity map, covering the 4 l2_identmap tables. Uses 1x 4k page. */ l3_identmap: @@ -124,7 +124,7 @@ l3_identmap: idx =3D idx + 1 .endr .fill L3_PAGETABLE_ENTRIES - 4, 8, 0 - .size l3_identmap, . - l3_identmap +ENDDATA(l3_identmap) =20 /* L3 mapping the fixmap. Uses 1x 4k page. */ l3_xenmap: @@ -139,7 +139,7 @@ l3_xenmap: .endif idx =3D idx + 1 .endr - .size l3_xenmap, . - l3_xenmap +ENDDATA(l3_xenmap) =20 /* Top-level master (and idle-domain) page directory. */ GLOBAL(idle_pg_table) @@ -155,7 +155,7 @@ GLOBAL(idle_pg_table) .endif idx =3D idx + 1 .endr - .size idle_pg_table, . - idle_pg_table +ENDDATA(idle_pg_table) =20 GLOBAL(__page_tables_end) =20 @@ -165,8 +165,8 @@ GLOBAL(__page_tables_end) =20 GLOBAL(l2_bootmap) .fill 4 * L2_PAGETABLE_ENTRIES, 8, 0 - .size l2_bootmap, . - l2_bootmap +ENDDATA(l2_bootmap) =20 GLOBAL(l3_bootmap) .fill L3_PAGETABLE_ENTRIES, 8, 0 - .size l3_bootmap, . - l3_bootmap +ENDDATA(l3_bootmap) diff --git a/xen/include/asm-x86/config.h b/xen/include/asm-x86/config.h index 22dc795eea..35705441ff 100644 --- a/xen/include/asm-x86/config.h +++ b/xen/include/asm-x86/config.h @@ -56,6 +56,11 @@ #define GLOBAL(name) \ .globl name; \ name: + +#define ENDDATA(name) \ + .type name, STT_OBJECT; \ + .size name, . - name + #endif =20 #define NR_hypercalls 64 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel