freebsd-dev/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
common stand: fix buffer overflow in getrootmount() 2023-02-25 09:37:32 +00:00
defaults
efi amd64 loader: Use efiserialio for Hyper-V booted systems 2023-03-18 07:07:35 +00:00
fdt
ficl Revert "stand: Grammar fix for a source code comment" 2022-09-05 15:40:55 +02:00
ficl32
fonts
forth
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
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
fdt.mk
ficl.mk
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