diff options
author | Glauber Costa <glommer@redhat.com> | 2011-07-11 21:28:17 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-14 11:59:46 +0200 |
commit | e6e6685accfa81f509fadfc9624bc7c3862d75c4 (patch) | |
tree | 8d274b61c6011ad4d5844f2fdc15459b8216cc90 /kernel/audit_tree.c | |
parent | ia64: add jump labels for paravirt (diff) | |
download | linux-e6e6685accfa81f509fadfc9624bc7c3862d75c4.tar.xz linux-e6e6685accfa81f509fadfc9624bc7c3862d75c4.zip |
KVM guest: Steal time accounting
This patch accounts steal time time in account_process_tick.
If one or more tick is considered stolen in the current
accounting cycle, user/system accounting is skipped. Idle is fine,
since the hypervisor does not report steal time if the guest
is halted.
Accounting steal time from the core scheduler give us the
advantage of direct acess to the runqueue data. In a later
opportunity, it can be used to tweak cpu power and make
the scheduler aware of the time it lost.
[avi: <asm/paravirt.h> doesn't exist on many archs]
Signed-off-by: Glauber Costa <glommer@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Tested-by: Eric B Munson <emunson@mgebm.net>
CC: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
CC: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kernel/audit_tree.c')
0 files changed, 0 insertions, 0 deletions