From: "Sebastian Herbszt" <herbszt@gmx.de>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] Add -display option
Date: Wed, 23 Apr 2008 01:00:26 +0200 [thread overview]
Message-ID: <04a201c8a4cc$c5001620$0201a8c0@zeug> (raw)
In-Reply-To: 20080420231418.GA30932@redhat.com
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
next prev parent reply other threads:[~2008-04-22 23:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 ` Sebastian Herbszt [this message]
2008-05-05 0:14 ` [Qemu-devel] Re: -vga switch Luke -Jr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='04a201c8a4cc$c5001620$0201a8c0@zeug' \
--to=herbszt@gmx.de \
--cc=berrange@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).