Skip to content

Alter steal time reporting in KVM

Michael Wolf kvm lkml 1 version In review

Get series with b4
b4 am 20121126203603.28840.38736.stgit@lambeau

Versions newest first

  1. v1 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Alter the amount of steal time reported by the guest.fs/proc/stat.c include/linux/kernel_stat.h+8 -20 replies
2/5Expand the steal time msr to also contain the consigned time.arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h arch/x86/kernel/kvm.c +2 more+15 -102 replies
3/5Add the code to send the consigned time from the host to the guestarch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvm_para.h arch/x86/include/asm/paravirt.h +6 more+33 -80 replies
4/5Add a timer to allow the separation of consigned from steal time.arch/x86/include/asm/kvm_host.h arch/x86/include/asm/paravirt.h arch/x86/kvm/x86.c+52 -20 replies
5/5Add an ioctl to communicate the consign limit to the host.arch/x86/kvm/x86.c include/linux/kvm_host.h include/uapi/linux/kvm.h +1 more+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Alter steal time reporting in KVM

In the case of where you have a system that is running in a capped or overcommitted environment the user may see steal time being reported in accounting tools such as top or vmstat. This can cause confusion for the end user. To ease the confusion this patch set adds the idea of consigned (expected steal) time. The host will separate the consigned time from the steal time. The consignment limit passed to the host will be the amount of steal time expected within a fixed period of time. Any other steal time accruing during that period will show as the traditional steal time.

---

Michael Wolf (5):
Alter the amount of steal time reported by the guest. Expand the steal time msr to also contain the consigned time. Add the code to send the consigned time from the host to the guest Add a timer to allow the separation of consigned from steal time. Add an ioctl to communicate the consign limit to the host.

 arch/x86/include/asm/kvm_host.h       |   11 +++++++
 arch/x86/include/asm/kvm_para.h       |    3 +-
 arch/x86/include/asm/paravirt.h       |    4 +--
 arch/x86/include/asm/paravirt_types.h |    2 +
 arch/x86/kernel/kvm.c                 |    8 ++---
 arch/x86/kernel/paravirt.c            |    4 +--
 arch/x86/kvm/x86.c                    |   50 ++++++++++++++++++++++++++++++++-
 fs/proc/stat.c                        |    9 +++++-
 include/linux/kernel_stat.h           |    2 +
 include/linux/kvm_host.h              |    2 +
 include/uapi/linux/kvm.h              |    2 +
 kernel/sched/core.c                   |   10 ++++++-
 kernel/sched/cputime.c                |   21 +++++++++++++-
 kernel/sched/sched.h                  |    2 +
 virt/kvm/kvm_main.c                   |    7 +++++
 15 files changed, 120 insertions(+), 17 deletions(-)
Signature · 1 line
Signature