From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZriLu-0000XN-Uh for qemu-devel@nongnu.org; Thu, 29 Oct 2015 04:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZriLr-0004dt-MV for qemu-devel@nongnu.org; Thu, 29 Oct 2015 04:14:30 -0400 Received: from mga01.intel.com ([192.55.52.88]:21575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZriLr-0004do-H6 for qemu-devel@nongnu.org; Thu, 29 Oct 2015 04:14:27 -0400 From: Liang Li Date: Thu, 29 Oct 2015 16:09:20 +0800 Message-Id: <1446106162-14499-1-git-send-email-liang.z.li@intel.com> Subject: [Qemu-devel] [PATCH 0/2] Optimze the env->tsc update operation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, mtosatti@redhat.com, m.gibula@beyond.pl, Liang Li 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 | 45 +++++++++++++++++++++++++++++++++++++++++++++ target-i386/kvm_i386.h | 1 + 7 files changed, 55 insertions(+), 40 deletions(-) -- 1.9.1