This patch aims for reducing the live migration downtime. It updates the env->tsc value when stopping kvmclock with a ligth weight interface, rather than using 'cpu_synchronize_all_states', which takes more time.
For a VM with 4 CPUs, this path can help to reduce the VM downtime about 100us. Liang Li (2): kvmclock: use a light weight interface to update env->tsc. Revert "Introduce cpu_clean_all_dirty" cpus.c | 9 --------- hw/i386/kvm/clock.c | 26 +++++++++----------------- include/sysemu/cpus.h | 1 - include/sysemu/kvm.h | 8 -------- kvm-all.c | 5 ----- target-i386/kvm.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ target-i386/kvm_i386.h | 1 + 7 files changed, 56 insertions(+), 40 deletions(-) -- 1.9.1