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

Re: [PATCH v5 02/44] x86/boot: move boot loader name to boot info


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 9 Oct 2024 20:55:28 -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=1728521731; 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=Cb8CBPgxOHEwT2ogu6FkgCi7AuroFre40ZlnSxb2vT4=; b=CrIbBO64fxXrpIEaQ/A6OD52IbU7STEfhmjCpVqQ02Mmw4eVXMgQ+bajMKCH2NFSOAw9/9ZfO9quww9C9X9RBkpS2QcQ9vPn7ZDEbbDzmfaBap6VmF7rg1cxWDAzyha+XuAgIUYMYs7ZQclXRDhtoukNjSyISpEMRSapFwjzpe8=
  • Arc-seal: i=1; a=rsa-sha256; t=1728521731; cv=none; d=zohomail.com; s=zohoarc; b=a7eU9MctOI2b/68+pPAg2+JzrAgk/CSyjRGy7Q2fSI7MbzZT2mp4GuXr2Ka8Vhwv+W8hPXqeGBYZ6f7oX8scTg/Ejbvc+jmgcDE1UBdZBdi/IOg3Q7K/y/VAHQCYkBdt+RkuDUki1H7PMFlualiKvuQuSfDQ4tsAsD/4C0yvzRw=
  • 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: Thu, 10 Oct 2024 00:55:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/9/24 11:07, Jan Beulich wrote:
On 06.10.2024 23:49, Daniel P. Smith wrote:
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -285,6 +285,9 @@ static struct boot_info __init 
*multiboot_fill_boot_info(unsigned long mbi_p)
bi->nr_modules = (mbi->flags & MBI_MODULES) ? mbi->mods_count : 0; + bi->loader = (mbi->flags & MBI_LOADERNAME) ?
+                            __va(mbi->boot_loader_name) : "unknown";

Either (noting that generally we exempt ?: from the operator-on-earlier-line
rule)

     bi->loader = (mbi->flags & MBI_LOADERNAME) ? __va(mbi->boot_loader_name)
                                                : "unknown";

or

     bi->loader = (mbi->flags & MBI_LOADERNAME)
                  ? __va(mbi->boot_loader_name) : "unknown";

or

     bi->loader = (mbi->flags & MBI_LOADERNAME)
         ? __va(mbi->boot_loader_name) : "unknown";

(in the order of my personal preference).

I would prefer the first as well. Will adjust.

v/r,
dps



 


Rackspace

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