From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XD7SY-0008Rg-Sv for qemu-devel@nongnu.org; Fri, 01 Aug 2014 03:41:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XD7SU-0007Mu-Gz for qemu-devel@nongnu.org; Fri, 01 Aug 2014 03:41:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XD7SU-0007Mq-9j for qemu-devel@nongnu.org; Fri, 01 Aug 2014 03:40:58 -0400 Message-ID: <53DB447C.6040304@redhat.com> Date: Fri, 01 Aug 2014 09:40:44 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1406849835-4288-1-git-send-email-fred.konrad@greensocs.com> In-Reply-To: <1406849835-4288-1-git-send-email-fred.konrad@greensocs.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/7] icount migration and clock. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fred.konrad@greensocs.com, qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, quintela@redhat.com, mark.burton@greensocs.com, dgilbert@redhat.com, Pavel.Dovgaluk@ispras.ru, amit.shah@redhat.com, sebastian.tanase@openwide.fr Il 01/08/2014 01:37, fred.konrad@greensocs.com ha scritto: > From: KONRAD Frederic > > Those are some icount patches required for reverse execution. > > It introduces an icount clock which is only growing with icount. > It allows QEMU to migrate icount so virtual clock is kept if the VM is migrated > in icount mode (which is mandatory for migration based snapshot). > > They are rebased on uq/master of > git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git > > And can be cloned here: > git://git.greensocs.com/qemu_cexe.git:cexe_1_3_v6_rebased > > Thanks, > Fred > > KONRAD Frederic (7): > icount: put icount variables into TimerState. > migration: migrate icount fields. > migration: make qemu_savevm_state public. > icount: introduce icount timer. > icount: check for icount clock deadline when cpu loop exits. > icount: make icount extra computed on icount clock as well. > timer: add cpu_icount_to_ns function. > > cpus.c | 95 ++++++++++++++++++++++++++++++++++++++----------- > include/qemu/timer.h | 10 +++++- > include/sysemu/sysemu.h | 1 > qemu-timer.c | 8 ++++- > savevm.c | 2 +- > stubs/cpu-get-icount.c | 2 +- > 6 files changed, 94 insertions(+), 24 deletions(-) > Thanks, I applied all patches and pushed everything to icount on git://github.com/bonzini/qemu.git. I've also dropped Sebastian's "icount: Make icount_time_shift available everywhere" and adjusted his stuff to use cpu_icount_to_ns instead. I'm planning to send out patches 1/2/7 in my first 2.2 pull request, together with Sebastian's host clock alignment feature. The others will have to wait for the reverse execution patches which actually use it. Paolo