* [Qemu-devel] -vga switch
[not found] <200804131242.58749.computers57@hotmail.com>
@ 2008-04-13 18:42 ` C.W. Betts
2008-04-14 20:38 ` [Qemu-devel] " Sebastian Herbszt
0 siblings, 1 reply; 8+ messages in thread
From: C.W. Betts @ 2008-04-13 18:42 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 400 bytes --]
I'm just throwing this out here to see if anyone else is interested in this
idea: There seems to be different arguments to set up a display adaptor for a
virtual machine. Why not set it up so that you can have a central way of
doing it, such as a -vga argument. For instance, -vga vmware would use the
vmware VGA adaptor, and -vga standard would use the standard VGA adaptor, and
so on.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: -vga switch
2008-04-13 18:42 ` [Qemu-devel] -vga switch C.W. Betts
@ 2008-04-14 20:38 ` Sebastian Herbszt
2008-04-15 7:26 ` Hervé Poussineau
0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Herbszt @ 2008-04-14 20:38 UTC (permalink / raw)
To: qemu-devel
> I'm just throwing this out here to see if anyone else is interested in this
> idea: There seems to be different arguments to set up a display adaptor for a
> virtual machine. Why not set it up so that you can have a central way of
> doing it, such as a -vga argument. For instance, -vga vmware would use the
> vmware VGA adaptor, and -vga standard would use the standard VGA adaptor, and
> so on.
You mean something like this?
--- vl.c.orig Mon Apr 14 19:20:56 2008
+++ vl.c Mon Apr 14 20:19:24 2008
@@ -7835,6 +7835,7 @@ enum {
QEMU_OPTION_old_param,
QEMU_OPTION_clock,
QEMU_OPTION_startdate,
+ QEMU_OPTION_vga,
};
typedef struct QEMUOption {
@@ -7946,6 +7947,7 @@ const QEMUOption qemu_options[] = {
#endif
{ "clock", HAS_ARG, QEMU_OPTION_clock },
{ "startdate", HAS_ARG, QEMU_OPTION_startdate },
+ { "vga", HAS_ARG, QEMU_OPTION_vga },
{ NULL },
};
@@ -8793,6 +8795,21 @@ int main(int argc, char **argv)
}
rtc_date_offset = time(NULL) - rtc_start_date;
}
+ }
+ break;
+ case QEMU_OPTION_vga:
+ if (!strcmp(optarg, "cirrus")) {
+ cirrus_vga_enabled = 1;
+ vmsvga_enabled = 0;
+ } else if (!strcmp(optarg, "std")) {
+ cirrus_vga_enabled = 0;
+ vmsvga_enabled = 0;
+ } else if (!strcmp(optarg, "vmware")) {
+ cirrus_vga_enabled = 0;
+ vmsvga_enabled = 1;
+ } else {
+ fprintf(stderr, "Supported vga cards: cirrus, std, vmware\n");
+ exit(1);
}
break;
}
- Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: -vga switch
2008-04-14 20:38 ` [Qemu-devel] " Sebastian Herbszt
@ 2008-04-15 7:26 ` Hervé Poussineau
2008-04-20 20:55 ` [Qemu-devel] [PATCH] Add -display option Sebastian Herbszt
2008-05-05 0:14 ` [Qemu-devel] Re: -vga switch Luke -Jr
0 siblings, 2 replies; 8+ messages in thread
From: Hervé Poussineau @ 2008-04-15 7:26 UTC (permalink / raw)
To: qemu-devel
Hi,
Sebastian Herbszt a écrit :
>> I'm just throwing this out here to see if anyone else is interested in
>> this idea: There seems to be different arguments to set up a display
>> adaptor for a virtual machine. Why not set it up so that you can have
>> a central way of doing it, such as a -vga argument. For instance,
>> -vga vmware would use the vmware VGA adaptor, and -vga standard would
>> use the standard VGA adaptor, and so on.
>
> You mean something like this?
>
[snip]
>
I would better name it -display, as not all computers have
VGA-compatible cards.
Hervé
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [PATCH] Add -display option
2008-04-15 7:26 ` Hervé Poussineau
@ 2008-04-20 20:55 ` Sebastian Herbszt
2008-04-20 22:01 ` Anthony Liguori
2008-05-05 0:14 ` [Qemu-devel] Re: -vga switch Luke -Jr
1 sibling, 1 reply; 8+ messages in thread
From: Sebastian Herbszt @ 2008-04-20 20:55 UTC (permalink / raw)
To: qemu-devel
> I would better name it -display, as not all computers have
> VGA-compatible cards.
--- vl.c.orig Tue Apr 15 20:07:18 2008
+++ vl.c Sun Apr 20 20:47:15 2008
@@ -7852,6 +7852,7 @@
QEMU_OPTION_old_param,
QEMU_OPTION_clock,
QEMU_OPTION_startdate,
+ QEMU_OPTION_display,
};
typedef struct QEMUOption {
@@ -7964,6 +7965,7 @@
#endif
{ "clock", HAS_ARG, QEMU_OPTION_clock },
{ "startdate", HAS_ARG, QEMU_OPTION_startdate },
+ { "display", HAS_ARG, QEMU_OPTION_display },
{ NULL },
};
@@ -8816,6 +8818,26 @@
}
rtc_date_offset = time(NULL) - rtc_start_date;
}
+ }
+ break;
+ case QEMU_OPTION_display:
+ if (!strcmp(optarg, "cirrus")) {
+ cirrus_vga_enabled = 1;
+ vmsvga_enabled = 0;
+ } else if (!strcmp(optarg, "std")) {
+ cirrus_vga_enabled = 0;
+ vmsvga_enabled = 0;
+ } else if (!strcmp(optarg, "vmware")) {
+ cirrus_vga_enabled = 0;
+ vmsvga_enabled = 1;
+ } else if (!strcmp(optarg, "none")) {
+ serial_devices[0] = "stdio";
+ parallel_devices[0] = "null";
+ monitor_device = "stdio";
+ nographic = 1;
+ } else {
+ fprintf(stderr, "Display devices available: cirrus, std, vmware, none\n");
+ exit(1);
}
break;
}
- Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Add -display option
2008-04-20 20:55 ` [Qemu-devel] [PATCH] Add -display option Sebastian Herbszt
@ 2008-04-20 22:01 ` Anthony Liguori
2008-04-20 23:14 ` Daniel P. Berrange
0 siblings, 1 reply; 8+ messages in thread
From: Anthony Liguori @ 2008-04-20 22:01 UTC (permalink / raw)
To: qemu-devel
Sebastian Herbszt wrote:
>> I would better name it -display, as not all computers have
>> VGA-compatible cards.
>
> --- vl.c.orig Tue Apr 15 20:07:18 2008
> +++ vl.c Sun Apr 20 20:47:15 2008
> @@ -7852,6 +7852,7 @@
> QEMU_OPTION_old_param,
> QEMU_OPTION_clock,
> QEMU_OPTION_startdate,
> + QEMU_OPTION_display,
> };
>
> typedef struct QEMUOption {
> @@ -7964,6 +7965,7 @@
> #endif
> { "clock", HAS_ARG, QEMU_OPTION_clock },
> { "startdate", HAS_ARG, QEMU_OPTION_startdate },
> + { "display", HAS_ARG, QEMU_OPTION_display },
> { NULL },
> };
>
> @@ -8816,6 +8818,26 @@
> }
> rtc_date_offset = time(NULL) - rtc_start_date;
> }
> + }
> + break;
> + case QEMU_OPTION_display:
> + if (!strcmp(optarg, "cirrus")) {
> + cirrus_vga_enabled = 1;
> + vmsvga_enabled = 0;
> + } else if (!strcmp(optarg, "std")) {
> + cirrus_vga_enabled = 0;
> + vmsvga_enabled = 0;
> + } else if (!strcmp(optarg, "vmware")) {
> + cirrus_vga_enabled = 0;
> + vmsvga_enabled = 1;
> + } else if (!strcmp(optarg, "none")) {
> + serial_devices[0] = "stdio";
> + parallel_devices[0] = "null";
> + monitor_device = "stdio";
> + nographic = 1;
I don't think -display none should be a synonym for -nographic. It
should just suppress the creation of a VGA device. If a platform
doesn't support that, it should raise an error.
Regards,
Anthony Liguori
> + } else {
> + fprintf(stderr, "Display devices available:
> cirrus, std, vmware, none\n");
> + exit(1);
> }
> break;
> }
>
>
> - Sebastian
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Add -display option
2008-04-20 22:01 ` Anthony Liguori
@ 2008-04-20 23:14 ` Daniel P. Berrange
2008-04-22 23:00 ` [Qemu-devel] " Sebastian Herbszt
0 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrange @ 2008-04-20 23:14 UTC (permalink / raw)
To: qemu-devel
On Sun, Apr 20, 2008 at 05:01:27PM -0500, Anthony Liguori wrote:
> Sebastian Herbszt wrote:
> >>I would better name it -display, as not all computers have
> >>VGA-compatible cards.
> >+ break;
> >+ case QEMU_OPTION_display:
> >+ if (!strcmp(optarg, "cirrus")) {
> >+ cirrus_vga_enabled = 1;
> >+ vmsvga_enabled = 0;
> >+ } else if (!strcmp(optarg, "std")) {
> >+ cirrus_vga_enabled = 0;
> >+ vmsvga_enabled = 0;
> >+ } else if (!strcmp(optarg, "vmware")) {
> >+ cirrus_vga_enabled = 0;
> >+ vmsvga_enabled = 1;
> >+ } else if (!strcmp(optarg, "none")) {
> >+ serial_devices[0] = "stdio";
> >+ parallel_devices[0] = "null";
> >+ monitor_device = "stdio";
> >+ nographic = 1;
>
> I don't think -display none should be a synonym for -nographic. It
> should just suppress the creation of a VGA device. If a platform
> doesn't support that, it should raise an error.
I agree - its rather unfortunate that -nographic changes the default
settings for serial / parallel devices - it makes it troublesome to
launch QEMU with a predictable config. Having 'none' merely supress
the VGA device would be preferrable behaviour.
It is certainly nice from a libvirt point of view to have a generic
flag -display like this.
Dan.
--
|: Red Hat, Engineering, Boston -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 :|
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: [PATCH] Add -display option
2008-04-20 23:14 ` Daniel P. Berrange
@ 2008-04-22 23:00 ` Sebastian Herbszt
0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Herbszt @ 2008-04-22 23:00 UTC (permalink / raw)
To: Daniel P. Berrange, qemu-devel
From: "Daniel P. Berrange"
> On Sun, Apr 20, 2008 at 05:01:27PM -0500, Anthony Liguori wrote:
>> Sebastian Herbszt wrote:
>> >>I would better name it -display, as not all computers have
>> >>VGA-compatible cards.
>
>> >+ break;
>> >+ case QEMU_OPTION_display:
>> >+ if (!strcmp(optarg, "cirrus")) {
>> >+ cirrus_vga_enabled = 1;
>> >+ vmsvga_enabled = 0;
>> >+ } else if (!strcmp(optarg, "std")) {
>> >+ cirrus_vga_enabled = 0;
>> >+ vmsvga_enabled = 0;
>> >+ } else if (!strcmp(optarg, "vmware")) {
>> >+ cirrus_vga_enabled = 0;
>> >+ vmsvga_enabled = 1;
>> >+ } else if (!strcmp(optarg, "none")) {
>> >+ serial_devices[0] = "stdio";
>> >+ parallel_devices[0] = "null";
>> >+ monitor_device = "stdio";
>> >+ nographic = 1;
>>
>> I don't think -display none should be a synonym for -nographic. It
>> should just suppress the creation of a VGA device. If a platform
>> doesn't support that, it should raise an error.
>
> I agree - its rather unfortunate that -nographic changes the default
> settings for serial / parallel devices - it makes it troublesome to
> launch QEMU with a predictable config. Having 'none' merely supress
> the VGA device would be preferrable behaviour.
Since i did not find that functionality yet, what would be the correct
implementation? Would adding an "int display_enabled = 1" in vl.c
suffice? With "-display none" display_enabled would be set to 0.
A platform not supporting it would then bail out with an error in its
init (e.g. pc_init1 from hw/pc.c).
- Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: -vga switch
2008-04-15 7:26 ` Hervé Poussineau
2008-04-20 20:55 ` [Qemu-devel] [PATCH] Add -display option Sebastian Herbszt
@ 2008-05-05 0:14 ` Luke -Jr
1 sibling, 0 replies; 8+ messages in thread
From: Luke -Jr @ 2008-05-05 0:14 UTC (permalink / raw)
To: qemu-devel
On Tuesday 15 April 2008, Hervé Poussineau wrote:
> I would better name it -display, as not all computers have
> VGA-compatible cards.
-display is pretty standard to specify the X display to connect to...
How about -videoout or such?
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-05 0:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200804131242.58749.computers57@hotmail.com>
2008-04-13 18:42 ` [Qemu-devel] -vga switch C.W. Betts
2008-04-14 20:38 ` [Qemu-devel] " Sebastian Herbszt
2008-04-15 7:26 ` Hervé Poussineau
2008-04-20 20:55 ` [Qemu-devel] [PATCH] Add -display option Sebastian Herbszt
2008-04-20 22:01 ` Anthony Liguori
2008-04-20 23:14 ` Daniel P. Berrange
2008-04-22 23:00 ` [Qemu-devel] " Sebastian Herbszt
2008-05-05 0:14 ` [Qemu-devel] Re: -vga switch Luke -Jr
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).