Re: [PATCH v3] sched/cputime: Resync steal time when guest & host lose sync
From: Rik van Riel
Date: Tue Aug 16 2016 - 22:15:44 EST
On Wed, 2016-08-17 at 10:05 +0800, Wanpeng Li wrote:
> This patch fix the regression by limiting the account_other_time()
> fromÂ
> get_vtime_delta() to avoid underflow, and let other three call sites
> (account_other_time() and steal_account_process_time()) account
> howeverÂ
> much steal time the host told us elapsed.Â
>
> Suggested-by: Rik van Riel <riel@xxxxxxxxxx>Â
> Suggested-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Cc: Rik van Riel <riel@xxxxxxxxxx>
> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> Cc: Radim Krcmar <rkrcmar@xxxxxxxxxx>
> Cc: Mike Galbraith <efault@xxxxxx>
> Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Signed-off-by: Wanpeng Li <wanpeng.li@xxxxxxxxxxx>
>
Reviewed-by: Rik van Riel <riel@xxxxxxxxxx>
--
All Rights Reversed.Attachment:
signature.asc
Description: This is a digitally signed message part