mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0185-appliance-Disable-EDD-edd-off-RHBZ-1404287.patch

aa0300
From 0e7af58f29e49aba87f3c0d968b084c124fe5dbe Mon Sep 17 00:00:00 2001
aa0300
From: "Richard W.M. Jones" <rjones@redhat.com>
aa0300
Date: Sun, 18 Dec 2016 19:27:20 +0000
aa0300
Subject: [PATCH] appliance: Disable EDD (edd=off) (RHBZ#1404287).
aa0300
aa0300
EDD (https://en.wikipedia.org/wiki/Enhanced_Disk_Drive) is a BIOS INT 13h
aa0300
subcall for communicating the extended size of the boot disk over 8GB
aa0300
to the OS.  Since libguestfs doesn't use a boot disk, and the
aa0300
appliance disk is limited to 4GB, and we use virtio-scsi, this is all
aa0300
useless.
aa0300
aa0300
EDD is also broken currently on RHEL 7.3, see:
aa0300
https://bugzilla.redhat.com/show_bug.cgi?id=1404287
aa0300
aa0300
Also the EDD probing takes significant extra time (about 80ms on my
aa0300
laptop), and using edd=off reduces this time although doesn't entirely
aa0300
eliminate it.
aa0300
aa0300
(cherry picked from commit 764fd3fcc629ff91582ec8549ff80c240ba8393b)
aa0300
---
aa0300
 src/launch.c | 1 +
aa0300
 1 file changed, 1 insertion(+)
aa0300
aa0300
diff --git a/src/launch.c b/src/launch.c
aa0300
index 269eeca..0075ea7 100644
aa0300
--- a/src/launch.c
aa0300
+++ b/src/launch.c
aa0300
@@ -332,6 +332,7 @@ guestfs_int_appliance_command_line (guestfs_h *g, const char *appliance_dev,
aa0300
       */
aa0300
      " efi-rtc=noprobe"
aa0300
 #endif
aa0300
+     " edd=off"                 /* RHBZ#1404287 */
aa0300
      " udevtimeout=6000"/* for slow systems (RHBZ#480319, RHBZ#1096579) */
aa0300
      " udev.event-timeout=6000" /* for newer udevd */
aa0300
      " no_timer_check"  /* fix for RHBZ#502058 */
aa0300
-- 
7af31e
1.8.3.1
aa0300