[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 5/6] x86/boot: introduce domid field to struct boot_domain
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Nov 2024 10:31:04 -0500
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731684669; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=TKdtslLSIhKbALEPsVQD5f8zYXoQFa/thBHaY+yGAss=; b=aoZp9Kd3/zInKXzjaZw1D2cizFwgCxdfPRyxJjf2m43Vkr0vigTIu7FRGB4bpLLUavppW5bS9YV8HQ87ER5Z9QR+lyiF6kzyjOkonHMRLixyhGJKs3pmEN2gutkcrvdK81rWLFuo/5OGyWjELKcdteU51igimx2oGucl0+dCQzk=
- Arc-seal: i=1; a=rsa-sha256; t=1731684669; cv=none; d=zohomail.com; s=zohoarc; b=lDYfAyeARF84BHblEEg4JaQXe2daExmpeBN671C0a2UuEw8e8L7JNMq9I01R2JFwIOl+xS5RMdFS/mYlY66naWScKTJIPawYvoEJ7p5chXwbP5vfKasc+MajK3By72+HKEaQl8psqMTgL82NCo+o6kuN8CzEL5EvfqGCuRl7XYk=
- Cc: jason.andryuk@xxxxxxx, christopher.w.clark@xxxxxxxxx, stefano.stabellini@xxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Fri, 15 Nov 2024 15:31:26 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 11/15/24 08:12, 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>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
---
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 12c19ab37bd8..3873f916f854 100644
--- a/xen/arch/x86/include/asm/bootdomain.h
+++ b/xen/arch/x86/include/asm/bootdomain.h
@@ -12,6 +12,8 @@ struct boot_module;
struct domain;
struct boot_domain {
+ domid_t domid;
There is no definition for domid_t in this file, the only reason it has
yet to fail, is that everywhere it is included has xen.h included before it.
v/r,
dps
|