]> xenbits.xensource.com Git - libvirt.git/commit
util: Add virHostCPUGetTscInfo
authorJiri Denemark <jdenemar@redhat.com>
Thu, 30 May 2019 14:34:59 +0000 (16:34 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 3 Jun 2019 16:07:16 +0000 (18:07 +0200)
commitf0f6faba63becfab38c928905ac6ed79f9a318b8
tree3e13b8dbc244e5dd106f88b5f7f0622be972be47
parent02c1d3a6e1d24a777254f4dceeaf54942db7f871
util: Add virHostCPUGetTscInfo

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@redhat.com>
src/util/virhostcpu.c
src/util/virhostcpu.h