evdi: removed blocked condition by emuld connection
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Mon, 15 Jun 2015 07:15:34 +0000 (16:15 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Wed, 17 Jun 2015 08:23:29 +0000 (17:23 +0900)
Change-Id: I91a72914a35a075a064c11c1656af8b1d4e67bfc
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
(cherry picked from commit 80abb2040e5f14a3d382d532a5c78c48f613d3b9)

tizen/src/ecs/ecs_msg_injector.c
tizen/src/hw/virtio/maru_virtio_evdi.c

index 2a1196d04c7a3c857a0062b8180c68c5204948bc..20454434c0f0ec3c964ff9821d8100036857e2a3 100644 (file)
@@ -873,8 +873,11 @@ static void do_package(char* cat, type_action action, const char* data)
 
 static bool injector_req_handle(char* cat, type_action action, const char* data)
 {
+    int state = 0;
     if (!strcmp(cat, "suspend")) {
-        ecs_suspend_lock_state(ecs_get_suspend_state());
+        state = ecs_get_suspend_state();
+        LOG_INFO("send suspend lock state : %d\n", state);
+        ecs_suspend_lock_state(state);
         return true;
     } else if (!strcmp(cat, "boot")) {
         LOG_INFO("emulator booting done.\n");
index 10afe9ec25e9478783efb14b4a80702840044b59..26f95636bcde6aa6606aa8335a0c1d059f39d3ee 100644 (file)
@@ -127,11 +127,6 @@ static void flush_evdi_recv_queue(void)
 {
     int index;
 
-    if (!get_emuld_connection()) {
-        INFO("emuld is not ready.\n");
-        return;
-    }
-
     if (unlikely(!virtio_queue_ready(vio_evdi->rvq))) {
         INFO("virtio queue is not ready\n");
         return;
@@ -164,8 +159,8 @@ static void flush_evdi_recv_queue(void)
          memset(elem.in_sg[0].iov_base, 0, elem.in_sg[0].iov_len);
          memcpy(elem.in_sg[0].iov_base, &msginfo->info, sizeof(struct msg_info));
 
-         //INFO(">> send to guest count = %d, use = %d, msg = %s, iov_len = %d \n",
-                // ++g_cnt, msginfo->info.use, msginfo->info.buf, elem.in_sg[0].iov_len);
+         //INFO(">> send to guest use = %d, msg = %s, iov_len = %d \n",
+                 //msginfo->info.use, msginfo->info.buf, elem.in_sg[0].iov_len);
 
          virtqueue_push(vio_evdi->rvq, &elem, sizeof(msg_info));
          virtio_notify(&vio_evdi->vdev, vio_evdi->rvq);