From: "Daniel P. Smith" <dpsmith@apertussolutions.com>
To: Jason Andryuk <jason.andryuk@amd.com>, xen-devel@lists.xenproject.org
Cc: christopher.w.clark@gmail.com, stefano.stabellini@amd.com,
"Jan Beulich" <jbeulich@suse.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH 09/15] x86/hyperlaunch: obtain cmdline from device tree
Date: Wed, 11 Dec 2024 10:46:10 -0500 [thread overview]
Message-ID: <e735e4cf-e6c8-453c-8491-e010d9dfdc82@apertussolutions.com> (raw)
In-Reply-To: <b5799558-c9fd-4e45-819e-15157e4451fe@amd.com>
On 11/25/24 18:12, Jason Andryuk wrote:
> On 2024-11-23 13:20, Daniel P. Smith wrote:
>> If a command line is not provided through the bootloader's mechanism,
>> e.g.
>> muiltboot module string field, then use one from the device tree if
>> present.
>> The device tree command line is located in the bootargs property of the
>> `multiboot,kernel` node.
>>
>> Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
>> ---
>> xen/arch/x86/domain_builder/core.c | 28 +++++++++++++++++++
>> xen/arch/x86/domain_builder/fdt.c | 34 ++++++++++++++++++++++++
>> xen/arch/x86/domain_builder/fdt.h | 24 +++++++++++++++++
>> xen/arch/x86/include/asm/bootinfo.h | 6 +++--
>> xen/arch/x86/include/asm/domainbuilder.h | 4 +++
>> xen/arch/x86/setup.c | 10 +++++--
>> 6 files changed, 102 insertions(+), 4 deletions(-)
>>
>> diff --git a/xen/arch/x86/domain_builder/core.c b/xen/arch/x86/
>> domain_builder/core.c
>> index 9335f3a9ebef..95cab06e6159 100644
>> --- a/xen/arch/x86/domain_builder/core.c
>> +++ b/xen/arch/x86/domain_builder/core.c
>> @@ -8,9 +8,37 @@
>> #include <xen/lib.h>
>> #include <asm/bootinfo.h>
>> +#include <asm/setup.h>
>> #include "fdt.h"
>> +size_t __init builder_get_cmdline_size(struct boot_info *bi, int offset)
>> +{
>> +#ifdef CONFIG_DOMAIN_BUILDER
>
> I wasnted to suggest:
>
> if ( !IS_ENABLED(CONFIG_DOMAIN_BUILDER) )
> return 0;
>
> but that fails to compile for a missing fdt_cmdline_prop_size().
Yes, I wanted to do the same as well.
>> + const void *fdt = bootstrap_map_bm(&bi-
>> >mods[HYPERLAUNCH_MODULE_IDX]);
>> + int size = fdt_cmdline_prop_size(fdt, offset);
>> +
>> + bootstrap_unmap();
>> + return size < 0 ? 0 : (size_t) size;
>> +#else
>> + return 0;
>> +#endif
>> +}
>> +
>> +int __init builder_get_cmdline(
>> + struct boot_info *bi, int offset, char *cmdline, size_t size)
>> +{
>> +#ifdef CONFIG_DOMAIN_BUILDER
>
> and here fdt_cmdline_prop_copy(). I'm not sure the addition of more
> stubs offsets these ifdefs, so:
>
> Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Thanks!
v/r,
dps
next prev parent reply other threads:[~2024-12-11 15:46 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 18:20 [PATCH 00/15] Hyperlaunch device tree for dom0 Daniel P. Smith
2024-11-23 18:20 ` [PATCH 01/15] x86/boot: introduce boot domain Daniel P. Smith
2024-12-02 9:57 ` Jan Beulich
2024-12-04 19:16 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 02/15] x86/boot: introduce domid field to struct boot_domain Daniel P. Smith
2024-11-23 18:20 ` [PATCH 03/15] x86/boot: add cmdline " Daniel P. Smith
2024-11-25 15:36 ` Jason Andryuk
2024-12-11 2:56 ` Daniel P. Smith
2024-12-02 9:49 ` Jan Beulich
2024-12-11 3:01 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 04/15] kconfig: introduce option to independently enable libfdt Daniel P. Smith
2024-11-25 15:42 ` Jason Andryuk
2024-12-11 3:03 ` Daniel P. Smith
2024-11-26 10:03 ` Jan Beulich
2024-11-26 10:05 ` Jan Beulich
2024-12-11 3:05 ` Daniel P. Smith
2024-12-11 3:04 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 05/15] kconfig: introduce domain builder config option Daniel P. Smith
2024-11-25 17:55 ` Jason Andryuk
2024-12-11 3:13 ` Daniel P. Smith
2024-11-26 10:09 ` Jan Beulich
2024-12-11 3:15 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 06/15] x86/hyperlaunch: introduce the domain builder Daniel P. Smith
2024-11-25 17:52 ` Jason Andryuk
2024-11-25 20:23 ` Jason Andryuk
2024-12-02 9:55 ` Jan Beulich
2024-12-02 15:31 ` Jason Andryuk
2024-12-11 11:14 ` Daniel P. Smith
2024-12-02 10:10 ` Jan Beulich
2024-12-11 12:36 ` Daniel P. Smith
2024-12-12 11:06 ` Jan Beulich
2024-12-12 15:24 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 07/15] x86/hyperlaunch: initial support for hyperlaunch device tree Daniel P. Smith
2024-11-25 20:11 ` Jason Andryuk
2024-12-11 12:49 ` Daniel P. Smith
2024-12-02 11:37 ` Jan Beulich
2024-12-11 12:55 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 08/15] x86/hyperlaunch: locate dom0 kernel with hyperlaunch Daniel P. Smith
2024-11-25 22:54 ` Jason Andryuk
2024-12-11 14:19 ` Daniel P. Smith
2024-12-02 11:53 ` Jan Beulich
2024-12-11 15:41 ` Daniel P. Smith
2024-12-12 11:25 ` Jan Beulich
2024-11-23 18:20 ` [PATCH 09/15] x86/hyperlaunch: obtain cmdline from device tree Daniel P. Smith
2024-11-25 23:12 ` Jason Andryuk
2024-12-11 15:46 ` Daniel P. Smith [this message]
2024-11-23 18:20 ` [PATCH 10/15] x86/hyperlaunch: locate dom0 initrd with hyperlaunch Daniel P. Smith
2024-11-25 23:34 ` Jason Andryuk
2024-12-11 15:49 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 11/15] x86/hyperlaunch: add domain id parsing to domain config Daniel P. Smith
2024-11-25 23:45 ` Jason Andryuk
2024-12-02 12:00 ` Jan Beulich
2024-12-11 16:07 ` Daniel P. Smith
2024-12-11 16:06 ` Daniel P. Smith
2024-12-02 12:02 ` Jan Beulich
2024-12-11 16:21 ` Daniel P. Smith
2024-12-19 16:40 ` Daniel P. Smith
2024-11-23 18:20 ` [PATCH 12/15] x86/hyperlaunch: specify dom0 mode with device tree Daniel P. Smith
2024-11-25 23:52 ` Jason Andryuk
2024-12-11 16:24 ` Daniel P. Smith
2024-12-02 12:05 ` Jan Beulich
2024-12-11 16:31 ` Daniel P. Smith
2024-12-02 12:06 ` Jan Beulich
2024-12-11 17:48 ` Daniel P. Smith
2024-12-12 11:31 ` Jan Beulich
2024-11-23 18:20 ` [PATCH 13/15] x86/hyperlaunch: add memory parsing to domain config Daniel P. Smith
2024-11-26 0:03 ` Jason Andryuk
2024-12-11 17:59 ` Daniel P. Smith
2024-12-26 16:16 ` Daniel P. Smith
2024-12-02 12:14 ` Jan Beulich
2024-12-11 18:02 ` Daniel P. Smith
2024-12-12 11:34 ` Jan Beulich
2024-11-23 18:20 ` [PATCH 14/15] x86/hyperlaunch: add max vcpu parsing of hyperlaunch device tree Daniel P. Smith
2024-11-26 0:05 ` Jason Andryuk
2024-12-11 18:05 ` Daniel P. Smith
2024-12-02 12:19 ` Jan Beulich
2024-12-11 19:49 ` Daniel P. Smith
2024-12-12 11:37 ` Jan Beulich
2024-11-23 18:20 ` [PATCH 15/15] x86/hyperlaunch: add capabilities to boot domain Daniel P. Smith
2024-11-26 0:09 ` Jason Andryuk
2024-12-11 19:51 ` Daniel P. Smith
2024-12-02 12:23 ` Jan Beulich
2024-12-11 19:56 ` Daniel P. Smith
2024-12-12 11:40 ` Jan Beulich
2024-11-26 0:11 ` [PATCH 00/15] Hyperlaunch device tree for dom0 Jason Andryuk
2024-12-11 19:57 ` Daniel P. Smith
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=e735e4cf-e6c8-453c-8491-e010d9dfdc82@apertussolutions.com \
--to=dpsmith@apertussolutions.com \
--cc=andrew.cooper3@citrix.com \
--cc=christopher.w.clark@gmail.com \
--cc=jason.andryuk@amd.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=stefano.stabellini@amd.com \
--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.