[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v2] make tsc stable over migration and machine s
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] Re: [PATCH v2] make tsc stable over migration and machine start |
Date: |
Thu, 3 Feb 2011 14:00:25 -0200 |
User-agent: |
Mutt/1.5.20 (2009-08-17) |
On Wed, Feb 02, 2011 at 07:16:20AM -0500, Glauber Costa wrote:
> If the machine is stopped, we should not record two different tsc values
> upon a save operation. The same problem happens with kvmclock.
>
> But kvmclock is taking a different diretion, being now seen as a separate
> device. Since this is unlikely to happen with the tsc, I am taking the
> approach here of simply registering a handler for state change, and
> using a per-CPUState variable that prevents double updates for the TSC.
>
> Signed-off-by: Glauber Costa <address@hidden>
> CC: Jan Kiszka <address@hidden>
>
> ---
> v2: updated tsc validation logic, as asked by Jan
> ---
> target-i386/cpu.h | 1 +
> target-i386/kvm.c | 18 +++++++++++++++++-
> 2 files changed, 18 insertions(+), 1 deletions(-)
Please regenerate against uq/master.