freebsd-nq/stand
Wei Hu 927358dd98 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)
2023-03-18 07:07:35 +00:00
..
arm64 stand: Remove extra efi.h include 2022-07-15 12:00:49 -06:00
common stand: fix buffer overflow in getrootmount() 2023-02-25 09:37:32 +00:00
defaults Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
efi amd64 loader: Use efiserialio for Hyper-V booted systems 2023-03-18 07:07:35 +00:00
fdt Remove "All Rights Reserved" from Foundation copyrights 2022-06-30 10:49:09 -04:00
ficl Revert "stand: Grammar fix for a source code comment" 2022-09-05 15:40:55 +02:00
ficl32
fonts
forth loader.4th(8): Fix a typo in the manual page 2022-04-02 15:11:59 +02:00
i386 amd64 loader: Use efiserialio for Hyper-V booted systems 2023-03-18 07:07:35 +00:00
images
kboot Parse /kboot.conf 2023-03-13 20:45:50 -06:00
kshim stand/usb: Fix build by declaring missing functions and types. 2022-03-17 15:26:24 +01:00
liblua lua: Update to 5.4.4 2023-02-08 10:33:26 -07:00
liblua32
libofw stand/ofw: dev can't be NULL here 2023-01-13 14:22:38 -07:00
libsa loader: Add support for booting from a ZFS snapshot 2023-03-14 14:18:29 +00:00
libsa32
lua lua: Export loaded modules env vars via environment 2023-02-09 11:56:20 -07:00
man loader.efi(8): document slop control, amd64 nocopy, and amd64 fault commands 2022-09-06 18:55:45 +03:00
powerpc loader: always install help files 2023-02-03 16:35:06 -04:00
uboot loader: always install help files 2023-02-03 16:35:06 -04:00
usb stand: For all disk drivers, connect dv_parsedev to disk_parsedev 2022-11-30 15:30:32 -07:00
userboot stand: fix build userboot without zfs 2023-02-25 10:14:07 -07:00
defs.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
fdt.mk
ficl.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
loader.mk loader: always install help files 2023-02-03 16:35:06 -04:00
lua.mk lua: Update to 5.4.4 2023-02-08 10:33:26 -07:00
Makefile stand: Add a helper 'universe' target 2022-07-30 05:01:47 -06:00
Makefile.amd64
Makefile.inc
veriexec.mk