thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
218e99
From 2badec2441d95d693d7125d87fa8867f24f1ea9d Mon Sep 17 00:00:00 2001
218e99
From: Markus Armbruster <armbru@redhat.com>
218e99
Date: Sat, 2 Nov 2013 15:05:06 +0100
218e99
Subject: [PATCH 49/81] rhel: Drop "isa-vga" device
218e99
218e99
RH-Author: Markus Armbruster <armbru@redhat.com>
218e99
Message-id: <1383404707-6015-2-git-send-email-armbru@redhat.com>
218e99
Patchwork-id: 55272
218e99
O-Subject: [PATCH 7.0 qemu-kvm 1/2] rhel: Drop "isa-vga" device
218e99
Bugzilla: 1001088
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Marcel Apfelbaum <marcel.a@redhat.com>
218e99
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
218e99
218e99
From: Markus Armbruster <armbru@redhat.com>
218e99
218e99
We can drop a device from the build only when it isn't referenced from
218e99
code we build.  References come in two forms: extern symbols, and qdev
218e99
driver names.
218e99
218e99
Unresolved extern symbols pose no real danger, because they fail
218e99
safely at link time.  The dropped code doesn't define any extern
218e99
symbols anyway.
218e99
218e99
Unresolved driver names get detected only at runtime, so we better be
218e99
extra careful.  Occurences of the driver name outside the code dropped
218e99
by this patch:
218e99
218e99
* default_list[] in vl.c: Used only to disable default VGA with
218e99
  -device isa-vga.  Safe.
218e99
218e99
* vga_available() in vl.c: Tests whether the device is compiled in.
218e99
  No change, because device "VGA" is still compiled in, therfore safe.
218e99
218e99
* isa_vga_init() in hw/isa/isa-bus.c: Its only potential caller
218e99
  pc_vga_init() never calls in RHEL, because it never gets a null
218e99
  pci_bus argument.  Safe.
218e99
218e99
Signed-off-by: Markus Armbruster <armbru@redhat.com>
218e99
---
218e99
 default-configs/x86_64-softmmu.mak | 1 -
218e99
 1 file changed, 1 deletion(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 default-configs/x86_64-softmmu.mak |    1 -
218e99
 1 files changed, 0 insertions(+), 1 deletions(-)
218e99
218e99
diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak
218e99
index 70d8bd9..e7c48ec 100644
218e99
--- a/default-configs/x86_64-softmmu.mak
218e99
+++ b/default-configs/x86_64-softmmu.mak
218e99
@@ -6,7 +6,6 @@ include usb.mak
218e99
 CONFIG_VGA=y
218e99
 CONFIG_QXL=$(CONFIG_SPICE)
218e99
 CONFIG_VGA_PCI=y
218e99
-CONFIG_VGA_ISA=y
218e99
 CONFIG_VGA_CIRRUS=y
218e99
 CONFIG_VMMOUSE=y
218e99
 CONFIG_SERIAL=y
218e99
-- 
218e99
1.7.1
218e99