[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-04-04 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 Dexuan Cui changed: What|Removed |Added Status|New |Closed

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #34 from commit-h...@freebsd.org --- A commit references this bug: Author: dexuan Date: Thu Mar 30 12:51:44 UTC 2017 New revision: 316273 URL: https://svnweb.freebsd.org/changeset/base/316273 Log: MFC: 314547, 314770,

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #33 from commit-h...@freebsd.org --- A commit references this bug: Author: dexuan Date: Thu Mar 30 12:41:21 UTC 2017 New revision: 316272 URL: https://svnweb.freebsd.org/changeset/base/316272 Log: MFC: 314547, 314770,

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #32 from commit-h...@freebsd.org --- A commit references this bug: Author: dexuan Date: Thu Mar 30 12:41:21 UTC 2017 New revision: 316272 URL: https://svnweb.freebsd.org/changeset/base/316272 Log: MFC: 314547, 314770,

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #31 from commit-h...@freebsd.org --- A commit references this bug: Author: dexuan Date: Thu Mar 30 12:41:21 UTC 2017 New revision: 316272 URL: https://svnweb.freebsd.org/changeset/base/316272 Log: MFC: 314547, 314770,

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #30 from Marcel Moolenaar --- (In reply to Dexuan Cui from comment #27) Thanks for collecting the memory maps and resolving any issues! -- You are receiving this mail because: You are the assignee for the

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #29 from commit-h...@freebsd.org --- A commit references this bug: Author: dexuan Date: Tue Mar 14 08:12:14 UTC 2017 New revision: 315235 URL: https://svnweb.freebsd.org/changeset/base/315235 Log: loader.efi: use stricter

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #28 from Dexuan Cui --- (In reply to Dexuan Cui from comment #27) > We can notice there is a 4MB BootServicesCode range at [12MB, 16MB) ... loader.efi just writes into this range by force -- this is unsafe

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #26 from Dexuan Cui --- (In reply to Dexuan Cui from comment #25) FYI: Let me attach 1 more sample of unusual EFI memory map from Roberto's physical host. We can notice there is an unusual 4MB range of

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #25 from Dexuan Cui --- Created attachment 180585 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180585=edit EFI mem map from Supermicro A1SRM-2758F host -- You are receiving this mail because:

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #24 from Dexuan Cui --- (In reply to Dexuan Cui from comment #23) FYI: Let me attach another sample of unusual EFI memory map from Alex's Supermicro A1SRM-2758F host. We can notice the 2MB range's type

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #23 from Dexuan Cui --- Created attachment 180552 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180552=edit uefi-mem-map-on-native.png -- You are receiving this mail because: You are the

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-03-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #21 from commit-h...@freebsd.org --- A commit references this bug: Author: dexuan Date: Thu Mar 2 07:25:50 UTC 2017 New revision: 314547 URL: https://svnweb.freebsd.org/changeset/base/314547 Log: loader.efi: reduce the size

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #20 from Dexuan Cui --- (In reply to Dexuan Cui from comment #19) I posted https://reviews.freebsd.org/D9686 for this bug. -- You are receiving this mail because: You are the assignee for the bug.

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #19 from Dexuan Cui --- (In reply to Dexuan Cui from comment #18) It looks this is indeed a complex issue and a lots of work is required to have a thorough fix. For now, I'm planning to make a patch to

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #18 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #17) Thanks very much for sharing the insights, Marcel! BTW, last year, people already reported an issue with mfs-based images +

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #16 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #15) Probably. IMO this means we can't freely change the 2MB kernphys. -- You are receiving this mail because: You are the assignee for

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #15 from Marcel Moolenaar --- Maybe because of sys/boot/common/load_elf.c, line 329? -- You are receiving this mail because: You are the assignee for the bug.

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #14 from Dexuan Cui --- BTW, anyone knows how to change the kernel base address (physical address)? Currently it should be 2MB, and I tried to change it to 128MB like this: --- a/sys/conf/ldscript.amd64

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #13 from Dexuan Cui --- Created attachment 180002 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180002=edit new mem map before/after the AllocatePages with staging below 1G -- You are

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #12 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #10) Hi Mercel, You're correct about the second bug -- we don't hit the second bug just because we are lucky: when accessing 0xf37cb000, we

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 Dexuan Cui changed: What|Removed |Added CC||k...@freebsd.org

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #10 from Marcel Moolenaar --- I just realized that efi_copy_finish() is called via trampoline(). I presume that this means that it runs with the temporary mapping that was created in elf64_exec(). We only

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #9 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #6) Differences between the maps are: 1) In the first red rectangle, we can see 48MB memory (0x3000 pages) is allocated from

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #8 from Dexuan Cui --- Created attachment 179977 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179977=edit memory map before vs. after allocating 48MB memory -- You are receiving this mail

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #7 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #6) I'll be attaching the memory map before and after efi_copy_init() -> BS->AllocatePages (..., 48MB, ...) BTW, in my test, STAGE_PAGES

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #6 from Marcel Moolenaar --- Check in the EFI memory map whether there's runtime-persistent memory at 0x20 + 45MB (or abouts). Runtime persistent memory are memory allocations of type runtime, firmware,

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #5 from Dexuan Cui --- (In reply to Dexuan Cui from comment #4) > last = (uint64_t *)staging + (1024*1024*45); I meant last = (uint64_t *) (staging + (1024*1024*45)); (I missed a pair of parentheses) --

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #4 from Dexuan Cui --- (In reply to Marcel Moolenaar from comment #3) Hi Marcel, Thank you for the quick help! Yes, I checked all the AllocatePages() calls and they all succeeded, i.e. returning 0. I

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #3 from Marcel Moolenaar --- It looks like AllocatePages() succeeded. Is that correct? If yes, then it's possible that there's a Hyper-V bug. Try to obtain the memory map before the call to AllocatePages

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2017-02-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 --- Comment #2 from Dexuan Cui --- By bisecting, I found the first "bad" commit for this bug is: https://github.com/freebsd/freebsd/commit/6471c2fc7c1fced2b5d2073b1629aa76588c61e2 (it changed EFI_STAGING_SIZE from

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2016-08-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 Mark Linimon changed: What|Removed |Added Assignee|freebsd-b...@freebsd.org

[Bug 211746] [Hyper-V] UEFI VM can't boot from the iso installation disk

2016-08-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211746 Dexuan Cui changed: What|Removed |Added CC|