[libvirt] [PATCH 34/36] vircpuhost: Add support for reading MSRs

Ján Tomko jtomko at redhat.com
Tue Apr 9 13:59:21 UTC 2019


On Mon, Apr 08, 2019 at 10:42:38AM +0200, Jiri Denemark wrote:
>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 at redhat.com>
>---
> src/libvirt_private.syms |  1 +
> src/util/virhostcpu.c    | 80 ++++++++++++++++++++++++++++++++++++++++
> src/util/virhostcpu.h    |  3 ++
> 3 files changed, 84 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190409/817fe98a/attachment-0001.sig>


More information about the libvir-list mailing list