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

Re: [PATCH v5 36/44] x86/boot: remove remaining early_mod references


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 9 Oct 2024 19:42:54 -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=1728517378; 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=qyC08CdODhZj8RVx6TF3gtfgjUytTLbNVkzSL5HWZzE=; b=A+1Ij08ekBJns9hoZP4kR61hUYgAxaUjQ/Ge3cQAXNO1Fuwwadga1mMH8HANLKalbuJ/HdXXuNE9rFAHAYht034Bw13mjPoIslJnca4vu9q+lvErNQ3edMy3JdZqzqo0nex4yTULR2vvNq8H1yYLDf+5yEbTFU0q/a8N32HpW9Q=
  • Arc-seal: i=1; a=rsa-sha256; t=1728517378; cv=none; d=zohomail.com; s=zohoarc; b=BTpm3aCLzfSJL/phcwNY+GLhBEwxOAO4MBH68OXg7nrG4FWC9ahH6RzIxLRpf5gCICKpF/6RyMu61Lj3XjzB/OM3ySCoz3iVvplSriUGFuRzEAPYOQtvQpqZcxGMX5qng18434BH8rbsWjCByAayPyDBc5AQ6B3JIH+E1wgoOxY=
  • Cc: christopher.w.clark@xxxxxxxxx, stefano.stabellini@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 09 Oct 2024 23:43:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/9/24 02:53, Jan Beulich wrote:
On 08.10.2024 21:15, Jason Andryuk wrote:
On 2024-10-06 17:49, Daniel P. Smith wrote:
Any direct usages of struct mod have been transitioned, remove the remaining
references to early_mod fields.

This is unclear, please try to re-word.  "struct mod" and "early_mod"
don't exist.

Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
   xen/arch/x86/setup.c | 31 +++++++++++--------------------
   1 file changed, 11 insertions(+), 20 deletions(-)

diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index e9e3da3204f1..0ffe8d3ff8dd 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c

@@ -1404,16 +1401,12 @@ void asmlinkage __init noreturn __start_xen(unsigned 
long mbi_p)
            */
           bi->mods[xen].start = virt_to_mfn(_stext);
           bi->mods[xen].size = __2M_rwdata_end - _stext;
-
-        bi->mods[xen].mod->mod_start = bi->mods[xen].start;
-        bi->mods[xen].mod->mod_end = bi->mods[xen].size;
       }
- bi->mods[0].headroom =
-        bzimage_headroom(bootstrap_map(bi->mods[0].mod),
-                         bi->mods[0].mod->mod_end);
-
-    bootstrap_map(NULL);
+    bi->mods[0].headroom = bzimage_headroom(
+                        bootstrap_map_bm(&bi->mods[0]),
+                        bi->mods[0].size);

Thunderbird might corrupt this, bit the above can fit on two lines:
      bi->mods[0].headroom = bzimage_headroom(bootstrap_map_bm(&bi->mods[0]),
                                              bi->mods[0].size);

Or else at least indentation wants to change, to one of the two possible
forms:

     bi->mods[0].headroom = bzimage_headroom(
         bootstrap_map_bm(&bi->mods[0]),
         bi->mods[0].size);

(indentation increased by a level from the start of the statement) or

     bi->mods[0].headroom = bzimage_headroom(
                                bootstrap_map_bm(&bi->mods[0]),
                                bi->mods[0].size);

(indentation by one level biased from the start of the function call).
Personally, if already wrapping like this, I'd prefer the former.

I agree with you, the former is more pleasing, though wouldn't line 3 fit on line 2?

v/r,
dps



 


Rackspace

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