From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: "Jan Beulich" <JBeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Daniel P . Smith" <dpsmith@apertussolutions.com>,
"Frediano Ziglio" <frediano.ziglio@cloud.com>,
"Alejandro Vallejo" <alejandro.vallejo@cloud.com>
Subject: Re: [PATCH 2/2] x86/trampoline: Rationalise the constants to describe the size
Date: Wed, 13 Nov 2024 11:36:54 +0000 [thread overview]
Message-ID: <8217032f-c5ec-4f93-b69f-42ceeae06073@citrix.com> (raw)
In-Reply-To: <20241113093058.1562447-3-andrew.cooper3@citrix.com>
On 13/11/2024 9:30 am, Andrew Cooper wrote:
> diff --git a/xen/arch/x86/efi/efi-boot.h b/xen/arch/x86/efi/efi-boot.h
> index 7930b7c73892..9d3f2b71447e 100644
> --- a/xen/arch/x86/efi/efi-boot.h
> +++ b/xen/arch/x86/efi/efi-boot.h
> @@ -633,7 +633,7 @@ static void __init efi_arch_memory_setup(void)
> if ( efi_enabled(EFI_LOADER) )
> cfg.size = trampoline_end - trampoline_start;
> else
> - cfg.size = TRAMPOLINE_SPACE + TRAMPOLINE_STACK_SPACE;
> + cfg.size = TRAMPOLINE_SIZE;
Something I forgot to mention.
The EFI_LOADER side of this conditional means that the heap isn't valid.
This includes modelist, vesa_glob_info and vesa_mode_info from video.S,
but I can't find where they're used at all.
There's a separate struct vesa_mode_info in reloc.c but that is a
representation of the MB2 vbe_mode_info tag and not the same thing AFAICT.
~Andrew
next prev parent reply other threads:[~2024-11-13 11:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 9:30 [PATCH 0/2] x86/trampoline: Layout description improvements Andrew Cooper
2024-11-13 9:30 ` [PATCH 1/2] x86/trampoline: Document how the trampoline is laid out Andrew Cooper
2024-11-13 10:20 ` Jan Beulich
2024-11-13 11:19 ` Andrew Cooper
2024-11-13 11:23 ` Frediano Ziglio
2024-11-13 11:24 ` Jan Beulich
2024-11-13 11:26 ` Jan Beulich
2024-11-13 9:30 ` [PATCH 2/2] x86/trampoline: Rationalise the constants to describe the size Andrew Cooper
2024-11-13 10:18 ` Frediano Ziglio
2024-11-13 10:58 ` Frediano Ziglio
2024-11-13 10:23 ` Jan Beulich
2024-11-13 11:52 ` Andrew Cooper
2024-11-13 12:00 ` Jan Beulich
2024-11-13 11:36 ` Andrew Cooper [this message]
2024-11-13 11:51 ` Frediano Ziglio
2024-11-13 12:02 ` 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=8217032f-c5ec-4f93-b69f-42ceeae06073@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=alejandro.vallejo@cloud.com \
--cc=dpsmith@apertussolutions.com \
--cc=frediano.ziglio@cloud.com \
--cc=roger.pau@citrix.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.