Re: [edk2-devel] [PATCH 09/13] OvmfPkg: implement QEMU loader library for X86 with legacy fallback

2020-03-03 Thread Laszlo Ersek
On 03/03/20 11:08, Ard Biesheuvel wrote: > On Tue, 3 Mar 2020 at 10:45, Laszlo Ersek wrote: >> (13) I'm worried that we are installing custom protocols on a handle >> that was first created by LoadImage(), before we pass it to >> UnloadImage(). I don't know if, per spec, LoadImage() /

Re: [edk2-devel] [PATCH 09/13] OvmfPkg: implement QEMU loader library for X86 with legacy fallback

2020-03-03 Thread Ard Biesheuvel
On Tue, 3 Mar 2020 at 10:45, Laszlo Ersek wrote: > > On 03/02/20 08:29, Ard Biesheuvel wrote: > > Implement another version of QemuLoadImageLib that uses LoadImage and > > StartImage, but falls back to the legacy Linux loader code if that > > fails. The logic in the legacy fallback routines is

Re: [edk2-devel] [PATCH 09/13] OvmfPkg: implement QEMU loader library for X86 with legacy fallback

2020-03-03 Thread Laszlo Ersek
On 03/02/20 08:29, Ard Biesheuvel wrote: > Implement another version of QemuLoadImageLib that uses LoadImage and > StartImage, but falls back to the legacy Linux loader code if that > fails. The logic in the legacy fallback routines is identical to the > current QEMU linux loader for X64 and IA32.

[edk2-devel] [PATCH 09/13] OvmfPkg: implement QEMU loader library for X86 with legacy fallback

2020-03-01 Thread Ard Biesheuvel
Implement another version of QemuLoadImageLib that uses LoadImage and StartImage, but falls back to the legacy Linux loader code if that fails. The logic in the legacy fallback routines is identical to the current QEMU linux loader for X64 and IA32. Note the use of a LoadedImage pseudo-protocol