From: Munkyu Im Date: Tue, 8 Sep 2015 06:53:23 +0000 (+0900) Subject: osutil: move making/checking vm lock position X-Git-Tag: TizenStudio_2.0_p2.3.2~39^2~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fb6ca1f3149c9a7859a80813fe4fad0a6c4d42f;p=sdk%2Femulator%2Fqemu.git osutil: move making/checking vm lock position move it after initializing device. otherwise cannot get drive image path. Change-Id: I22c730a6410cd7cb36ee3c4830370b5616dbfdd7 Signed-off-by: Munkyu Im --- diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index ccb0c51..6f18a1d 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -253,8 +253,6 @@ const char *prepare_maru(const char * const kernel_cmdline) // It is safe to call socket_init() multiple times. socket_init(); init_vm_base_port(); - // try to lock ASAP - make_vm_lock_os(); // Assemble new kernel cmdline maru_kernel_cmdline = g_strdup_printf("%s sdb_port=%d, " @@ -268,6 +266,7 @@ const char *prepare_maru(const char * const kernel_cmdline) void prepare_maru_after_device_init(void) { + make_vm_lock_os(); init_device_hotplug(); start_ecs(); init_sdb(get_emul_vm_base_port() + SDB_UDP_SENSOR_INDEX);