[Bug 264267] UEFI Booting on Azure Generation 2 VMs crashes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Mar 2023 07:21:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264267
--- Comment #34 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=927358dd98cb902160093e0dc0bac002d6b43858
commit 927358dd98cb902160093e0dc0bac002d6b43858
Author: Wei Hu <whu@FreeBSD.org>
AuthorDate: 2023-03-14 15:13:46 +0000
Commit: Wei Hu <whu@FreeBSD.org>
CommitDate: 2023-03-18 07:07:35 +0000
amd64 loader: Use efiserialio for Hyper-V booted systems
UEFI provides ConIn/ConOut handles for consoles that it supports,
which include the text-video and serial ports. When the serial port
is available, use the UEFI driver instead of direct io-port accesses
to avoid conflicts between the firmware and direct hardware access, as
happens on Hyper-V (Azure) setups.
This change enables efiserialio to be built for efi-amd64 and has
higher order priority vs comconsole, and only uses efiserialio
if the hypervisor is Hyper-V. When efiserialio successfully
probes, it will set efi_comconsole_avail=true which will prevent
comconsole from probing in this setup.
Tested on Hyper-V, ESXi and Azure VMs.
PR: 264267
Reviewed by: kevans, whu
Tested by: whu
Obtained from: Rubicon Communications, LLC (Netgate)
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC (Netgate)
stand/efi/loader/arch/amd64/Makefile.inc | 1 +
stand/efi/loader/bootinfo.c | 11 ++++++--
stand/efi/loader/conf.c | 6 +++++
stand/efi/loader/efiserialio.c | 43 ++++++++++++++++++++++++++++----
stand/i386/libi386/comconsole.c | 14 +++++++++++
5 files changed, 68 insertions(+), 7 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.