yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
ae23c9
From 4b889f33761a4447998b16846bfb983519def96d Mon Sep 17 00:00:00 2001
ae23c9
From: Thomas Huth <thuth@redhat.com>
ae23c9
Date: Wed, 28 Nov 2018 07:23:59 +0000
ae23c9
Subject: [PATCH 07/16] Declare cirrus-vga as deprecated
ae23c9
ae23c9
RH-Author: Thomas Huth <thuth@redhat.com>
ae23c9
Message-id: <1543389839-8995-1-git-send-email-thuth@redhat.com>
ae23c9
Patchwork-id: 83178
ae23c9
O-Subject: [RHEL8 qemu-kvm PATCH v2] Declare cirrus-vga as deprecated
ae23c9
Bugzilla: 1651994
ae23c9
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
ae23c9
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
ae23c9
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
ae23c9
ae23c9
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1651994
ae23c9
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=19300792
ae23c9
Upstream: n/a (downstream only)
ae23c9
Branch: rhel8/master-2.12.0
ae23c9
Branch: rhel8/master-3.0.0
ae23c9
ae23c9
The "cirrus" device in qemu-kvm is considered as a legacy device, which
ae23c9
also had a lot of security issues in the past. KVM guest should preferably
ae23c9
use "stdvga", "virtio-vga" or "qxl" as graphics card nowadays instead.
ae23c9
To avoid that we have to carry along the legacy "cirrus" device in
ae23c9
downstream qemu-kvm forever, let's mark it as deprecated in RHEL8 now,
ae23c9
so that we can finally remove it in RHEL9.
ae23c9
ae23c9
Signed-off-by: Thomas Huth <thuth@redhat.com>
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 hw/display/cirrus_vga.c | 3 +++
ae23c9
 1 file changed, 3 insertions(+)
ae23c9
ae23c9
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
ae23c9
index 014268a..29d6055 100644
ae23c9
--- a/hw/display/cirrus_vga.c
ae23c9
+++ b/hw/display/cirrus_vga.c
ae23c9
@@ -3098,6 +3098,9 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
ae23c9
      PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(dev);
ae23c9
      int16_t device_id = pc->device_id;
ae23c9
 
ae23c9
+     warn_report("'cirrus-vga' is deprecated, "
ae23c9
+                 "please use a different VGA card instead");
ae23c9
+
ae23c9
      /* follow real hardware, cirrus card emulated has 4 MB video memory.
ae23c9
        Also accept 8 MB/16 MB for backward compatibility. */
ae23c9
      if (s->vga.vram_size_mb != 4 && s->vga.vram_size_mb != 8 &&
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9