[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH] kvmclock: clock should count only if vm is run
From: |
Gleb Natapov |
Subject: |
Re: [Qemu-stable] [PATCH] kvmclock: clock should count only if vm is running (v2) |
Date: |
Mon, 1 Jul 2013 14:53:50 +0300 |
On Mon, Jul 01, 2013 at 01:44:42PM +0200, Paolo Bonzini wrote:
> Il 25/06/2013 14:18, Gleb Natapov ha scritto:
> > On Tue, Jun 18, 2013 at 08:38:25PM -0300, Marcelo Tosatti wrote:
> >> >
> >> > v2: remove unnecessary runstate_is_running() usage (Paolo)
> >> >
> >> > --
> >> >
> >> > kvmclock should not count while vm is paused, because:
> >> >
> >> > 1) if the vm is paused for long periods, timekeeping
> >> > math can overflow while converting the (large) clocksource
> >> > delta to nanoseconds.
> >> >
> >> > 2) Users rely on CLOCK_MONOTONIC to count run time, that is,
> >> > time which OS has been in a runnable state (see CLOCK_BOOTTIME).
> >> >
> >> > Change kvmclock driver so as to save clock value when vm transitions
> >> > from runnable to stopped state, and to restore clock value from stopped
> >> > to runnable transition.
> >> >
> >> > Signed-off-by: Marcelo Tosatti <address@hidden>
> >
> > Applied, thanks.
>
> Cc: address@hidden
>
> Gleb, the commit hash is fixed now that you applied the patch---so I
> cannot just amend it to include the Cc, right?
>
Qemu upstream has weird rule that requires patches to be sent on the list
with each pull request and this effectively means that it is impossible
to do merges which, in turn, means that sometimes rebase is unavoidable.
But we try not to do them anyway.
--
Gleb.