[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 10/44] x86/boot: introduce boot module flags
- To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Mon, 7 Oct 2024 16:02:03 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=apertussolutions.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hvDiLvzIcbE3BKIWnhAdC7LU+eUaE8AcSFhnuIGATzM=; b=Hox2bAAz8iK1v4lG7LubZ8J1WH77ZVcqcZ9ok5pp9jk80Nac4QMoiKX4F8tjPO9J/NrOv0ERzeNzrF+Ci49sr1JIoJu+0umWrvjKL5uTWBu+HZzuBugZS//6ADcrPbxd4uHuLJ4PbmPdZ1pwBxLhMxXNqUR4NtJIiwPYhPFU6wxuBfkiMvwtO8jN2ivmQ8cAo0TD6a8430E/M+ZGe3S/5qqjmvNUDBx/U13B4TRGnBuA/hnx1EIkQI/s6c7BN00KSfGcQtwNZGnulf2rZOz4AYEhXRRj6xbeGc6QbxG0RuE9RdgsBSr3BDkZ5Sb9B9cK8AMNPDoyJzi2ZpSyleFnjA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hVx3Ej7bhpb1xkaHR4cfPZP3YvbMSHSwDO1a9NFtekaXvp39JBm9OJSbRTrKZEjpChBANpPHQ40FmaIzfiQlucNMg8nX7vrR6og27KcGZRqrS0XYFmoWN3VFplF+K1kmTHW0pP57PDWDdqleiiSztx6PBL586Tx45O83iSyTY2bB03xYxhepriTl8vNEqTHarycHP3EGTg0cGN56+khoSFtHh/ik/+o6eYQs+Z3G6z55LozbEnFI8KuHMCKR1htS8Ep9WD0y8qOrRIc1hbUh0fZ35/iQQ3wQDSXx3k7SdeQxlWd1k50fY6rkePQrCqIvBjo2KJaDrOCNHPMCX8S6tw==
- Cc: <christopher.w.clark@xxxxxxxxx>, <stefano.stabellini@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Mon, 07 Oct 2024 20:02:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2024-10-06 17:49, Daniel P. Smith wrote:
The existing startup code employs various ad-hoc state tracking about certain
boot module types by each area of the code. A boot module flags is added to
enable tracking these different states. The first state to be transition by
this commit is module relocation.
Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
xen/arch/x86/include/asm/bootinfo.h | 4 ++++
xen/arch/x86/setup.c | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/xen/arch/x86/include/asm/bootinfo.h
b/xen/arch/x86/include/asm/bootinfo.h
index 6941a8975ea6..021ff0d93643 100644
--- a/xen/arch/x86/include/asm/bootinfo.h
+++ b/xen/arch/x86/include/asm/bootinfo.h
@@ -31,6 +31,10 @@ struct boot_module {
*/
unsigned long headroom;
enum bootmod_type type;
+
+ uint32_t flags;
+#define BOOTMOD_FLAG_X86_RELOCATED (1U << 0)
+
Stray newline. Otherwise:
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
};
/*
|