Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx> --- cpus.c | 9 +-------- qemu-kvm.h | 2 -- 2 files changed, 1 insertions(+), 10 deletions(-) diff --git a/cpus.c b/cpus.c index 7bd888a..2cfaa0d 100644 --- a/cpus.c +++ b/cpus.c @@ -1187,13 +1187,6 @@ void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg) */ #ifdef CONFIG_KVM -#include <sys/syscall.h> - -unsigned long kvm_get_thread_id(void) -{ - return syscall(SYS_gettid); -} - static void kvm_main_loop_wait(CPUState *env, int timeout) { struct timespec ts; @@ -1291,7 +1284,7 @@ static void *ap_main_loop(void *_env) { CPUState *env = _env; - env->thread_id = kvm_get_thread_id(); + env->thread_id = qemu_get_thread_id(); env->halt_cond = qemu_mallocz(sizeof(QemuCond)); qemu_cond_init(env->halt_cond); diff --git a/qemu-kvm.h b/qemu-kvm.h index a4c811c..18eaade 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -300,6 +300,4 @@ int kvm_handle_tpr_access(CPUState *env); int kvm_tpr_enable_vapic(CPUState *env); -unsigned long kvm_get_thread_id(void); - #endif -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html