]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: KVM Steal time guest/host interface
authorGlauber Costa <glommer@redhat.com>
Mon, 11 Jul 2011 19:28:13 +0000 (15:28 -0400)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:17:03 +0000 (13:17 +0300)
commit3d318502f4ad9c2c3afb18176a839a165b07bc29
treec1b4b5dc3f326fcac560211283a65bb626277e7c
parentbad61e68c6b5c80e417bc6d1e2e3731dd1a3f556
KVM: KVM Steal time guest/host interface

To implement steal time, we need the hypervisor to pass the guest information
about how much time was spent running other processes outside the VM.
This is per-vcpu, and using the kvmclock structure for that is an abuse
we decided not to make.

In this patchset, I am introducing a new msr, KVM_MSR_STEAL_TIME, that
holds the memory area address containing information about steal time

This patch contains the headers for it. I am keeping it separate to facilitate
backports to people who wants to backport the kernel part but not the
hypervisor, or the other way around.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Tested-by: Eric B Munson <emunson@mgebm.net>
CC: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/virtual/kvm/msr.txt
arch/x86/include/asm/kvm_para.h