spice: fixed problem of displaying emulator skin
authorsungmin ha <sungmin82.ha@samsung.com>
Tue, 8 Sep 2015 04:24:02 +0000 (13:24 +0900)
committersung min Ha <sungmin82.ha@samsung.com>
Wed, 9 Sep 2015 05:14:35 +0000 (14:14 +0900)
When the emulator is booted up with "-spice" option,
the emulator skin should not be displayed.

Change-Id: Ic1e6a73b91cc8ba4ea99e44da14e16e3e170c034
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
include/sysemu/sysemu.h
vl.c

index 1715a8146b58aa17e03b67c0df06f78925589c4c..e49f228b859fe3381fdf22339a75905a2ac6219c 100644 (file)
@@ -101,6 +101,7 @@ typedef enum DisplayType
     DT_GTK,
     DT_NOGRAPHIC,
 #ifdef CONFIG_MARU
+    DT_MARU_REMOTE_SPICE,
 # ifdef CONFIG_JAVA_UI
     DT_MARU_SDL,
     DT_MARU_SHM,
diff --git a/vl.c b/vl.c
index 809a65df9f5ebe1862e8e609d397d780b10af0d2..b6761f03e75ba7060502a20cb4ab880ef195a0d5 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2188,6 +2188,13 @@ static DisplayType select_display(const char *p)
 # else
         fprintf(stderr, "maru_shm is disabled\n");
         exit(1);
+# endif
+    } else if (strstart(p, "maru_remote_spice", &opts)) {
+# ifdef CONFIG_SPICE
+        display = DT_MARU_REMOTE_SPICE;
+# else
+        fprintf(stderr, "maru_remote_spice is disabled\n");
+        exit(1);
 # endif
     } else if (strstart(p, "maru_qt", &opts)) {
 # ifdef CONFIG_QT