From: Paolo Bonzini <pbonzini@redhat.com>
To: Nerijus Baliunas <nerijus@users.sourceforge.net>, kvm@vger.kernel.org
Subject: Re: cpu frequency
Date: Tue, 23 Dec 2014 15:40:22 +0100 [thread overview]
Message-ID: <54997ED6.2080907@redhat.com> (raw)
In-Reply-To: <loom.20141223T125634-529@post.gmane.org>
> 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 <features>:
<hyperv>
<relaxed state='on'/>
</hyperv>
Inside <clock offset='localtime'>:
<timer name='hypervclock' present='yes'/>
Paolo
next prev parent reply other threads:[~2014-12-23 14:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-23 11:19 cpu frequency Nerijus Baliunas
2014-12-23 11:37 ` Paolo Bonzini
2014-12-23 11:57 ` Nerijus Baliunas
2014-12-23 14:40 ` Paolo Bonzini [this message]
2014-12-23 22:52 ` Nerijus Baliunas
2015-01-05 12:44 ` Nerijus Baliunas
2015-02-03 13:25 ` Nerijus Baliunas
2015-02-03 14:03 ` Paolo Bonzini
2015-02-03 14:07 ` Andrey Korolyov
2015-02-04 0:06 ` Nerijus Baliunas
2015-02-04 7:20 ` Andrey Korolyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54997ED6.2080907@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=nerijus@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox