aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-03-21 14:14:38 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-21 14:14:38 -0500
commit2d114dc16f723649328e84919718f79ed2672903 (patch)
treea3bae9058488336aa4737eac29ea5a97a5568c66
parent31dc63dfa1f9ec88f9c36eabac294570584e473d (diff)
downloadqemu-2d114dc16f723649328e84919718f79ed2672903.zip
qemu-2d114dc16f723649328e84919718f79ed2672903.tar.gz
qemu-2d114dc16f723649328e84919718f79ed2672903.tar.bz2
Revert "qmp: don't make -qmp disable the default monitor"
This reverts commit d49f626ed00cecc90fb1ff88da9bdf11e57094d1.
-rw-r--r--vl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/vl.c b/vl.c
index 26b638c..a4d6bc2 100644
--- a/vl.c
+++ b/vl.c
@@ -276,7 +276,6 @@ static int default_vga = 1;
static int default_floppy = 1;
static int default_cdrom = 1;
static int default_sdcard = 1;
-static int default_qmp = 1;
static struct {
const char *driver;
@@ -4300,22 +4299,15 @@ int main(int argc, char **argv, char **envp)
break;
case QEMU_OPTION_qmp:
monitor_parse(optarg, "control");
- default_qmp = 0;
+ default_monitor = 0;
break;
case QEMU_OPTION_mon:
opts = qemu_opts_parse(&qemu_mon_opts, optarg, 1);
if (!opts) {
fprintf(stderr, "parse error: %s\n", optarg);
exit(1);
- } else {
- const char *mode;
- mode = qemu_opt_get(opts, "mode");
- if (mode == NULL || strcmp(mode, "readline") == 0) {
- default_monitor = 0;
- } else if (strcmp(mode, "control") == 0) {
- default_qmp = 0;
- }
}
+ default_monitor = 0;
break;
case QEMU_OPTION_chardev:
opts = qemu_opts_parse(&qemu_chardev_opts, optarg, 1);
@@ -4553,7 +4545,6 @@ int main(int argc, char **argv, char **envp)
default_parallel = 0;
default_virtcon = 0;
default_monitor = 0;
- default_qmp = 0;
default_vga = 0;
default_net = 0;
default_floppy = 0;