On Mon, Jun 03, 2019 at 02:27:54PM +0200, Jiri Denemark wrote:
On a KVM x86_64 host which supports invariant TSC this function can
be
used to detect the TSC frequency and the availability of TSC scaling.
The magic MSR numbers required to check if VMX scaling is supported on
the host are documented in Volume 3 of the Intel® 64 and IA-32
Architectures Software Developer’s Manual.
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/util/virhostcpu.c | 71 +++++++++++++++++++++++++++++++++++++++++++
src/util/virhostcpu.h | 11 +++++++
2 files changed, 82 insertions(+)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano