lkml.org 
[lkml]   [2019]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/5] KVM: X86: Add virtual C-states residency msrs support
Date
After exposing some host CPU power management capabilities to dedicated 
instances, there is a requirement to consult current idle power-state
residency statistics by turbostat.

This patchset adds virtual C-states residency msrs emulation. Allowing
guest reads CORE cstate when exposing host CPU power management capabilities
to the guest. PKG cstate is restricted currently to avoid a guest to get
the whole package information in multi-tenant scenario.

v1 -> v2:
* add residency msrs emulation (base on Paolo's design)

Wanpeng Li (5):
KVM: X86: Dynamic allocate core residency msr state
KVM: X86: Introduce residency msrs read/write operations
KVM: X86: setup residency msrs during vCPU creation
KVM: VMX: Add get/set residency msrs logic
KVM: X86: Save/restore residency values when sched_out/sched_in

arch/arm/include/asm/kvm_host.h | 1 +
arch/arm64/include/asm/kvm_host.h | 1 +
arch/mips/include/asm/kvm_host.h | 1 +
arch/powerpc/include/asm/kvm_host.h | 1 +
arch/s390/include/asm/kvm_host.h | 1 +
arch/x86/include/asm/kvm_host.h | 11 ++++
arch/x86/kvm/vmx/vmx.c | 15 ++++++
arch/x86/kvm/x86.c | 104 ++++++++++++++++++++++++++++++++++++
arch/x86/kvm/x86.h | 5 ++
include/linux/kvm_host.h | 1 +
virt/kvm/kvm_main.c | 1 +
11 files changed, 142 insertions(+)

--
2.7.4

\
 
 \ /
  Last update: 2019-06-11 09:35    [W:0.089 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site