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");
{
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;
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);