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)
commit9ddabbe72e41ca6794cb4947c70929c9410e6752
treec1b4b5dc3f326fcac560211283a65bb626277e7c
parent4b6b35f55ca81d3bfdec63b0adb61798702ceb2e
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