All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [v2 0/2] Optimize the env->tsc update operation
@ 2015-11-05  3:51 Liang Li
  2015-11-05  3:51 ` [Qemu-devel] [v2 1/2] kvmclock: add a new function to update env->tsc Liang Li
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Liang Li @ 2015-11-05  3:51 UTC (permalink / raw)
  To: qemu-devel
  Cc: Liang Li, ehabkost, mst, mtosatti, quintela, m.gibula, amit.shah,
	pbonzini, rth

This patch set aims for reducing the live migration downtime. It
updates the env->tsc when stopping kvmclock with a new function.
Rather than using 'cpu_synchronize_all_states()', which updates the
whole CPU context just for updating the env->tsc.

For a VM with 4 CPUs, this patch set can help to reduce the VM downtime
about 100us.

Changes in v2:
  * Simplify 'kvm_get_tsc()' function.
  * Introduce a new function 'kvm_synchronize_all_tsc()'

Liang Li (2):
  kvmclock: add a new function to update env->tsc.
  Revert "Introduce cpu_clean_all_dirty"

 cpus.c                 |  9 ---------
 hw/i386/kvm/clock.c    | 18 ++----------------
 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, 48 insertions(+), 39 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-05 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05  3:51 [Qemu-devel] [v2 0/2] Optimize the env->tsc update operation Liang Li
2015-11-05  3:51 ` [Qemu-devel] [v2 1/2] kvmclock: add a new function to update env->tsc Liang Li
2015-11-05  3:51 ` [Qemu-devel] [v2 2/2] Revert "Introduce cpu_clean_all_dirty" Liang Li
2015-11-05 10:28 ` [Qemu-devel] [v2 0/2] Optimize the env->tsc update operation Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.