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 <[email protected]>
Reviewed-by: Jason Andryuk <[email protected]>
---
  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

Reply via email to