All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liang Li <liang.z.li@intel.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, mtosatti@redhat.com, m.gibula@beyond.pl,
	Liang Li <liang.z.li@intel.com>
Subject: [Qemu-devel] [RESEND 0/2] Optimze the env->tsc update operation
Date: Thu, 29 Oct 2015 16:22:05 +0800	[thread overview]
Message-ID: <1446106927-15490-1-git-send-email-liang.z.li@intel.com> (raw)

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

             reply	other threads:[~2015-10-29  8:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29  8:22 Liang Li [this message]
2015-10-29  8:22 ` [Qemu-devel] [RESEND 1/2] kvmclock: use a light weight interface to update env->tsc Liang Li
2015-11-02 15:04   ` Paolo Bonzini
2015-11-02 15:11     ` Li, Liang Z
2015-10-29  8:22 ` [Qemu-devel] [RESEND 2/2] Revert "Introduce cpu_clean_all_dirty" Liang Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446106927-15490-1-git-send-email-liang.z.li@intel.com \
    --to=liang.z.li@intel.com \
    --cc=m.gibula@beyond.pl \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.