diff options
author | Mark Wu | 2014-03-10 15:37:40 +0100 |
---|---|---|
committer | Andreas Färber | 2014-03-13 20:53:19 +0100 |
commit | d44229c54f7477035c7e914dd12c84e01bbd4123 (patch) | |
tree | 0bdd28ced4713108dd5758ee74678154e853045c /include/sysemu/sysemu.h | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-6' into staging (diff) | |
download | qemu-d44229c54f7477035c7e914dd12c84e01bbd4123.tar.gz qemu-d44229c54f7477035c7e914dd12c84e01bbd4123.tar.xz qemu-d44229c54f7477035c7e914dd12c84e01bbd4123.zip |
Fix vga_interface_type for command line argument '-device VGA'
Some machine (like pseries) initialization code determines if it has
graphics according to vga_interface_type. In the original code,
vga_interface_type is evaluated to VGA_NONE even if a VGA is added
via '-device VGA'. It causes the machine not aware of the graphics
device configured. Add a new VGA device type to indicate that it has a
VGA device, which will be initialized in QOM device initialization.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/sysemu/sysemu.h')
-rw-r--r-- | include/sysemu/sysemu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index b90df9ada1..c01304d39a 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -104,7 +104,7 @@ extern int autostart; typedef enum { VGA_NONE, VGA_STD, VGA_CIRRUS, VGA_VMWARE, VGA_XENFB, VGA_QXL, - VGA_TCX, VGA_CG3, + VGA_TCX, VGA_CG3, VGA_DEVICE } VGAInterfaceType; extern int vga_interface_type; |