|
|
1bdc94 |
From 798456424d4941bed5e19e4ee3c712c7bc3766dd Mon Sep 17 00:00:00 2001
|
|
|
1bdc94 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
1bdc94 |
Date: Wed, 13 Jun 2018 10:40:26 +0200
|
|
|
1bdc94 |
Subject: [PATCH 4/9] Use 4 MB vram for cirrus.
|
|
|
1bdc94 |
|
|
|
1bdc94 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
1bdc94 |
Message-id: <20180613104026.4395-3-kraxel@redhat.com>
|
|
|
1bdc94 |
Patchwork-id: 80652
|
|
|
1bdc94 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 2/2] Use 4 MB vram for cirrus.
|
|
|
1bdc94 |
Bugzilla: 1542080
|
|
|
1bdc94 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
1bdc94 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
1bdc94 |
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
|
|
|
1bdc94 |
|
|
|
1bdc94 |
Follow upstream, which switched from 8 MB to 4 MB in release 2.9,
|
|
|
1bdc94 |
see commit 73c148130b58709f0f2abfedbae92681d87eb404.
|
|
|
1bdc94 |
|
|
|
1bdc94 |
RHEL traditionally defaults to 16 MB video memory, so we had a patch
|
|
|
1bdc94 |
changing 8 MB -> 16 MB downstream. The 2.9 rebase kept that patch, now
|
|
|
1bdc94 |
changing 4 MB -> 16 MB.
|
|
|
1bdc94 |
|
|
|
1bdc94 |
This patch effectively reverts the downstream change and adds a compat
|
|
|
1bdc94 |
property so the video memory will stay at 16 MB for 7.5 and older
|
|
|
1bdc94 |
machine types.
|
|
|
1bdc94 |
|
|
|
1bdc94 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
1bdc94 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
1bdc94 |
---
|
|
|
1bdc94 |
hw/display/cirrus_vga.c | 2 +-
|
|
|
1bdc94 |
include/hw/compat.h | 4 ++++
|
|
|
1bdc94 |
2 files changed, 5 insertions(+), 1 deletion(-)
|
|
|
1bdc94 |
|
|
|
1bdc94 |
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
|
|
|
1bdc94 |
index feacb45..014268a 100644
|
|
|
1bdc94 |
--- a/hw/display/cirrus_vga.c
|
|
|
1bdc94 |
+++ b/hw/display/cirrus_vga.c
|
|
|
1bdc94 |
@@ -3133,7 +3133,7 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
|
|
|
1bdc94 |
|
|
|
1bdc94 |
static Property pci_vga_cirrus_properties[] = {
|
|
|
1bdc94 |
DEFINE_PROP_UINT32("vgamem_mb", struct PCICirrusVGAState,
|
|
|
1bdc94 |
- cirrus_vga.vga.vram_size_mb, 16),
|
|
|
1bdc94 |
+ cirrus_vga.vga.vram_size_mb, 4),
|
|
|
1bdc94 |
DEFINE_PROP_BOOL("blitter", struct PCICirrusVGAState,
|
|
|
1bdc94 |
cirrus_vga.enable_blitter, true),
|
|
|
1bdc94 |
DEFINE_PROP_END_OF_LIST(),
|
|
|
1bdc94 |
diff --git a/include/hw/compat.h b/include/hw/compat.h
|
|
|
1bdc94 |
index 666eed9..9e659e9 100644
|
|
|
1bdc94 |
--- a/include/hw/compat.h
|
|
|
1bdc94 |
+++ b/include/hw/compat.h
|
|
|
1bdc94 |
@@ -476,6 +476,10 @@
|
|
|
1bdc94 |
.driver = "virtio-tablet-device",\
|
|
|
1bdc94 |
.property = "wheel-axis",\
|
|
|
1bdc94 |
.value = "false",\
|
|
|
1bdc94 |
+ },{ /* HW_COMPAT_RHEL7_5 */ \
|
|
|
1bdc94 |
+ .driver = "cirrus-vga",\
|
|
|
1bdc94 |
+ .property = "vgamem_mb",\
|
|
|
1bdc94 |
+ .value = "16",\
|
|
|
1bdc94 |
},
|
|
|
1bdc94 |
|
|
|
1bdc94 |
#endif /* HW_COMPAT_H */
|
|
|
1bdc94 |
--
|
|
|
1bdc94 |
1.8.3.1
|
|
|
1bdc94 |
|