From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: cpu frequency Date: Tue, 23 Dec 2014 15:40:22 +0100 Message-ID: <54997ED6.2080907@redhat.com> References: <549953F2.1040901@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Nerijus Baliunas , kvm@vger.kernel.org Return-path: Received: from mail-wi0-f180.google.com ([209.85.212.180]:48672 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755910AbaLWOka (ORCPT ); Tue, 23 Dec 2014 09:40:30 -0500 Received: by mail-wi0-f180.google.com with SMTP id n3so11038470wiv.1 for ; Tue, 23 Dec 2014 06:40:29 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: > A commercial application running on Windows (kvm guest) detects CPU as: > CPU_0: CPU0, Intel64 Family 6 Model 42 Stepping 1, 64, 64, 2200, > 078BFBFD000206A1, 10753, CPU 0 > After some time, without reboot, it detects as: > CPU_0: CPU0, Intel64 Family 6 Model 42 Stepping 1, 64, 64, 2298, > 078BFBFD000206A1, 10753, CPU 0 > > Windows Server 2012 Control Panel -> System shows CPU as 2.3 GHZ, but after > reboot it might show 2.2 or 1.97 GHz. > > The problem is, that commercial application stops working after it detects > CPU frequency change (2200 -> 2298 in above case). Is it possible to patch > qemu-kvm that it shows some constant frquency to the guest? Do you know how the application computes the frequency? In the case of Windows it's probably some timing loop that is executed at startup, and the result depends on frequency scaling in the host. Try adding this to the XML in the meanwhile, and see if the control panel shows the same value: Inside : Inside : Paolo