All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Fancellu <luca.fancellu@arm.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Bertrand Marquis <bertrand.marquis@arm.com>,
	wei.chen@arm.com, Stefano Stabellini <sstabellini@kernel.org>,
	Julien Grall <julien@xen.org>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH v4 2/3] arm/efi: Use dom0less configuration when using EFI boot
Date: Fri, 1 Oct 2021 16:13:37 +0100	[thread overview]
Message-ID: <55D6C05A-C0B4-4503-A7F8-D0BA11E0779B@arm.com> (raw)
In-Reply-To: <ce8e7fda-4d74-4bce-78bd-387f9b7a395f@suse.com>



> On 1 Oct 2021, at 15:22, Jan Beulich <jbeulich@suse.com> wrote:
> 
> On 01.10.2021 15:55, Luca Fancellu wrote:
>>> On 1 Oct 2021, at 12:02, Jan Beulich <jbeulich@suse.com> wrote:
>>> On 30.09.2021 16:28, Luca Fancellu wrote:
>>>> @@ -1361,12 +1361,30 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
>>>>        efi_bs->FreePages(cfg.addr, PFN_UP(cfg.size));
>>>>        cfg.addr = 0;
>>>> 
>>>> -        dir_handle->Close(dir_handle);
>>>> -
>>>>        if ( gop && !base_video )
>>>>            gop_mode = efi_find_gop_mode(gop, cols, rows, depth);
>>>>    }
>>>> 
>>>> +#ifdef CONFIG_HAS_DEVICE_TREE
>>>> +    /* Get the number of boot modules specified on the DT or an error (<0) */
>>>> +    dt_modules_found = efi_arch_check_dt_boot(dir_handle);
>>>> +#endif
>>> 
>>> So I had asked to add a stub enclosed in such an #ifdef, to avoid the
>>> #ifdef here. I may be willing to let you keep things as you have them
>>> now, but I'd like to understand why you've picked that different
>>> approach despite the prior discussion.
>> 
>> There must be a misunderstanding, your message in the v3 was:
>> 
>> "Every time I see this addition I'm getting puzzled. As a result I'm
>> afraid I now need to finally ask you to do something about this (and
>> I'm sorry for doing so only now). There would better be no notion of
>> DT in x86 code, and there would better also not be a need for
>> architectures not supporting DT to each supply such a stub. Instead
>> I think you want to put this stub in xen/common/efi/boot.c, inside a
>> suitable #ifdef.”
>> 
>> So I thought you wanted me to remove the stub in x86 (since it doesn’t support DT)
>> and put this call under #ifdef so it won’t be compiled for arch not supporting DT.
> 
> So FTAOD I'll repeat the crucial part: "I think you want to put this
> stub in xen/common/efi/boot.c". There was nothing about removing the
> stub altogether.

Oh ok, now I see, so in your opinion this is a better idea:

#ifndef CONFIG_HAS_DEVICE_TREE
static inline int __init efi_arch_check_dt_boot(EFI_FILE_HANDLE dir_handle)
{
    return 0;
}
#endif

But I would like to understand the advantage respect of my approach, could you
explain me?

Cheers,
Luca


> 
> Jan
> 



  reply	other threads:[~2021-10-01 15:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 14:28 [PATCH v4 0/3] arm/efi: Add dom0less support to UEFI boot Luca Fancellu
2021-09-30 14:28 ` [PATCH v4 1/3] arm/efi: Introduce xen,uefi-cfg-load DT property Luca Fancellu
2021-09-30 14:33   ` Bertrand Marquis
2021-10-01 23:29     ` Stefano Stabellini
2021-10-06 18:32   ` Julien Grall
2021-10-07 14:25     ` Luca Fancellu
2021-09-30 14:28 ` [PATCH v4 2/3] arm/efi: Use dom0less configuration when using EFI boot Luca Fancellu
2021-09-30 14:33   ` Bertrand Marquis
2021-09-30 21:47   ` Stefano Stabellini
2021-10-01 11:02   ` Jan Beulich
2021-10-01 13:55     ` Luca Fancellu
2021-10-01 14:22       ` Jan Beulich
2021-10-01 15:13         ` Luca Fancellu [this message]
2021-10-07  7:15           ` Jan Beulich
2021-10-08 13:38             ` Luca Fancellu
2021-10-08 14:14               ` Jan Beulich
2021-09-30 14:28 ` [PATCH v4 3/3] arm/efi: load dom0 modules from DT using UEFI Luca Fancellu
2021-09-30 14:34   ` Bertrand Marquis
2021-09-30 21:58   ` Stefano Stabellini
2021-10-01 11:16   ` Jan Beulich
2021-10-01 14:08     ` Luca Fancellu
2021-10-01 14:24       ` Jan Beulich

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=55D6C05A-C0B4-4503-A7F8-D0BA11E0779B@arm.com \
    --to=luca.fancellu@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bertrand.marquis@arm.com \
    --cc=george.dunlap@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=wei.chen@arm.com \
    --cc=wl@xen.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.