Re: [PATCH] iscsi_ibft: Fix finding the iBFT under Xen Dom 0

From: Jan Beulich
Date: Thu May 25 2023 - 05:31:35 EST


On 24.05.2023 18:05, Ross Lagerwall wrote:
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -772,8 +772,14 @@ char * __init xen_memory_setup(void)
> * UNUSABLE regions in domUs are not handled and will need
> * a patch in the future.
> */

I think this comment now wants to move ...

> - if (xen_initial_domain())
> + if (xen_initial_domain()) {

... here. And then likely you want a blank line ...

> xen_ignore_unusable();

... here.

> + /* Reserve 0.5 MiB to 1 MiB region so iBFT can be found */
> + xen_e820_table.entries[xen_e820_table.nr_entries].addr = 0x80000;
> + xen_e820_table.entries[xen_e820_table.nr_entries].size = 0x80000;
> + xen_e820_table.entries[xen_e820_table.nr_entries].type = E820_TYPE_RESERVED;
> + xen_e820_table.nr_entries++;

Surely this can be omitted when !CONFIG_ISCSI_IBFT_FIND?

Jan