* question regarding intel_idle inside kvm
@ 2012-03-15 22:19 Daniel Lezcano
2012-03-19 12:31 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2012-03-15 22:19 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: question regarding intel_idle inside kvm
2012-03-15 22:19 question regarding intel_idle inside kvm Daniel Lezcano
@ 2012-03-19 12:31 ` Avi Kivity
2012-03-19 13:20 ` Daniel Lezcano
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2012-03-19 12:31 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: kvm
On 03/16/2012 12:19 AM, Daniel Lezcano wrote:
> 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 ?
intel_idle() uses mwait, which kvm does not virtualize (it's very
expensive to do so and brings no benefits).
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: question regarding intel_idle inside kvm
2012-03-19 12:31 ` Avi Kivity
@ 2012-03-19 13:20 ` Daniel Lezcano
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2012-03-19 13:20 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
On 03/19/2012 01:31 PM, Avi Kivity wrote:
> On 03/16/2012 12:19 AM, Daniel Lezcano wrote:
>> 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 ?
> intel_idle() uses mwait, which kvm does not virtualize (it's very
> expensive to do so and brings no benefits).
Ok, thanks for the information. I was afraid of that :/
I will go to for a real host then :)
Thanks !
-- Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-19 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 22:19 question regarding intel_idle inside kvm Daniel Lezcano
2012-03-19 12:31 ` Avi Kivity
2012-03-19 13:20 ` Daniel Lezcano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox