aboutsummaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/vl.c b/vl.c
index 063f6a9..3069a9c 100644
--- a/vl.c
+++ b/vl.c
@@ -376,20 +376,6 @@ void hw_error(const char *fmt, ...)
abort();
}
-static void set_proc_name(const char *s)
-{
-#if defined(__linux__) && defined(PR_SET_NAME)
- char name[16];
- if (!s)
- return;
- name[sizeof(name) - 1] = 0;
- strncpy(name, s, sizeof(name));
- /* Could rewrite argv[0] too, but that's a bit more complicated.
- This simple way is enough for `top'. */
- prctl(PR_SET_NAME, name);
-#endif
-}
-
/***************/
/* ballooning */
@@ -2727,7 +2713,7 @@ static void qemu_signal_lock(unsigned int msecs)
qemu_mutex_unlock(&qemu_fair_mutex);
}
-static void qemu_mutex_lock_iothread(void)
+void qemu_mutex_lock_iothread(void)
{
if (kvm_enabled()) {
qemu_mutex_lock(&qemu_fair_mutex);
@@ -2737,7 +2723,7 @@ static void qemu_mutex_lock_iothread(void)
qemu_signal_lock(100);
}
-static void qemu_mutex_unlock_iothread(void)
+void qemu_mutex_unlock_iothread(void)
{
qemu_mutex_unlock(&qemu_global_mutex);
}
@@ -3054,6 +3040,7 @@ static void tcg_cpu_exec(void)
}
}
+#if 0
static int cpu_has_work(CPUState *env)
{
if (env->stop)
@@ -3076,7 +3063,7 @@ static int tcg_has_work(void)
return 1;
return 0;
}
-
+#endif
static int vm_can_run(void)
{