qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
To: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, Leif Lindholm <quic_llindhol@quicinc.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Thomas Huth <thuth@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Subject: [PATCH v2 2/5] Add Bochs to list of vga_interfaces
Date: Wed, 24 May 2023 12:18:20 +0200	[thread overview]
Message-ID: <20230524101823.810737-2-marcin.juszkiewicz@linaro.org> (raw)
In-Reply-To: <20230524101823.810737-1-marcin.juszkiewicz@linaro.org>

arm/sbsa-ref uses Bochs-display graphics card and without it being
present in vga_interfaces "-vga none" argument handling cannot be added.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
 include/sysemu/sysemu.h | 2 +-
 softmmu/vl.c            | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 25be2a692e..9713a1b470 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -29,7 +29,7 @@ extern int autostart;
 
 typedef enum {
     VGA_NONE, VGA_STD, VGA_CIRRUS, VGA_VMWARE, VGA_XENFB, VGA_QXL,
-    VGA_TCX, VGA_CG3, VGA_DEVICE, VGA_VIRTIO,
+    VGA_TCX, VGA_CG3, VGA_DEVICE, VGA_VIRTIO, VGA_BOCHS,
     VGA_TYPE_MAX,
 } VGAInterfaceType;
 
diff --git a/softmmu/vl.c b/softmmu/vl.c
index b0b96f67fa..07e6030875 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -216,6 +216,7 @@ static struct {
     { .driver = "ati-vga",              .flag = &default_vga       },
     { .driver = "vhost-user-vga",       .flag = &default_vga       },
     { .driver = "virtio-vga-gl",        .flag = &default_vga       },
+    { .driver = "bochs-display",        .flag = &default_vga       },
 };
 
 static QemuOptsList qemu_rtc_opts = {
@@ -935,6 +936,11 @@ static const VGAInterfaceInfo vga_interfaces[VGA_TYPE_MAX] = {
         .name = "CG3 framebuffer",
         .class_names = { "cgthree" },
     },
+    [VGA_BOCHS] = {
+        .opt_name = "bochs-display",
+        .name = "Bochs framebuffer",
+        .class_names = { "bochs-display" },
+    },
 #ifdef CONFIG_XEN_BACKEND
     [VGA_XENFB] = {
         .opt_name = "xenfb",
-- 
2.40.1



  reply	other threads:[~2023-05-24 10:19 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-17 10:53 [PATCH v2] hw/arm/sbsa-ref: add GIC node into DT Marcin Juszkiewicz
2023-05-19 14:29 ` Leif Lindholm
2023-05-23 13:50 ` Peter Maydell
2023-05-23 15:56   ` [PATCH 1/2] docs: sbsa: correct graphics card name Marcin Juszkiewicz
2023-05-23 15:56     ` [PATCH 2/2] docs: sbsa: document platform version changes Marcin Juszkiewicz
2023-05-23 17:11     ` [PATCH 1/2] docs: sbsa: correct graphics card name Thomas Huth
2023-05-23 17:28       ` [PATCH v2 1/3] " Marcin Juszkiewicz
2023-05-23 17:28         ` [PATCH v2 2/3] docs: sbsa: document platform version changes Marcin Juszkiewicz
2023-05-23 17:28         ` [PATCH v2 3/3] hw/arm/Kconfig: sbsa-ref uses Bochs display Marcin Juszkiewicz
2023-05-23 18:42           ` Thomas Huth
2023-05-23 18:29         ` [PATCH v2 1/3] docs: sbsa: correct graphics card name Thomas Huth
2023-05-23 17:30       ` [PATCH 1/2] " Marcin Juszkiewicz
2023-05-23 18:41         ` Thomas Huth
2023-05-25 10:05           ` Peter Maydell
2023-05-25 10:32             ` Thomas Huth
2023-05-25 10:44               ` Peter Maydell
2023-05-25 10:53                 ` Thomas Huth
2023-05-25 11:06                 ` Mark Cave-Ayland
2023-05-25 11:39                   ` Peter Maydell
2023-05-25 11:49                     ` Thomas Huth
2023-05-24  8:39       ` [PATCH 1/3] hw/arm/sbsa-ref: honor "-vga none" argument Marcin Juszkiewicz
2023-05-24  8:39         ` [PATCH 2/3] hw/arm/sbsa-ref: add gfx card only if we have pci Marcin Juszkiewicz
2023-05-24  8:59           ` Thomas Huth
2023-05-24  9:27           ` Thomas Huth
2023-05-24  8:39         ` [PATCH 3/3] hw/arm/sbsa-ref: use MachineClass->default_display Marcin Juszkiewicz
2023-05-24  9:22           ` Thomas Huth
2023-05-24  9:25           ` Thomas Huth
2023-05-24  8:51         ` [PATCH 1/3] hw/arm/sbsa-ref: honor "-vga none" argument Thomas Huth
2023-05-24  9:27         ` Thomas Huth
2023-05-24 10:18       ` [PATCH v2 1/5] hw/arm: Use MachineClass->default_nic in the sbsa-ref machine Marcin Juszkiewicz
2023-05-24 10:18         ` Marcin Juszkiewicz [this message]
2023-05-24 10:18         ` [PATCH v2 3/5] hw/arm/sbsa-ref: honor "-vga none" argument Marcin Juszkiewicz
2023-05-24 10:18         ` [PATCH v2 4/5] hw/arm/sbsa-ref: add gfx card only if we have pci Marcin Juszkiewicz
2023-05-24 10:18         ` [PATCH v2 5/5] hw/arm/sbsa-ref: use MachineClass->default_display Marcin Juszkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230524101823.810737-2-marcin.juszkiewicz@linaro.org \
    --to=marcin.juszkiewicz@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quic_llindhol@quicinc.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).