[PATCH v2 0/5] KVM: X86: Add virtual C-states residency msrs support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux