From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48655 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz6th-0007Kl-7P for qemu-devel@nongnu.org; Mon, 14 Mar 2011 08:29:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz6tf-0004JU-6U for qemu-devel@nongnu.org; Mon, 14 Mar 2011 08:29:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz6te-0004JF-NU for qemu-devel@nongnu.org; Mon, 14 Mar 2011 08:29:15 -0400 From: Jes.Sorensen@redhat.com Date: Mon, 14 Mar 2011 13:28:43 +0100 Message-Id: <1300105726-25937-3-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1300105726-25937-1-git-send-email-Jes.Sorensen@redhat.com> References: <1300105726-25937-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 2/5] Introduce -display none List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, peter.maydell@linaro.org From: Jes Sorensen New option -display none. This option differs from -display nographic by not trying to take control of stdio etc. but instead behaves as if a graphics display is enabled, except that it doesn't show one. Signed-off-by: Jes Sorensen --- qemu-options.hx | 6 ++++++ sysemu.h | 1 + vl.c | 2 ++ 3 files changed, 9 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index f14ff02..21c0d97 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -615,6 +615,12 @@ you can totally disable graphical output so that QEMU is a simple command line application. The emulated serial port is redirected on the console. Therefore, you can still use QEMU to debug a Linux kernel with a serial console. +@item none +Pick the none display option. This option will still run with an +emulated graphics card, but none will be displayed to the QEMU +user. This options differs from the -nographic option in that QEMU +will behave like if one of the display options had been picked, it +will not change the control on the command line. @end table ETEXI diff --git a/sysemu.h b/sysemu.h index 0a83ab9..c43c7af 100644 --- a/sysemu.h +++ b/sysemu.h @@ -110,6 +110,7 @@ typedef enum DisplayType DT_CURSES, DT_SDL, DT_NOGRAPHIC, + DT_NONE, } DisplayType; extern int autostart; diff --git a/vl.c b/vl.c index e797e61..8ed4607 100644 --- a/vl.c +++ b/vl.c @@ -1577,6 +1577,8 @@ static DisplayType select_display(const char *p) #endif } else if (strstart(p, "nographic", &opts)) { display = DT_NOGRAPHIC; + } else if (strstart(p, "none", &opts)) { + display = DT_NONE; } else { fprintf(stderr, "Unknown display type: %s\n", p); exit(1); -- 1.7.4