[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 2/7] Introduce -display argument
From: |
Jes Sorensen |
Subject: |
[Qemu-devel] Re: [PATCH 2/7] Introduce -display argument |
Date: |
Tue, 15 Mar 2011 15:54:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 |
On 03/15/11 15:51, Anthony Liguori wrote:
>> + } else if (strstart(opts, ",window_close=",&nextopt)) {
>> + opts = nextopt;
>> + if (strstart(opts, "on",&nextopt)) {
>> + no_quit = 0;
>> + } else if (strstart(opts, "off",&nextopt)) {
>> + no_quit = 1;
>> + } else {
>> + goto invalid_display;
>> + }
>> + } else {
>> + goto invalid_display;
>> + }
>> + opts = nextopt;
>> + }
>
> So the natural reaction here is going to be, "just use QemuOpts". But
> this is harder than it seems. The problem is that the VNC options
> inverse the meaning of booleans making conversion of VNC to use QemuOpts
> much harder than it would appear.
>
> Doing it this way lets us pass the vnc option string directly to
> vnc_display_open(). I don't like it much, but I don't mind it as an
> interim step.
Yeah, it isn't particularly pretty, but it really requires we rewamp the
arguments completely which I think is out of scope for the initial
change here.
Cheers,
Jes
- [Qemu-devel] [PATCH v2 0/7] Introduce -display and make VNC optional, Jes . Sorensen, 2011/03/15
- [Qemu-devel] [PATCH 3/7] Introduce -display none, Jes . Sorensen, 2011/03/15
- [Qemu-devel] [PATCH 4/7] Add support for -display vnc, Jes . Sorensen, 2011/03/15
- [Qemu-devel] [PATCH 5/7] error message if user specifies SDL cmd line option when SDL is disabled, Jes . Sorensen, 2011/03/15
- [Qemu-devel] [PATCH 6/7] error message if user specifies curses on cmd line when curses is disabled, Jes . Sorensen, 2011/03/15
- [Qemu-devel] [PATCH 7/7] Make VNC support optional, Jes . Sorensen, 2011/03/15