Patchwork [v2,1/2] isa-vga: Make available with -device, like the other VGA qdevs

login
register
mail settings
Submitter Markus Armbruster
Date June 7, 2011, 8:34 a.m.
Message ID <1307435671-28431-2-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/99094/
State New
Headers show

Comments

Markus Armbruster - June 7, 2011, 8:34 a.m.
Switch no_user off and make it suppress the default VGA.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/vga-isa.c |    1 -
 vl.c         |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/vga-isa.c b/hw/vga-isa.c
index fde0d56..245841f 100644
--- a/hw/vga-isa.c
+++ b/hw/vga-isa.c
@@ -77,7 +77,6 @@  static ISADeviceInfo vga_info = {
     .qdev.size     = sizeof(ISAVGAState),
     .qdev.vmsd     = &vmstate_vga_common,
     .qdev.reset     = vga_reset_isa,
-    .qdev.no_user  = 1,
     .init          = vga_initfn,
 };
 
diff --git a/vl.c b/vl.c
index b362871..fd41c15 100644
--- a/vl.c
+++ b/vl.c
@@ -289,6 +289,7 @@  static struct {
     { .driver = "VGA",                  .flag = &default_vga       },
     { .driver = "cirrus-vga",           .flag = &default_vga       },
     { .driver = "vmware-svga",          .flag = &default_vga       },
+    { .driver = "isa-vga",              .flag = &default_vga       },
 };
 
 static int default_driver_check(QemuOpts *opts, void *opaque)