qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Optimze the env->tsc update operation
@ 2015-10-29  8:09 Liang Li
  2015-10-29  8:09 ` [Qemu-devel] [PATCH 1/2] kvmclock: use a light weight interface to update env->tsc Liang Li
  2015-10-29  8:09 ` [Qemu-devel] [PATCH 2/2] Revert "Introduce cpu_clean_all_dirty" Liang Li
  0 siblings, 2 replies; 3+ messages in thread
From: Liang Li @ 2015-10-29  8:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, mtosatti, m.gibula, 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

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

end of thread, other threads:[~2015-10-29  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29  8:09 [Qemu-devel] [PATCH 0/2] Optimze the env->tsc update operation Liang Li
2015-10-29  8:09 ` [Qemu-devel] [PATCH 1/2] kvmclock: use a light weight interface to update env->tsc Liang Li
2015-10-29  8:09 ` [Qemu-devel] [PATCH 2/2] Revert "Introduce cpu_clean_all_dirty" Liang Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).