Re: [PATCHv2 16/29] x86/boot: Add a trampoline for booting APs via firmware handoff

Kirill A. Shutemov
2022-02-16T14:10:03Z

On Wed, Feb 16, 2022 at 11:07:15AM +0100, Borislav Petkov wrote:
> On Wed, Feb 16, 2022 at 12:36:24AM +0300, Kirill A. Shutemov wrote:
> > How can signle trampoline_start cover all cases?
>
> All I'm saying is that the real mode header should have a single
>
> u32 trampoline_start;
>
> instead of:
>
> u32 trampoline_start;
> u32 sev_es_trampoline_start;
> u32 trampoline_start64;
>
> which all are the same thing on a single system.

But these are generated at build time, no?

As far as I can see it is initialized in arch/x86/realmode/rm/header.S by
linker.

I'm confused.

--
Kirill A. Shutemov