From: "Sebastian Herbszt" <herbszt@gmx.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: -vga switch
Date: Mon, 14 Apr 2008 22:38:32 +0200 [thread overview]
Message-ID: <027a01c89e6f$a103d300$0201a8c0@zeug> (raw)
In-Reply-To: BAY110-DAV84E68554126EF6FD13300B9E90@phx.gbl
> 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
next prev parent reply other threads:[~2008-04-14 20:39 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 ` Sebastian Herbszt [this message]
2008-04-15 7:26 ` [Qemu-devel] " 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
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='027a01c89e6f$a103d300$0201a8c0@zeug' \
--to=herbszt@gmx.de \
--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).