[5335] Change the way video graphics adapter is selected
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335 Author: malc Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)
Log Message:
-----------
Change the way video graphics adapter is selected
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmware
Update documentation accordingly.
Modified Paths:
--------------
trunk/qemu-doc.texi
trunk/vl.c
Modified: trunk/qemu-doc.texi
===================================================================
qemu-doc.texi +18 -5
@@ -955,11 +955,24 @@ @item -L path Set the directory for the BIOS, VGA BIOS and keymaps. -@item -std-vga -Simulate a standard VGA card with Bochs VBE extensions (default is -Cirrus Logic GD5446 PCI VGA). If your guest OS supports the VESA 2.0 -VBE extensions (e.g. Windows XP) and if you want to use high -resolution modes (>= 1280x1024x16) then you should use this option. +@item -vga @var{type} +Select type of VGA card to emulate. Valid values for @var{type} are +@table @code +@item cirrus +Cirrus Logic GD5446 Video card. All Windows versions starting from +Windows 95 should recognize and use this graphic card. For optimal +performances, use 16 bit color depth in the guest and the host OS. +(This one is the default) +@item std +Standard VGA card with Bochs VBE extensions. If your guest OS +supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if you want +to use high resolution modes (>= 1280x1024x16) then you should use +this option. +@item vmware +VMWare SVGA-II compatible adapter. Use it if you have sufficiently +recent XFree86/XOrg server or Windows guest with a driver for this +card. +@end table @item -no-acpi Disable ACPI (Advanced Configuration and Power Interface) support. Use
Modified: trunk/vl.c
===================================================================
vl.c +27 -19
90 lines not on this page · raw message
Quoted 9 lines · malc
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335Author: malc
Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selected
Quoted 6 lines
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmware
I'd prefer a more generic syntax, like -drive options:
-displayhw model=vga,type=std
-displayhw model=vga,type=std
-displayhw model=vga,type=std
-displayhw model=tcx,type=hardwarecursor
Then this option would be useful for non-VGA targets. I don't see -vga xxx as an improvement over -xxx-vga.
Also, there should be compatibility support for previous syntax, like -cdrom or -hda implies some -drive options.
Quoted 21 lines · Blue Swirl
Quoted 9 lines · malc
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335Author: malc
Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selectedQuoted 7 lines
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmwareI'd prefer a more generic syntax, like -drive options:
Review
Quoted 4 lines
(quoted diff) +0
-4-displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=tcx,type=hardwarecursor
I think this would quickly rat hole since it requires rewriting a huge amount of code.
Quoted 3 lines
Then this option would be useful for non-VGA targets. I don't see -vga xxx as an improvement over -xxx-vga.
If the next steps are creating a mechanism to register VGA hw emulation, then I think this is a step in the right direction.
I think we have to get to a place where most hardware devices are registered within a generic frame work before we start trying to expose that to the user.
Regards,
Anthony Liguori
Quoted 5 lines
Also, there should be compatibility support for previous syntax, like -cdrom or -hda implies some -drive options.
Quoted 24 lines · Anthony Liguori
Quoted 5 lines · Blue Swirl
Quoted 2 lines · malc
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335
Quoted 16 lines
Quoted 15 lines
Author: malc
Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selectedInstead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmware
Quoted 10 lines
Review
Quoted 7 lines
I'd prefer a more generic syntax, like -drive options:
(quoted diff) +0
-4-displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=tcx,type=hardwarecursorI think this would quickly rat hole since it requires rewriting a huge
amount of code.
I forgot to change the copied part, I meant to write:
-displayhw model=vga,type=std
-displayhw model=vga,type=cirrrus
-displayhw model=vga,type=vmware
-displayhw model=tcx,type=hardwarecursor
These options should be (for now) mutually exclusive, so you could select only one. I think the code changes would be limited to vl.c, with similar parsing to what is done for -drive. The devices would not be changed at this stage. I can't see how this would become any mess, what problems you foresee?
Quoted 11 lines
Quoted 4 lines
Then this option would be useful for non-VGA targets. I don't see -vga xxx as an improvement over -xxx-vga.
If the next steps are creating a mechanism to register VGA hw emulation,
then I think this is a step in the right direction.I think we have to get to a place where most hardware devices are
registered within a generic frame work before we start trying to expose that to the user.
Maybe. It would be great to get a config file.
2008/9/28 Blue Swirl <[email protected]>:
Quoted 18 lines · malc
Quoted 9 lines
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335Author: malc
Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selectedQuoted 6 lines
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmwareI'd prefer a more generic syntax, like -drive options:
Review
Quoted 4 lines
(quoted diff) +0
-4-displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=tcx,type=hardwarecursor
My thinking was that the next improvement to the -xxxvga syntax should be to allow multiple graphics cards to be inserted. An interesting question is whether a bus hierarchy oriented syntax instead of functionality otiented would be better, for example -pcihw slot=N,model=vga (perhaps not).
Quoted 6 lines
Then this option would be useful for non-VGA targets. I don't see -vga xxx as an improvement over -xxx-vga.
Also, there should be compatibility support for previous syntax, like -cdrom or -hda implies some -drive options.
Agreed.
Cheers
Quoted 19 lines · andrzej zaborowski
2008/9/28 Blue Swirl <[email protected]>:
Quoted 17 lines · malc
Quoted 15 lines
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335Author: malc
Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selectedInstead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmware
Quoted 12 lines
Review
Quoted 5 lines
I'd prefer a more generic syntax, like -drive options:
(quoted diff) +0
-4-displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=tcx,type=hardwarecursorMy thinking was that the next improvement to the -xxxvga syntax should
be to allow multiple graphics cards to be inserted. An interesting question is whether a bus hierarchy oriented syntax instead of functionality otiented would be better, for example -pcihw slot=N,model=vga (perhaps not).
That would work too, but there are more buses than just PCI. Even the old Sparcstations with SBus supported more than one display device. And for that you would have to specify how the devices and windows (SDL etc.) are connected. Then the syntax would become:
-displayhw model=vga,type=std,screen=0 -displayhw model=vga,type=cirrus,screen=1
or, if you follow the logic in this commit:
-vga std,0 -vga cirrus,1
2008/9/28 Blue Swirl <[email protected]>:
Quoted 8 lines · andrzej zaborowski
Quoted 5 lines
My thinking was that the next improvement to the -xxxvga syntax should
be to allow multiple graphics cards to be inserted. An interesting question is whether a bus hierarchy oriented syntax instead of functionality otiented would be better, for example -pcihw slot=N,model=vga (perhaps not).That would work too, but there are more buses than just PCI. Even the
Yes, for example USB related options already work this way.
Quoted 3 lines
old Sparcstations with SBus supported more than one display device. And for that you would have to specify how the devices and windows (SDL etc.) are connected.
Or you could leave it the way it is now: if you register three vga's they will get three consecutive vc's, similarly to -serial. So for example -serial -std-vga -serial -std-vga would give you 4 vc's in this order.
Regards
Quoted 23 lines · Blue Swirl
Quoted 9 lines · malc
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335Author: malc
Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selectedQuoted 6 lines
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmwareI'd prefer a more generic syntax, like -drive options:
(quoted diff) +0
-4-displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=vga,type=std -displayhw model=tcx,type=hardwarecursor
Quoted 2 lines
Then this option would be useful for non-VGA targets. I don't see -vga xxx as an improvement over -xxx-vga.
It wasn't intended to be an improvement to the current stuff, that said i belive it is. The goal was to find a way to provide an option (later commit) for controlling the retrace stuff, i could have added yet another command line switch for that, but it makes no sense in isolation.
[..snip..]
Signature · 1 line
mailto:[email protected]
Quoted 9 lines · malc
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335 Author: malc Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selected
Quoted 9 lines
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmwareUpdate documentation accordingly.
std is probably more aptly named "vesa".
I'm a little surprised that you didn't maintain the old arguments for compatibility. Is this going to totally break management tools or can they cope with this kind of change?
Regards,
Anthony Liguori
Quoted 9 lines · malc
Revision: 5335
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5335 Author: malc Date: 2008-09-28 00:42:05 +0000 (Sun, 28 Sep 2008)Log Message:
-----------
Change the way video graphics adapter is selected
Quoted 8 lines
Instead of having (current)three command line switches -std-vga, -cirrusvga and -vmwarevga, provide one -vga switch which takes an argument, so that:
qemu -std-vga becomes qemu -vga std
qemu -cirrusvga becomes qemu -vga cirrus
qemu -vmwarevga becomes qemu -vga vmwareUpdate documentation accordingly.
This breaks compatability with existing management tools for merely cosmetic benefits. Please add back in support for the existing syntax, in the same way that -hda, etc was preserved when we added -driver syntax.
Daniel
Signature · 4 lines
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|