hax: Fix CPU 100% usage issue 83/14783/1
authorDeng, Wei <wei.a.deng@intel.com>
Mon, 13 Jan 2014 02:58:44 +0000 (10:58 +0800)
committerDeng, Wei <wei.a.deng@intel.com>
Mon, 13 Jan 2014 02:58:52 +0000 (10:58 +0800)
Change-Id: I8e24b60b4a0b78f3bd76a5079e150dbf7f5eb396
Signed-off-by: Deng, Wei <wei.a.deng@intel.com>
cpus.c

diff --git a/cpus.c b/cpus.c
index 47ca59d..ea0d684 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -78,7 +78,7 @@ static bool cpu_thread_is_idle(CPUState *cpu)
         return true;
     }
     if (!cpu->halted || qemu_cpu_has_work(cpu) ||
-        kvm_halt_in_kernel() || hax_enabled()) {
+        kvm_halt_in_kernel()) {
         return false;
     }
     return true;