Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-08 Thread Laszlo Ersek
On 12/08/13 18:43, Laszlo Ersek wrote: > On 12/06/13 13:03, Paolo Bonzini wrote: >> Thanks to your binary I now reproduced the issue and it looks like the >> 64-bit->16-bit switch works: > > Thank you for spending (apparently more than a little) time on this! > >> >> qemu-system-x86-4081 [001]

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-08 Thread Laszlo Ersek
On 12/06/13 13:03, Paolo Bonzini wrote: > Il 05/12/2013 19:29, Laszlo Ersek ha scritto: >> On 12/05/13 18:42, Paolo Bonzini wrote: >>> Il 05/12/2013 17:12, Laszlo Ersek ha scritto: Hi, I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an unexpected

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-07 Thread David Woodhouse
On Thu, 2013-12-05 at 23:38 +0100, Laszlo Ersek wrote: > > Does gas support mode switches in one file? I found examples on the > net (for nasm I think) where people were thunking to real mode and > back to protected mode in a single assembly file, and they could use > native mnemonics for each par

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Paolo Bonzini
Il 06/12/2013 15:47, Yao, Jiewen ha scritto: > Good investigation. I really appreciate that. > > Now, it seems we need OVMF pkg owner to check when 0x9c000 are corrupted, and > why. FWIW it's 0x1000110, not 0x9c000. But everything else is right. Paolo -- To unsubscribe from this list: send the

RE: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Yao, Jiewen
:29 PM To: Yao, Jiewen Cc: edk2-de...@lists.sourceforge.net; KVM devel mailing list Subject: Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline Il 06/12/2013 14:46, Yao, Jiewen ha scritto: > Hi Paolo > I am a little confused here. You said "Still, indeed it

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Paolo Bonzini
Il 06/12/2013 14:46, Yao, Jiewen ha scritto: > Hi Paolo > I am a little confused here. You said "Still, indeed it's OVMF's fault." and > "Still an EDK2 problem." ?? Sorry for the confusion. I wrote OVMF/EDK2 interchangeably, just to say "not KVM". > EDKII BIOS should always create 1:1 mappi

RE: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Yao, Jiewen
nzini [mailto:pbonz...@redhat.com] Sent: Friday, December 06, 2013 9:31 PM Cc: edk2-de...@lists.sourceforge.net; KVM devel mailing list Subject: Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline Il 06/12/2013 13:03, Paolo Bonzini ha scritto: > The page tables are, ah

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Paolo Bonzini
Il 06/12/2013 13:03, Paolo Bonzini ha scritto: > The page tables are, ahem, crap: > > 000c000: 6750 fe01 gP.. > 000c010: > 000c020: > 000c0

RE: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Yao, Jiewen
...@lists.sourceforge.net Cc: KVM devel mailing list Subject: Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline Il 05/12/2013 19:29, Laszlo Ersek ha scritto: > On 12/05/13 18:42, Paolo Bonzini wrote: >> Il 05/12/2013 17:12, Laszlo Ersek ha scritto: >>> Hi, >

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-06 Thread Paolo Bonzini
Il 05/12/2013 19:29, Laszlo Ersek ha scritto: > On 12/05/13 18:42, Paolo Bonzini wrote: >> Il 05/12/2013 17:12, Laszlo Ersek ha scritto: >>> Hi, >>> >>> I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an >>> unexpected guest reboot for code (LRET) that works on physical ha

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
On 12/05/13 18:42, Paolo Bonzini wrote: > diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S > b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S > index e59fd04..d1cac9d 100644 > --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.S > +++ b/MdeM

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
On 12/05/13 18:42, Paolo Bonzini wrote: > Il 05/12/2013 17:12, Laszlo Ersek ha scritto: >> Hi, >> >> I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an >> unexpected guest reboot for code (LRET) that works on physical hardware. I >> tried to trace the problem with ftrace,

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Paolo Bonzini
Il 05/12/2013 17:12, Laszlo Ersek ha scritto: > Hi, > > I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an > unexpected guest reboot for code (LRET) that works on physical hardware. I > tried to trace the problem with ftrace, but I didn't get any mentions of > em_ret_far(

Re: [edk2] apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
Small addition -- apologies for the self-followup: On 12/05/13 17:12, Laszlo Ersek wrote: > I tried to trace the problem with ftrace, but I didn't get any mentions of > em_ret_far(). (Maybe I was looking in the wrong place.) I applied the following small patch (to the original code): diff --git

apparent KVM problem with LRET in TianoCore S3 resume trampoline

2013-12-05 Thread Laszlo Ersek
Hi, I'm working on S3 suspend/resume in OVMF. The problem is that I'm getting an unexpected guest reboot for code (LRET) that works on physical hardware. I tried to trace the problem with ftrace, but I didn't get any mentions of em_ret_far(). (Maybe I was looking in the wrong place.) Please find