[Differential] D9686: fix UEFI VM's bootup on Hyper-V (i.e. Hyper-V Generation-2 VM)

2017-02-20 Thread kib (Konstantin Belousov)
kib added inline comments. INLINE COMMENTS > decui_microsoft.com wrote in copy.c:79-84 > Do you mean the existing allocations of the type EfiLoaderData? > IMHO, after boot services has exited, we can only write the memory of > EfiLoaderData or EfiConventionalMemory. It's unsafe to write to memo

[Differential] D9686: fix UEFI VM's bootup on Hyper-V (i.e. Hyper-V Generation-2 VM)

2017-02-20 Thread kib (Konstantin Belousov)
kib added inline comments. INLINE COMMENTS > decui_microsoft.com wrote in copy.c:79-84 > IIRC, the UEFI firmware enables protected mode with identity-mapped paging > (i.e. VA==PA) , before the execution is transferred to FreeBSD's EFI loader. > So here IMO I can treat VA==PA in the patch (it lo