From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: question regarding intel_idle inside kvm Date: Thu, 15 Mar 2012 23:19:49 +0100 Message-ID: <4F626B05.9070909@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from smtp1-g21.free.fr ([212.27.42.1]:36739 "EHLO smtp1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761175Ab2COWT5 (ORCPT ); Thu, 15 Mar 2012 18:19:57 -0400 Received: from [192.168.254.152] (AToulouse-159-1-78-39.w92-134.abo.wanadoo.fr [92.134.221.39]) (Authenticated sender: daniel.lezcano) by smtp1-g21.free.fr (Postfix) with ESMTPA id 889D094013A for ; Thu, 15 Mar 2012 23:19:50 +0100 (CET) Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I recently did some modification in the cpuidle core and the patches were merge to linux-next. Someone reported a problem with the intel_idle cpuidle driver. I tried to reproduce the problem with kvm but the kernel fails to intialize the driver because of intel_intel_init function fails in the processor probe. After digging a bit, I found it fails at: drivers/idle/intel_idle.c static int intel_idle_probe(void) { ... if (boot_cpu_data.cpuid_level < CPUID_MWAIT_LEAF) return -ENODEV; ^^^^^ ... } I assumed the virtualized processor does not support this, so I specified the "-cpu host" because the host was running the intel_idle driver. But the driver still fails in kvm. I was wondering why that happens ? Does anyone have an idea of this problem ? Thanks in advance -- Daniel