Re: [PATCH v4 7/9] KVM-GST: KVM Steal time accounting

2011-07-02 Thread Peter Zijlstra
On Fri, 2011-07-01 at 17:22 -0400, Glauber Costa wrote: @@ -3929,6 +3945,23 @@ void account_process_tick(struct task_struct *p, int user_tick) return; } +#ifdef CONFIG_PARAVIRT + if (static_branch(paravirt_steal_enabled)) { + u64 steal, st =

[PATCH v4 7/9] KVM-GST: KVM Steal time accounting

2011-07-01 Thread Glauber Costa
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