[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 39/44] x86/boot: introduce domid field to struct boot_domain
- To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Tue, 8 Oct 2024 15:36:07 -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=ErtetIz3haHJAxSSfmR+mWVjEXTEeTCPGz12pCQEB1E=; b=wmN0ef22AiKRRXaDKf2LdmZDyPuxbb03YxSdHAG5R3H93x0y3nfYvGYToby2/c/iqNjA0muh8bDhw+6g3HB+W4AGDwDIDPwp9vew7X+ZwziNR3UC83FuUeP/I8P2jd6beQFZUoYH+Dt07r34FnCrZcOP5ezYaTiy6TlJxYX4H/hS+jywRt54CkOBD9pVx3dIUjRhSKr46qgPv571rDNAsnPLRzt7Aa/GSTsTG95aNWF58rRmNizgymY0bsvVMmQiwo1AceQNyQYJbFEjES6siya9AEwetPHoWEH1egwv+o0GqwyuCJd/T80CIQodDdPMGUwzPFkMLHq94JZGtd6pBw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D9eTmfkeJt+O6nfuf2b7hv2hO6LclnhlE+OkRymuwDy2S1dUT4kpnVLyRCoItjQjzdujWW5VEa4zvXC34LKgVKll2molxs25WR+hisyNCWwpAuoWYxwe1/WWAE9jzHixSjg0jKCmXSccGiWt+BlOOc2kBhqwEm96NnYYkSe7KaI63J946v/cUOJCbPQG3K147tbypjTKOIhHwsoZxT9YtnBDHjrpR3NIK1EzpTs++8KXs+9z8vSO+1hqG26v7kJjBPF/N8aM/ShP+DCd6mDVj9go6AaHUekm8PNjgUpfbBdpCX24Vo/fSY+b/SOfHRO0ITiarjniuVlugnEiEIJkxg==
- 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: Tue, 08 Oct 2024 20:37:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2024-10-06 17:49, Daniel P. Smith wrote:
Add a domid field to struct boot_domain to hold the assigned domain id for the
domain. During initialization, ensure all instances of struct boot_domain have
the invalid domid to ensure that the domid must be set either by convention or
configuration.
Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
xen/arch/x86/include/asm/bootdomain.h | 2 ++
xen/arch/x86/setup.c | 12 +++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/xen/arch/x86/include/asm/bootdomain.h
b/xen/arch/x86/include/asm/bootdomain.h
index 4285223ac5ab..d6264d554dba 100644
--- a/xen/arch/x86/include/asm/bootdomain.h
+++ b/xen/arch/x86/include/asm/bootdomain.h
@@ -11,6 +11,8 @@
struct boot_module;
struct boot_domain {
+ domid_t domid;
+
struct boot_module *kernel;
struct boot_module *ramdisk;
};
Oh, you should probably move domid after the pointers to avoid a hole.
Regards,
Jason
|