[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 41/44] x86/boot: add struct domain to struct boot_domain


  • To: Jason Andryuk <jason.andryuk@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 9 Oct 2024 20:47:19 -0400
  • 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=1728521242; 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=gZTkhOSk/kaV0obRoFr8A61Yu9lGE1AAoGmhvHhtnbY=; b=bnqe7aVHjEvT9C+L6kAtKkVu41ic0h04gWeydsM2ROdypBpxPdrHaj0BXY76aXEk95V74i4IZC+ye+V/fRDixYrDnql7HKPgC5b8vs0KUi9WTiPkZyeiZqo/PqT1PPrpjVvHGFC1gXH0/7zP0Tyw+LthajpYGv0Zh2ftynBfv3Y=
  • Arc-seal: i=1; a=rsa-sha256; t=1728521242; cv=none; d=zohomail.com; s=zohoarc; b=lY4iIpFbpJxkxh3GPB27gyUMyp4iNN7DsjBkjG/P1K2Spm2GRNKruwjjirJsj0qQzIaGoLUan27HZtCmGeHQONqXM98vXisHEQ/CoqrK999tFQ7QkRtyF3R18FDUn5h3KfH0t6Ku3+ONxOOrJjJylIpsUMycyjvAVp/6WC5DaRc=
  • 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: Thu, 10 Oct 2024 00:47:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/8/24 15:48, Jason Andryuk wrote:
On 2024-10-06 17:49, Daniel P. Smith wrote:
Store a reference to the created domain in struct boot_domain.

Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---

diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index f250638edf09..e6a231bd2d42 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -959,7 +959,6 @@ static struct domain *__init create_dom0(struct boot_info *bi)
          },
      };
      struct boot_domain *bd = &bi->domains[0];
-    struct domain *d;
      if ( opt_dom0_pvh )
      {
@@ -976,13 +975,13 @@ static struct domain *__init create_dom0(struct boot_info *bi)
      /* Create initial domain.  Not d0 for pvshim. */
      bd->domid = get_initial_domain_id();
-    d = domain_create(bd->domid, &dom0_cfg, pv_shim ? 0 : CDF_privileged);

It's a smaller patch if you keep `d` and the line above and then do:
        bd->d = d;

Yah, this can be done.

v/r,
dps



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.