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

Re: [PATCH 03/15] x86/boot: add cmdline to struct boot_domain


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Tue, 10 Dec 2024 22:01:18 -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=1733886082; 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=yB8V84d+Bxgzr5yKILVDci8Mq4G8EyFx1FSObp71k5Q=; b=bPbuVN/RA9Cv4bBdBy+prxr3dkYHGEhtIL5aUvrwVrvcRYBqVuUqpBbOF2lGLdNRbZB622ElL4VZ8zNLsvu/8IXPBBjcZcR7Hdk40FIOQ74buIvlWcrQUr7L6Oo9LfbWfX7SAPLP5Aie4bcJQxv32Ea2NtrtWysORIJ/YtXKi3w=
  • Arc-seal: i=1; a=rsa-sha256; t=1733886082; cv=none; d=zohomail.com; s=zohoarc; b=VMMjOSTRr2vvppv2ZbRLUfLWUuvNfg9lyxQn20QN1d24SJhGWzsyl+LQ/FQer6D4+MbdasxdFLhAhzChNw3Wk5hjBSun6p33Rb8i1QPT4aFlqvHPooEfyWBNVl/ysomyc78/NXNAhLrgHFpJlCrtEecmsle1Eke3076w7WbLLxA=
  • Cc: jason.andryuk@xxxxxxx, christopher.w.clark@xxxxxxxxx, stefano.stabellini@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 11 Dec 2024 03:01:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 12/2/24 04:49, Jan Beulich wrote:
On 23.11.2024 19:20, Daniel P. Smith wrote:
--- a/xen/arch/x86/hvm/dom0_build.c
+++ b/xen/arch/x86/hvm/dom0_build.c
@@ -644,9 +644,11 @@ static bool __init check_and_adjust_load_address(
  }
static int __init pvh_load_kernel(
-    struct domain *d, struct boot_module *image, struct boot_module *initrd,
-    paddr_t *entry, paddr_t *start_info_addr)
+    struct boot_domain *bd, paddr_t *entry, paddr_t *start_info_addr)
  {
+    struct domain *d = bd->d;
+    struct boot_module *image = bd->kernel;
+    struct boot_module *initrd = bd->ramdisk;
      void *image_base = bootstrap_map_bm(image);
      void *image_start = image_base + image->headroom;
      unsigned long image_len = image->size;
@@ -1304,14 +1306,12 @@ static void __hwdom_init pvh_setup_mmcfg(struct domain 
*d)
  int __init dom0_construct_pvh(struct boot_domain *bd)
  {
      paddr_t entry, start_info;
-    struct boot_module *image = bd->kernel;
-    struct boot_module *initrd = bd->ramdisk;
      struct domain *d = bd->d;
      int rc;
printk(XENLOG_INFO "*** Building a PVH Dom%d ***\n", d->domain_id); - if ( image == NULL )
+    if ( bd->kernel == NULL )
          panic("Missing kernel boot module for %pd construction\n", d);
if ( is_hardware_domain(d) )
@@ -1351,7 +1351,7 @@ int __init dom0_construct_pvh(struct boot_domain *bd)
          return rc;
      }
- rc = pvh_load_kernel(d, image, initrd, &entry, &start_info);
+    rc = pvh_load_kernel(bd, &entry, &start_info);
      if ( rc )
      {
          printk("Failed to load Dom0 kernel\n");

None of this looks command line related - do these changes rather belong into
patch 1?

Hmmm, yah, it looks like it. This must have been a cherry-pick artifact that I missed when updating these commits on top of the version from the boot module reviews. I will review and move/drop the chunks.

v/r,
dps





 


Rackspace

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