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

Re: [PATCH v6 03/44] x86/boot: move cmdline to boot info


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 17 Oct 2024 18:38:01 -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=1729204684; 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=SsxxR4pG7Tb9BswiXQOBqaoRFK+ymUPoEw7YQ9yTCIk=; b=hRtuKqlqqrAClKCI4PUgRP14kZgGjUV+5TvSqJtqQy7dINoAd1jfcF7oUNBF8pXoxaPNbjLmg8wgNMVTS9NcoCfz5zN40iLHrPHjnMPk76aU+TAqbM3bQRJS+zb4T3AmCeYoSSKVb3Nc/UkwiDltu6SBv6NW9xihY0B5r2ZhLHs=
  • Arc-seal: i=1; a=rsa-sha256; t=1729204684; cv=none; d=zohomail.com; s=zohoarc; b=OZk80wssMq4KfAeyNi6IgfW0nYUZfU/IhMPAzMD9Btt7mBnuIAP0JuI/FoBEGH7m5+qg3aJGzP8uZYcHkne+0k/K6ekZMGjaQLXvBVtJrJELSq6+WoYXiSApAZ9q+SjEW6KOiSV4OUqtl5GwfFkWN+voParK/FHXsHB978PQ7oA=
  • Cc: jason.andryuk@xxxxxxx, christopher.w.clark@xxxxxxxxx, stefano.stabellini@xxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 17 Oct 2024 22:38:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/17/24 16:35, Andrew Cooper wrote:
On 17/10/2024 6:02 pm, Daniel P. Smith wrote:
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index eac0954f42b8..037cdd17386c 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -1035,11 +1043,7 @@ void asmlinkage __init noreturn __start_xen(unsigned 
long mbi_p)
bi = multiboot_fill_boot_info(mbi_p); - /* Parse the command-line options. */
-    if ( mbi->flags & MBI_CMDLINE )
-        cmdline = cmdline_cook(__va(mbi->cmdline), bi->loader);
-
-    if ( (kextra = strstr(cmdline, " -- ")) != NULL )
+    if ( (kextra = strstr(bi->cmdline, " -- ")) != NULL )

The /* Parse the command-line options. */ comment refers mostly to ...

      {
          /*
           * Options after ' -- ' separator belong to dom0.
@@ -1050,7 +1054,7 @@ void asmlinkage __init noreturn __start_xen(unsigned long 
mbi_p)
          kextra += 3;
          while ( kextra[1] == ' ' ) kextra++;
      }
-    cmdline_parse(cmdline);
+    cmdline_parse(bi->cmdline);

..., so should stay in place rather than moving into
multiboot_fill_boot_info().

Ack.

v/r,
dps



 


Rackspace

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