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

Re: [PATCH 10/19] x86: Replace boot_module with bootmodule


  • To: Alejandro Vallejo <agarciav@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Thu, 5 Jun 2025 19:40:04 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vimpMPdHYL+YnBg+U0CubumFa/MHj4vNVUVgGMMZS2M=; b=GadJzo62gFhEzZD8z6sfH4Exfg+u0hw50bgr5jqqW7pqgNDdcfcVDaQ/EpPc8TZxjrctY7XjxhOJn3u0ZBOFeF5SbRDOAolLdbCH2+gTc9CsCzj+cs6F0BcI33MBhTI2u2Q8YqUoKgA9afBRSakZZ1XQetqunCB8IaGyi66jeTl3BRX8gnR/ceteL+bPAOl3W81O3RNcvPQ4ztM1+J18wASZl6s4zgsnzsU+k+k1EJ2n4wn1CsfCjDFJS4xdAZRGrlEbEp0wOuFPGsxlCOknnT1RaOhNLzg2s8sxU7sna4EcS0F01pmO52fJG8jTitW16bmvoDCG89G5j7ZGwAomhA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TZ3Pv6SgxG19IwwD1YTqrWyRSpU+e2H/ZgVQgv6ydlHH+CDpe1qwKdQhSluc9xCaJ1bcBrcc1OJR9ziOvaQVHtqf7VkkOMFtceyagyxERE8EvIqE6MdLVoiVpghestijsq7OO+U9GtoVzcChjEJV3bEL8RzWByygGqs/gGlhWefz63xJ8/BYOwxHLkGpooG/mY048RBuPqMzKg20hulVLqCkzqRBl5wxJWnVKQVzdEnmDhkf/nszatKwEXcglMrB2qz9hcQjqdYB4doYnGM+CnZjQTVpFAXAjZuSq9Iw64+BBkX6ej9ZEZHNn5oLx+WI6a5cEiO5DTo6+6e/jCHvxw==
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Michal Orzel" <michal.orzel@xxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 05 Jun 2025 17:40:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu Jun 5, 2025 at 7:28 PM CEST, Alejandro Vallejo wrote:
> On Mon Jun 2, 2025 at 7:00 PM CEST, Andrew Cooper wrote:
>> On 30/05/2025 1:02 pm, Alejandro Vallejo wrote:
>>> These types resemble each other very closely in layout and intent, and
>>> with "struct bootmodule" already in common code it makes perfect sense
>>> to merge them. In order to do so, add an arch-specific area for
>>> x86-specific tidbits.
>>>
>>> Signed-off-by: Alejandro Vallejo <agarciav@xxxxxxx>
>>
>> Yet this is a distinct backwards step in terms of legibility.
>>
>> How about modifying the common code to be more legible, rather than
>> regressing the x86 code.
>>
>> ~Andrew
>
> I meant to ifdef out the fields unused on x86, but after some massaging I
> think I got it lookin much nicer. It's essentially using the common parts of
> kernel_info and boot_domain as a header to kernel_info.
>
> That way, x86 keeps using a substantially smaller (yet common) data structure
> while the rest of dom0less can keep using the original as-is.
>
> Refactoring kernel_info to rationalise its contents is somewhere in my TODO
> list, but I have much more urgent fish to fry first.
>
> Cheers,
> Alejandro

... I misread the comment and thought it was in the following patch rather than 
this one.

If it was indeed intended here, I'm at a loss as to what you'd rather do.
Common bindings need a common ground. This is such ground. The data structures
are virtually identical and used for identical purposes.

What's the legibility step you're talking about?

If not in this form, then in another, but I do need some data structure
understandable on every architecture for this very use or hooking dom0less
binding support from common in a non-hacky way becomes impossible.

Cheers,
Alejandro



 


Rackspace

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