]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircpuhost: Add support for reading MSRs
authorJiri Denemark <jdenemar@redhat.com>
Fri, 22 Mar 2019 15:44:02 +0000 (16:44 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 12 Apr 2019 20:53:40 +0000 (22:53 +0200)
commitdf4b46737f43a1a67f9b5de2840213a1bd2b3cce
tree0a48001d046fbee0718b2123261470a5c0e93c50
parent1c0ff5df07ebfc1a7ec6db2ef150bd367cf73dbb
vircpuhost: Add support for reading MSRs

The new virHostCPUGetMSR internal API will try to read the MSR from
/dev/cpu/0/msr and if it is not possible (the device does not exist or
libvirt is running unprivileged), it will fallback to asking KVM for the
MSR using KVM_GET_MSRS ioctl.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virhostcpu.c
src/util/virhostcpu.h