[PATCH RFC 04/11] vl: Hardcode a VGA device for now

Markus Armbruster posted 11 patches 4 years, 2 months ago
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Eduardo Habkost <eduardo@habkost.net>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>, "Philippe Mathieu-Daudé" <philmd@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Michael Roth <michael.roth@amd.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eric Auger <eric.auger@redhat.com>
[PATCH RFC 04/11] vl: Hardcode a VGA device for now
Posted by Markus Armbruster 4 years, 2 months ago
My axing of the CLI also axed the (moderately complicated) code that
posts a request to the board to create a VGA device.  Hardcode such a
request, to facilitate manual testing.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 softmmu/vl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/softmmu/vl.c b/softmmu/vl.c
index b14db0f47f..07be92d5c0 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -534,6 +534,9 @@ static void qemu_create_default_devices(void)
     if (dpy.type == DISPLAY_TYPE_DEFAULT) {
         dpy.type = DISPLAY_TYPE_NONE;
     }
+
+    /* HACK: hardcoded VGA device */
+    vga_interface_type = VGA_STD;
 }
 
 Chardev *serial_hd(int i)
-- 
2.31.1