|
|
d81766 |
From 8ba94e79e74e73030ba97079157442ab85710024 Mon Sep 17 00:00:00 2001
|
|
|
d81766 |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
d81766 |
Date: Wed, 31 Jul 2013 08:02:53 +0200
|
|
|
d81766 |
Subject: vga: Default .vram_size_mb to 16, like prior versions of RHEL
|
|
|
d81766 |
|
|
|
d81766 |
Message-id: <1375201922-6794-5-git-send-email-armbru@redhat.com>
|
|
|
d81766 |
Patchwork-id: 52811
|
|
|
d81766 |
O-Subject: [RHEL-7 PATCH v3 04/15] vga: Default .vram_size_mb to 16, like prior versions of RHEL
|
|
|
d81766 |
Bugzilla: 983991
|
|
|
d81766 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
d81766 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
d81766 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
d81766 |
|
|
|
d81766 |
A brief history of VGA video RAM sizes:
|
|
|
d81766 |
|
|
|
d81766 |
* Initially, all VGA devices got 8 MiB of video RAM.
|
|
|
d81766 |
|
|
|
d81766 |
* Upstream qemu-kvm kvm-62 (2008) doubled it to 16 MiB (commit
|
|
|
d81766 |
a7fe029).
|
|
|
d81766 |
|
|
|
d81766 |
* RHEL-5 and RHEL-6 based on upstream qemu-kvm.
|
|
|
d81766 |
|
|
|
d81766 |
* Upstream qemu v1.2.0 made the size configurable for "isa-vga",
|
|
|
d81766 |
"VGA", "vmware_vga" (commit 4a1e244), and "qxl-vga", "qxl" (commit
|
|
|
d81766 |
13d1fd4), then doubled the default to 16 MiB (commit 9e56edc) for
|
|
|
d81766 |
the new machine type. Except "isa-vga" stayed at 8 MiB.
|
|
|
d81766 |
|
|
|
d81766 |
* Upstream qemu-kvm merged this in qemu-kvm-1.2.0. Incompatible
|
|
|
d81766 |
change of default VGA video RAM back to 8 MiB for "isa-vga",
|
|
|
d81766 |
"isa-cirrus-vga", "cirrus-vga"[*].
|
|
|
d81766 |
|
|
|
d81766 |
* Upstream qemu v1.3.0 made the size configurable for
|
|
|
d81766 |
"isa-cirrus-vga", "cirrus-vga" (commit 19403a6).
|
|
|
d81766 |
|
|
|
d81766 |
RHEL-7 bases on upstream qemu. To avoid qemu-kvm-1.2.0's incompatible
|
|
|
d81766 |
change, default video RAM size to 16 MiB for all VGA devices[**] and
|
|
|
d81766 |
RHEL machine types.
|
|
|
d81766 |
|
|
|
d81766 |
[*] And the non-qdevified, memory-mapped VGA used by MIPS magnum and
|
|
|
d81766 |
pica61 machines, but these don't matter in qemu-kvm.
|
|
|
d81766 |
|
|
|
d81766 |
[**] Except for the non-qdevified, memory-mapped VGA.
|
|
|
d81766 |
|
|
|
d81766 |
Signed-off-by: Markus Armbruster <armbru@redhat.com>
|
|
|
d81766 |
|
|
|
d81766 |
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
|
|
|
d81766 |
index db330e9..c8f0afb 100644
|
|
|
d81766 |
--- a/hw/display/cirrus_vga.c
|
|
|
d81766 |
+++ b/hw/display/cirrus_vga.c
|
|
|
d81766 |
@@ -2931,7 +2931,7 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)
|
|
|
d81766 |
|
|
|
d81766 |
static Property isa_cirrus_vga_properties[] = {
|
|
|
d81766 |
DEFINE_PROP_UINT32("vgamem_mb", struct ISACirrusVGAState,
|
|
|
d81766 |
- cirrus_vga.vga.vram_size_mb, 8),
|
|
|
d81766 |
+ cirrus_vga.vga.vram_size_mb, 16),
|
|
|
d81766 |
DEFINE_PROP_END_OF_LIST(),
|
|
|
d81766 |
};
|
|
|
d81766 |
|
|
|
d81766 |
@@ -3001,7 +3001,7 @@ static int pci_cirrus_vga_initfn(PCIDevice *dev)
|
|
|
d81766 |
|
|
|
d81766 |
static Property pci_vga_cirrus_properties[] = {
|
|
|
d81766 |
DEFINE_PROP_UINT32("vgamem_mb", struct PCICirrusVGAState,
|
|
|
d81766 |
- cirrus_vga.vga.vram_size_mb, 8),
|
|
|
d81766 |
+ cirrus_vga.vga.vram_size_mb, 16),
|
|
|
d81766 |
DEFINE_PROP_END_OF_LIST(),
|
|
|
d81766 |
};
|
|
|
d81766 |
|
|
|
d81766 |
diff --git a/hw/display/vga-isa.c b/hw/display/vga-isa.c
|
|
|
d81766 |
index 2b480bd..4ea5767 100644
|
|
|
d81766 |
--- a/hw/display/vga-isa.c
|
|
|
d81766 |
+++ b/hw/display/vga-isa.c
|
|
|
d81766 |
@@ -75,7 +75,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp)
|
|
|
d81766 |
}
|
|
|
d81766 |
|
|
|
d81766 |
static Property vga_isa_properties[] = {
|
|
|
d81766 |
- DEFINE_PROP_UINT32("vgamem_mb", ISAVGAState, state.vram_size_mb, 8),
|
|
|
d81766 |
+ DEFINE_PROP_UINT32("vgamem_mb", ISAVGAState, state.vram_size_mb, 16),
|
|
|
d81766 |
DEFINE_PROP_END_OF_LIST(),
|
|
|
d81766 |
};
|
|
|
d81766 |
|
|
|
d81766 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
d81766 |
index 851d7bd..776689c 100644
|
|
|
d81766 |
--- a/hw/i386/pc_piix.c
|
|
|
d81766 |
+++ b/hw/i386/pc_piix.c
|
|
|
d81766 |
@@ -1052,18 +1052,6 @@ static QEMUMachine pc_machine_rhel700 = {
|
|
|
d81766 |
.property = "param_change",\
|
|
|
d81766 |
.value = "off",\
|
|
|
d81766 |
},{\
|
|
|
d81766 |
- .driver = "VGA",\
|
|
|
d81766 |
- .property = "vgamem_mb",\
|
|
|
d81766 |
- .value = stringify(8),\
|
|
|
d81766 |
- },{\
|
|
|
d81766 |
- .driver = "qxl-vga",\
|
|
|
d81766 |
- .property = "vgamem_mb",\
|
|
|
d81766 |
- .value = stringify(8),\
|
|
|
d81766 |
- },{\
|
|
|
d81766 |
- .driver = "qxl",\
|
|
|
d81766 |
- .property = "vgamem_mb",\
|
|
|
d81766 |
- .value = stringify(8),\
|
|
|
d81766 |
- },{\
|
|
|
d81766 |
.driver = "virtio-blk-pci",\
|
|
|
d81766 |
.property = "config-wce",\
|
|
|
d81766 |
.value = "off",\
|