Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-17 Thread Gerd Hoffmann
On Fri, Apr 14, 2023 at 04:39:23PM -0500, Tom Lendacky wrote: > On 4/14/23 15:23, Tom Lendacky wrote: > > I've been trying to debug a problem I'm seeing when I moved to the GCC 12 > > compiler. Under SEV it results in the guest crashing. > > False alarm, I was on the wrong branch that does not

Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-14 Thread Ni, Ray
On Behalf Of Ni, Ray Sent: Saturday, April 15, 2023 8:50 AM To: devel@edk2.groups.io; thomas.lenda...@amd.com; Ard Biesheuvel Cc: devel@edk2.groups.io; Gerd Hoffmann Subject: Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12 Why does OVMF choose to migrate the content from NEM to MEM

Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-14 Thread Ni, Ray
@edk2.groups.io ; Gerd Hoffmann Subject: Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12 On 4/14/23 16:39, Ard Biesheuvel wrote: > On Fri, 14 Apr 2023 at 22:23, Tom Lendacky wrote: >> >> I've been trying to debug a problem I'm seeing when I moved to the GCC 12 >>

Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-14 Thread Lendacky, Thomas via groups.io
On 4/14/23 16:39, Ard Biesheuvel wrote: On Fri, 14 Apr 2023 at 22:23, Tom Lendacky wrote: I've been trying to debug a problem I'm seeing when I moved to the GCC 12 compiler. Under SEV it results in the guest crashing. I narrowed the issue down to the call to TemporaryRamMigration() in

Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-14 Thread Ard Biesheuvel
On Fri, 14 Apr 2023 at 22:23, Tom Lendacky wrote: > > I've been trying to debug a problem I'm seeing when I moved to the GCC 12 > compiler. Under SEV it results in the guest crashing. > > I narrowed the issue down to the call to TemporaryRamMigration() in > PeiCheckAndSwitchStack() of

Re: [edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-14 Thread Lendacky, Thomas via groups.io
On 4/14/23 15:23, Tom Lendacky wrote: I've been trying to debug a problem I'm seeing when I moved to the GCC 12 compiler. Under SEV it results in the guest crashing. False alarm, I was on the wrong branch that does not have ff36b2550f94 ("OvmfPkg/Sec: fix stack switch")... disregard.

[edk2-devel] Strange behavior between GCC 11 and GCC 12

2023-04-14 Thread Lendacky, Thomas via groups.io
I've been trying to debug a problem I'm seeing when I moved to the GCC 12 compiler. Under SEV it results in the guest crashing. I narrowed the issue down to the call to TemporaryRamMigration() in PeiCheckAndSwitchStack() of MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c. I get this output on