EC2: Default to UEFI booting
authorColin Percival <cperciva@FreeBSD.org>
Thu, 16 Sep 2021 16:22:42 +0000 (09:22 -0700)
committerColin Percival <cperciva@FreeBSD.org>
Thu, 16 Sep 2021 19:23:19 +0000 (12:23 -0700)
commitb43d7aa09b3c91fb6b652306db2ac13e1459c497
treedb4b48a64004e6634758edaaa03c10a13a776349
parent0aa2a94ea6359fb2587af81841fbf8eb30ab36b0
EC2: Default to UEFI booting

This reduces the FreeBSD boot time by approximately 5 seconds,
roughly equally divided betwenn two factors:
* Disk I/O is faster in the EFI loader since it can perform larger
I/Os.  (The BIOS loader is limited due to the use of bounce buffers
in sub-1M memory.)
* The EFI console is much faster than the VGA console.

Note however that not all EC2 instance types support UEFI; as a
general rule the newer instances (based on Amazon's "Nitro" platform)
support UEFI but the older instances (based on Xen) do not.

X-MFC: TBD based on tradeoff between performance and compatibility
Relnotes: yes
Sponsored by: https://www.patreon.com/cperciva
release/Makefile.ec2