From: Alejandro Vallejo <alejandro.garciavallejo@amd.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Alejandro Vallejo" <agarciav@amd.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Julien Grall" <julien@xen.org>,
"Bertrand Marquis" <bertrand.marquis@arm.com>,
"Michal Orzel" <michal.orzel@amd.com>,
"Daniel P. Smith" <dpsmith@apertussolutions.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v6 04/11] x86: Replace arch-specific boot_domain with the common one
Date: Thu, 10 Jul 2025 14:03:23 +0200 [thread overview]
Message-ID: <DB8CZG8VYIFT.1Q52IO1FABQS8@amd.com> (raw)
In-Reply-To: <c3fb542a-1585-4eed-aea5-99e9e0a30fd5@suse.com>
On Wed Jul 9, 2025 at 4:24 PM CEST, Jan Beulich wrote:
> On 08.07.2025 20:07, Alejandro Vallejo wrote:
>> --- a/xen/include/xen/bootfdt.h
>> +++ b/xen/include/xen/bootfdt.h
>> @@ -107,6 +107,10 @@ struct boot_domain {
>> struct boot_module *initrd;
>>
>> const char *cmdline;
>> +
>> +#if __has_include(<asm/bootfdt.h>)
>> + struct arch_boot_domain arch;
>> +#endif
>> };
>
> I fear I still don't follow this. In patch 1 you made domU a common-but-not-
> x86 field. Why can't domid, which is entirely generic, not similarly be a
> common-but-only-x86-for-now field? What is put in arch-specific structures
> should, in the common case at least, be truly (i.e. conceptually) be arch-
> specific imo.
>
> Jan
I tried to do the same with domU, but it's used by every other architecture so
it got silly adding the same code to 3 different arch-specific headers. I can
definitely move domid to the root structure under a similar ifdef.
Particularly when, as you very well point out, it's bound to be truly common
eventually.
Cheers,
Alejandro
next prev parent reply other threads:[~2025-07-10 12:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 18:07 [PATCH v6 00/11] Allow x86 to unflatten DTs Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 01/11] xen: Conditionally compile out the boot_module.domU Alejandro Vallejo
2025-07-08 18:39 ` Stefano Stabellini
2025-07-09 0:26 ` dmkhn
2025-07-08 18:07 ` [PATCH v6 02/11] x86: Replace arch-specific boot_module with common one Alejandro Vallejo
2025-07-09 14:18 ` Jan Beulich
2025-07-08 18:07 ` [PATCH v6 03/11] xen: Refactor kernel_info to have a header like boot_domain Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 04/11] x86: Replace arch-specific boot_domain with the common one Alejandro Vallejo
2025-07-09 14:24 ` Jan Beulich
2025-07-10 12:03 ` Alejandro Vallejo [this message]
2025-07-08 18:07 ` [PATCH v6 05/11] xen/dt: Move bootfdt functions to xen/bootfdt.h Alejandro Vallejo
2025-07-11 17:45 ` Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 06/11] xen/dt: Move bootinfo functions to a new bootinfo.h Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 07/11] xen/dt: Rename bootfdt.c -> bootinfo-fdt.c Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 08/11] xen/dt: Extract helper to map nodes to module kinds Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 09/11] xen: Split HAS_DEVICE_TREE in two Alejandro Vallejo
2025-07-08 18:44 ` Stefano Stabellini
2025-07-09 14:31 ` Jan Beulich
2025-07-08 18:07 ` [PATCH v6 10/11] xen/dt: ifdef out DEV_DT-related bits from device_tree.{c,h} Alejandro Vallejo
2025-07-08 18:07 ` [PATCH v6 11/11] xen/dt: Allow CONFIG_DEVICE_TREE_PARSE to include device-tree/ Alejandro Vallejo
2025-07-15 6:58 ` Orzel, Michal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB8CZG8VYIFT.1Q52IO1FABQS8@amd.com \
--to=alejandro.garciavallejo@amd.com \
--cc=agarciav@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=dpsmith@apertussolutions.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.