[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1560238451-19495-1-git-send-email-wanpengli@tencent.com>
Date: Tue, 11 Jun 2019 15:34:06 +0800
From: Wanpeng Li <kernellwp@...il.com>
To: linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Radim Krčmář <rkrcmar@...hat.com>
Subject: [PATCH v2 0/5] KVM: X86: Add virtual C-states residency msrs support
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
Powered by blists - more mailing lists