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

Re: [PATCH v2 4/5] arm/efi: Simplify efi_arch_handle_cmdline()



On Wed, 22 Nov 2023, Andrew Cooper wrote:
> On 22/11/2023 3:49 pm, Luca Fancellu wrote:
> >
> >> On 21 Nov 2023, at 20:41, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> >>
> >> On 21/11/2023 8:33 pm, Luca Fancellu wrote:
> >>> + CC henry
> >>>
> >>>> On 21 Nov 2023, at 20:15, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> 
> >>>> wrote:
> >>>>
> >>>> -Wwrite-strings is unhappy with assigning "xen" to a mutable pointer, 
> >>>> but this
> >>>> logic looks incorrect.  It was inherited from the x86 side, where the 
> >>>> logic
> >>>> was redundant and has now been removed.
> >>>>
> >>>> In the ARM case it inserts the image name into "xen,xen-bootargs" and 
> >>>> there is
> >>>> no logic at all to strip this before parsing it as the command line.
> >>>>
> >>>> The absence of any logic to strip an image name suggests that it 
> >>>> shouldn't
> >>>> exist there, or having a Xen image named e.g. "hmp-unsafe" in the 
> >>>> filesystem
> >>>> is going to lead to some unexpected behaviour on boot.
> >>>>
> >>>> No functional change.
> >>>>
> >>>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> >>>> ---
> >>>> CC: Jan Beulich <JBeulich@xxxxxxxx>
> >>>> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> >>>> CC: Wei Liu <wl@xxxxxxx>
> >>>> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> >>>> CC: Julien Grall <julien@xxxxxxx>
> >>>> CC: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> >>>> CC: Bertrand Marquis <bertrand.marquis@xxxxxxx>
> >>>> CC: Roberto Bagnara <roberto.bagnara@xxxxxxxxxxx>
> >>>> CC: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
> >>>>
> >>>> v2:
> >>>> * New.
> >>>>
> >>>> I'm afraid that all of this reasoning is based on reading the source 
> >>>> code.  I
> >>>> don't have any way to try this out in a real ARM UEFI environment.
> >>> I will test this one tomorrow on an arm board
> > I confirm that booting though UEFI on an arm board works
> >
> > Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>
> > Tested-by: Luca Fancellu <luca.fancellu@xxxxxxx>
> 
> Thanks, and you confirmed that the first cmdline parameter is still usable?

Assuming Luca or Henry come back with a confirmation that the first
command line parameter is still passed through correctly:

Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>

 


Rackspace

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