mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone
Blob Blame History Raw
From d4a8bb04cc7fd7dbab6501e16b2f4d8a9a92acac Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 28 Apr 2016 22:37:04 +0100
Subject: [PATCH] launch: Don't initialize all UARTs (serial ports).

This doesn't save very much time, perhaps under 1ms, but it avoids
some useless scanning.

(cherry picked from commit d76129aa0cca856994c1a65b55dc18d2a2049d34)
---
 src/launch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/launch.c b/src/launch.c
index 9f5b14f..04b0e94 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -340,6 +340,7 @@ guestfs_int_appliance_command_line (guestfs_h *g, const char *appliance_dev,
      " printk.time=1"   /* display timestamp before kernel messages */
      " cgroup_disable=memory"   /* saves us about 5 MB of RAM */
      " usbcore.nousb"           /* disable USB, only saves about 1ms */
+     " 8250.nr_uarts=1"         /* don't scan all 8250 UARTS */
      "%s"                       /* root=appliance_dev */
      " %s"                      /* selinux */
      " %s"                      /* quiet/verbose */
-- 
2.7.4