From: Alejandro Vallejo <agarciav@amd.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Daniel P. Smith" <dpsmith@apertussolutions.com>,
"Jason Andryuk" <jason.andryuk@amd.com>,
"Xenia Ragiadakou" <xenia.ragiadakou@amd.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Michal Orzel" <michal.orzel@amd.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v3 11/16] x86/hyperlaunch: locate dom0 initrd with hyperlaunch
Date: Tue, 15 Apr 2025 12:59:09 +0100 [thread overview]
Message-ID: <D9771CIVB3IR.TAKEYOHRCY30@amd.com> (raw)
In-Reply-To: <60363eb4-cb35-4077-b964-0c321c495a19@suse.com>
On Tue Apr 15, 2025 at 7:17 AM BST, Jan Beulich wrote:
> On 14.04.2025 19:27, Alejandro Vallejo wrote:
>> On Mon Apr 14, 2025 at 6:06 PM BST, Alejandro Vallejo wrote:
>>> On Thu Apr 10, 2025 at 12:34 PM BST, Jan Beulich wrote:
>>>> On 08.04.2025 18:07, Alejandro Vallejo wrote:
>>>>
>>>>> + printk(" ramdisk: boot module %d\n", idx);
>>>>> + bi->mods[idx].type = BOOTMOD_RAMDISK;
>>>>> + bd->module = &bi->mods[idx];
>>>>
>>>> The field's named "module" now, but that now ends up inconsistent with
>>>> naming used elsewhere, as is pretty noticeable here.
>>>
>>> Well, yes. It is confusing. Also, the DTB is called multiboot,ramdisk,
>>> because multiboot,module is already used to detect what nodes are
>>> expressed as multiboot,modules. I'm considering going back and calling
>>> them ramdisk again. If anything, to avoid the ambiguity between
>>> domain modules and multiboot modules. e.g: a kernel is a multiboot
>>> module, but not a domain module.
>>
>> Particularly when misc/arm/device-tree/booting.txt already states that
>> the initrd for dom0 ought to be provided with the "multiboot,ramdisk"
>> string in the "compatible" prop. Deviating from that is just going to
>> make it far more annoying to unify arm and x86 in the future. And
>> calling those ramdisks anything but ramdisk internally is just plain
>> confusing (as evidenced in the current series).
>
> Yet the limitation of this is quite obvious: How would you express
> multiple such items?
With multiple such nodes.
initrd1 {
compatible = "multiboot,ramdisk", "multiboot,module"
module-idx = <2>
};
initrd2 {
compatible = "multiboot,ramdisk", "multiboot,module"
module-idx = <3>
};
as is done in dom0less. This is not a hypothetical, it's already
comitted.
> Have many "ramdisk"s?
As many as I require. If I was booting Xen(dom0+initrd) on
Xen(hyperlaunch), that'd be 2 (with Xen passed as the kernel).
> Even if some of them serve an entirely different purpose?
The purpose of a ramdisk/initrd is of no concern to the hypervisor. They are
specially crafted blobs consumed by kernels for purposes of bootstrap.
> See how Linux has gone to tuck together multiple CPIOs, as they can
> have only one thing called "ramdisk" (which, aiui, now no longer truly
> is).
That's an internal Linux matter. If they need 1, we'll pass 1. We do
need several such blobs, because some OSs do need them. Namely, Xen. And
AFAICS we call them modules mostly because (a) Xen does not have the
module infrastructure that Linux has, which would causes ambiguities and
(b) is typically loaded via multiboot, which does call each blob a
module.
>
>> So... how frontally opposed would you be to restoring the ramdisk
>> nomenclature? Also, for ease of rebasing future patches it'd be far
>> nicer to go back to ramdisk rather than reinventing some new name.
>
> Well, I fear I wouldn't ack such a patch. If everyone else agrees
> that "ramdisk" is the best of all names (or at least getting close),
> I'd perhaps mumble over, but let it go in.
Ok... When I send v4 I'll do so keeping the "module" rename. Meanwhile,
I'll try to think of some options. Calling Xen's modules and the booted
kernel modules the same way is just way too confusing.
I take it you have the same dislike for initrd as you do for ramdisk?
>
> (Only partly as a joke: If we dislike "module", how about "blob" or
> some such?)
Better not. Blob makes "kernel" sound like an adjective: Kernel blob.
There might be some other suitable word. I'll think about it.
Cheers,
Alejandro
next prev parent reply other threads:[~2025-04-15 11:59 UTC|newest]
Thread overview: 128+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 16:07 [PATCH v3 00/16] Hyperlaunch device tree for dom0 Alejandro Vallejo
2025-04-08 16:07 ` [PATCH v3 01/16] x86/boot: introduce boot domain Alejandro Vallejo
2025-04-09 6:24 ` Jan Beulich
2025-04-09 10:28 ` Alejandro Vallejo
2025-04-10 13:13 ` Daniel P. Smith
2025-04-10 20:56 ` Jason Andryuk
2025-04-10 13:09 ` Daniel P. Smith
2025-04-10 15:01 ` Jan Beulich
2025-04-10 20:56 ` Jason Andryuk
2025-04-16 13:02 ` Daniel P. Smith
2025-04-16 13:33 ` Jan Beulich
2025-04-16 14:00 ` Daniel P. Smith
2025-04-16 14:06 ` Jan Beulich
2025-04-16 15:01 ` Daniel P. Smith
2025-04-08 16:07 ` [PATCH v3 02/16] x86/boot: introduce domid field to struct boot_domain Alejandro Vallejo
2025-04-09 6:34 ` Jan Beulich
2025-04-09 10:33 ` Alejandro Vallejo
2025-04-10 16:18 ` Jason Andryuk
2025-04-08 16:07 ` [PATCH v3 03/16] x86/boot: add cmdline " Alejandro Vallejo
2025-04-09 6:48 ` Jan Beulich
2025-04-09 11:11 ` Alejandro Vallejo
2025-04-09 11:28 ` Alejandro Vallejo
2025-04-09 14:13 ` Jan Beulich
2025-04-09 14:00 ` Jan Beulich
2025-04-09 21:05 ` Denis Mukhin
2025-04-10 12:02 ` Alejandro Vallejo
2025-04-08 16:07 ` [PATCH v3 04/16] kconfig: introduce option to independently enable libfdt Alejandro Vallejo
2025-04-09 18:57 ` Denis Mukhin
2025-04-10 12:05 ` Alejandro Vallejo
2025-04-10 9:04 ` Jan Beulich
2025-04-10 12:04 ` Alejandro Vallejo
2025-04-08 16:07 ` [PATCH v3 05/16] kconfig: introduce domain builder config option Alejandro Vallejo
2025-04-10 9:08 ` Jan Beulich
2025-04-10 12:52 ` Alejandro Vallejo
2025-04-10 12:57 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 06/16] x86/hyperlaunch: introduce the domain builder Alejandro Vallejo
2025-04-09 18:53 ` Denis Mukhin
2025-04-10 7:49 ` Jan Beulich
2025-04-10 13:01 ` Alejandro Vallejo
2025-04-10 9:39 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 07/16] x86/hyperlaunch: initial support for hyperlaunch device tree Alejandro Vallejo
2025-04-10 10:10 ` Jan Beulich
2025-04-10 14:50 ` Alejandro Vallejo
2025-04-08 16:07 ` [PATCH v3 08/16] x86/hyperlaunch: Add helpers to locate multiboot modules Alejandro Vallejo
2025-04-10 10:42 ` Jan Beulich
2025-04-14 13:37 ` Alejandro Vallejo
2025-04-14 15:05 ` Jan Beulich
2025-04-14 18:01 ` Alejandro Vallejo
2025-04-15 6:05 ` Jan Beulich
2025-04-15 11:30 ` Alejandro Vallejo
2025-04-16 16:55 ` Nicola Vetrini
2025-04-17 11:50 ` Alejandro Vallejo
2025-04-14 19:09 ` Nicola Vetrini
2025-04-08 16:07 ` [PATCH v3 09/16] x86/hyperlaunch: locate dom0 kernel with hyperlaunch Alejandro Vallejo
2025-04-09 21:24 ` Denis Mukhin
2025-04-14 13:56 ` Alejandro Vallejo
2025-04-10 10:58 ` Jan Beulich
2025-04-14 13:58 ` Alejandro Vallejo
2025-04-08 16:07 ` [PATCH v3 10/16] x86/hyperlaunch: obtain cmdline from device tree Alejandro Vallejo
2025-04-09 22:04 ` Denis Mukhin
2025-04-14 14:54 ` Alejandro Vallejo
2025-04-10 11:12 ` Jan Beulich
2025-04-14 14:23 ` Alejandro Vallejo
2025-04-14 15:09 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 11/16] x86/hyperlaunch: locate dom0 initrd with hyperlaunch Alejandro Vallejo
2025-04-09 22:07 ` Denis Mukhin
2025-04-14 15:03 ` Alejandro Vallejo
2025-04-10 11:34 ` Jan Beulich
2025-04-14 17:06 ` Alejandro Vallejo
2025-04-14 17:27 ` Alejandro Vallejo
2025-04-15 6:17 ` Jan Beulich
2025-04-15 11:59 ` Alejandro Vallejo [this message]
2025-04-15 14:11 ` Jan Beulich
2025-04-16 13:19 ` Daniel P. Smith
2025-04-15 6:12 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 12/16] x86/hyperlaunch: add domain id parsing to domain config Alejandro Vallejo
2025-04-09 22:15 ` Denis Mukhin
2025-04-14 18:07 ` Alejandro Vallejo
2025-04-15 0:28 ` Stefano Stabellini
2025-04-15 6:21 ` Jan Beulich
2025-04-15 11:37 ` Alejandro Vallejo
2025-04-15 14:13 ` Jan Beulich
2025-04-10 11:49 ` Jan Beulich
2025-04-14 18:35 ` Alejandro Vallejo
2025-04-15 6:27 ` Jan Beulich
2025-04-15 12:05 ` Alejandro Vallejo
2025-04-15 14:16 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 13/16] x86/hyperlaunch: specify dom0 mode with device tree Alejandro Vallejo
2025-04-09 22:24 ` Denis Mukhin
2025-04-10 11:55 ` Jan Beulich
2025-04-14 18:45 ` Alejandro Vallejo
2025-04-10 11:57 ` Jan Beulich
2025-04-16 13:32 ` Daniel P. Smith
2025-04-16 13:38 ` Jan Beulich
2025-04-16 14:09 ` Daniel P. Smith
2025-04-16 14:24 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 14/16] x86/hyperlaunch: add memory parsing to domain config Alejandro Vallejo
2025-04-09 22:29 ` Denis Mukhin
2025-04-14 18:49 ` Alejandro Vallejo
2025-04-10 12:03 ` Jan Beulich
2025-04-14 18:59 ` Alejandro Vallejo
2025-04-16 13:37 ` Daniel P. Smith
2025-04-16 13:41 ` Jan Beulich
2025-04-16 14:12 ` Daniel P. Smith
2025-04-16 14:27 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 15/16] x86/hyperlaunch: add max vcpu parsing of hyperlaunch device tree Alejandro Vallejo
2025-04-09 22:33 ` Denis Mukhin
2025-04-14 19:07 ` Alejandro Vallejo
2025-04-10 12:08 ` Jan Beulich
2025-04-14 19:12 ` Alejandro Vallejo
2025-04-16 13:42 ` Daniel P. Smith
2025-04-16 13:54 ` Alejandro Vallejo
2025-04-16 14:16 ` Daniel P. Smith
2025-04-16 13:54 ` Jan Beulich
2025-04-16 14:19 ` Daniel P. Smith
2025-04-16 14:31 ` Jan Beulich
2025-04-08 16:07 ` [PATCH v3 16/16] x86/hyperlaunch: add capabilities to boot domain Alejandro Vallejo
2025-04-09 22:39 ` Denis Mukhin
2025-04-14 19:17 ` Alejandro Vallejo
2025-04-10 12:18 ` Jan Beulich
2025-04-14 19:31 ` Alejandro Vallejo
2025-04-15 6:38 ` Jan Beulich
2025-04-15 12:22 ` Alejandro Vallejo
2025-04-15 14:20 ` Jan Beulich
2025-04-10 12:18 ` Jan Beulich
2025-04-09 6:29 ` [PATCH v3 00/16] Hyperlaunch device tree for dom0 Jan Beulich
2025-04-09 10:19 ` Alejandro Vallejo
2025-04-09 10:39 ` Alejandro Vallejo
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=D9771CIVB3IR.TAKEYOHRCY30@amd.com \
--to=agarciav@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=dpsmith@apertussolutions.com \
--cc=jason.andryuk@amd.com \
--cc=jbeulich@suse.com \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xenia.ragiadakou@amd.com \
/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.