aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2018-08-26 03:56:54 +0000
committerColin Percival <cperciva@FreeBSD.org>2018-08-26 03:56:54 +0000
commita1b042f79d71a3a444aef1281fa61ccd45064c6a (patch)
tree25b08ef708aded286c065fef6b3696e14b83d0d1
parent00d5b07760115e5c238ba96d278cf024c5c26d6c (diff)
downloadsrc-a1b042f79d71a3a444aef1281fa61ccd45064c6a.tar.gz
src-a1b042f79d71a3a444aef1281fa61ccd45064c6a.zip
Disable atkbd0 and atkdbc0 in EC2 AMIs. This has the effect of skipping
the probing and attaching of the PS/2 mouse (not present on EC2) and keyboard (emulated, but not accessible via EC2). Note that we disable atkbd0 separately even though during device probing it shows up as a child of atkbdc0; this is necessary because the device is also initialized during the early console setup from hammer_time. This change cuts the kernel boot time on an EC2 c5.4xlarge instance from 7259ms down to 4727 ms. Approved by: re (marius)
Notes
Notes: svn path=/head/; revision=338321
-rw-r--r--release/tools/ec2.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 0ef5a211df1e..562647cd7024 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -68,6 +68,13 @@ vm_extra_pre_umount() {
echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf
+ # The emulated keyboard attached to EC2 instances is inaccessible to
+ # users, and there is no mouse attached at all; disable to keyboard
+ # and the keyboard controller (to which the mouse would attach, if
+ # one existed) in order to save time in device probing.
+ echo 'hint.atkbd.0.disabled=1' >> ${DESTDIR}/boot/loader.conf
+ echo 'hint.atkbdc.0.disabled=1' >> ${DESTDIR}/boot/loader.conf
+
# EC2 has two consoles: An emulated serial port ("system log"),
# which has been present since 2006; and a VGA console ("instance
# screenshot") which was introduced in 2016.