Il 01/08/2014 01:37, fred.kon...@greensocs.com ha scritto: > From: KONRAD Frederic <fred.kon...@greensocs.com> > > 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