On 23/11/2023 9:46 am, Luca Fancellu wrote: > >> On 22 Nov 2023, at 18:03, Andrew Cooper <[email protected]> wrote: >> >> On 22/11/2023 3:49 pm, Luca Fancellu wrote: >>>> On 21 Nov 2023, at 20:41, Andrew Cooper <[email protected]> wrote: >>>> >>>> On 21/11/2023 8:33 pm, Luca Fancellu wrote: >>>>> + CC henry >>>>> >>>>>> On 21 Nov 2023, at 20:15, Andrew Cooper <[email protected]> >>>>>> 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 <[email protected]> >>>>>> --- >>>>>> CC: Jan Beulich <[email protected]> >>>>>> CC: Roger Pau Monné <[email protected]> >>>>>> CC: Wei Liu <[email protected]> >>>>>> CC: Stefano Stabellini <[email protected]> >>>>>> CC: Julien Grall <[email protected]> >>>>>> CC: Volodymyr Babchuk <[email protected]> >>>>>> CC: Bertrand Marquis <[email protected]> >>>>>> CC: Roberto Bagnara <[email protected]> >>>>>> CC: Nicola Vetrini <[email protected]> >>>>>> >>>>>> 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 <[email protected]> >>> Tested-by: Luca Fancellu <[email protected]> >> Thanks, and you confirmed that the first cmdline parameter is still usable? > Yes, I’m using a xen.cfg like this: > > [global] > default=xen > > [xen] > options=noreboot dom0_mem=4096M bootscrub=0 iommu=on loglvl=error > guest_loglvl=error > kernel=Image console=hvc0 earlycon=xenboot rootwait > root=PARTUUID=6a60524d-061d-454a-bfd1-38989910eccd > > And in Xen boot I can see this: > > [...] > (XEN) Command line: noreboot dom0_mem=4096M bootscrub=0 iommu=on > loglvl=error guest_loglvl=error > [...] > > So I think it’s passing every parameter
Thankyou all for the testing. ~Andrew
