From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: KVM guest OS reports zero CPU frequency via /proc/cpuinfo Date: Fri, 1 Mar 2013 22:03:40 -0300 Message-ID: <20130302010340.GA28128@amt.cnet> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, Don Slutz To: Dmitry Krivenok Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132Ab3CBBTT (ORCPT ); Fri, 1 Mar 2013 20:19:19 -0500 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: https://lists.gnu.org/archive/html/qemu-devel/2012-10/msg02269.html On Wed, Feb 20, 2013 at 01:25:04AM +0400, Dmitry Krivenok wrote: > Hello, >=20 > I encountered an odd issue with running VMWare .vmdk image inside KVM= =2E >=20 > I run KVM as follows > qemu-kvm -hda ./guest.vmdk -m 4096 >=20 > and guest OS (SLES11) boots fine, but reports zero CPU freq via > /proc/cpuinfo (cpu MHz): >=20 >=20 >=20 > $ cat /proc/cpuinfo >=20 > processor : 0 >=20 > vendor_id : GenuineIntel >=20 > cpu family : 6 >=20 > model : 2 >=20 > model name : QEMU Virtual CPU version 0.15.1 >=20 > stepping : 3 >=20 > cpu MHz : 0.000 >=20 > cache size : 4096 KB >=20 > fpu : yes >=20 > fpu_exception : yes >=20 > cpuid level : 4 >=20 > wp : yes >=20 > flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mc= a > cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good > nopl pni cx16 popcnt lahf_lm >=20 > bogomips : 2088.96 >=20 > clflush size : 64 >=20 > cache_alignment : 64 >=20 > address sizes : 40 bits physical, 48 bits virtual >=20 > power management: >=20 > $ >=20 >=20 >=20 > I tried to convert .vmdk to qcow2 image and also tried different > =E2=80=93cpu=3D options, but I always get zero frequency in th= is guest. >=20 > Another guest (Ubuntu in native qcow2 image) works fine and reports > correct cpu frequency, so I only see this problem with this particula= r > .vmdk image. >=20 >=20 >=20 > I=E2=80=99m running >=20 > QEMU emulator version 0.15.1 (kvm-0.15.1-0.17.3), Copyright (c) > 2003-2008 Fabrice Bellard >=20 > on SLES11-SP2 host (3.0 kernel + patches). >=20 > This problem is critical for me because by guest runs a binary which > relies on non-zero CPU freq in /proc/cpuinfo. >=20 >=20 > Any ideas? >=20 > Thanks! >=20 > -- > Sincerely yours, Dmitry V. Krivenok > e-mail: krivenok.dmitry@gmail.com > skype: krivenok_dmitry > jabber: krivenok_dmitry@jabber.ru > icq: 242-526-443 > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html