From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Quintela Subject: Re: [QEMU PATCH v2] kvmclock: advance clock by time window between vm_stop and pre_save Date: Fri, 04 Nov 2016 19:57:59 +0100 Message-ID: <8760o3nkco.fsf@emacs.mitica> References: <20161104094322.GA16930@amt.cnet> <20161104165933.GA3027@amt.cnet> Reply-To: quintela@redhat.com Mime-Version: 1.0 Content-Type: text/plain Cc: kvm@vger.kernel.org, qemu-devel , "Dr. David Alan Gilbert" , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Eduardo Habkost To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45020 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932299AbcKDS6G (ORCPT ); Fri, 4 Nov 2016 14:58:06 -0400 In-Reply-To: <20161104165933.GA3027@amt.cnet> (Marcelo Tosatti's message of "Fri, 4 Nov 2016 14:59:36 -0200") Sender: kvm-owner@vger.kernel.org List-ID: Marcelo Tosatti wrote: > This patch, relative to pre-copy migration codepath, > measures the time between vm_stop() and pre_save(), > which includes copying the remaining RAM to destination, > and advances the clock by that amount. > > In a VM with 5 seconds downtime, this reduces the guest > clock difference on destination from 5s to 0.2s. > > Tested with Linux and Windows 2012 R2 guests with -cpu XXX,+hv-time. > > Signed-off-by: Marcelo Tosatti > > --- > > v2: use subsection (Juan Quintela) > fix older machine types support > Reviewed-by: Juan Quintela