All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xen.org>
To: Juergen Gross <juergen.gross@ts.fujitsu.com>,
	xen-devel@lists.xensource.com
Subject: Re: [PATCH 2 of 2] Avoid vcpu migration of paused vcpus
Date: Thu, 22 Mar 2012 10:12:22 +0000	[thread overview]
Message-ID: <CB90AB86.3C1EB%keir@xen.org> (raw)
In-Reply-To: <932dc3987e3dac816d51.1332404573@nehalem1>

Your original patch didn't touch this code. Was that an omission in the
original version? On reflection I prefer your original patch to this new
approach. I'll apply it if you still believe your original patch is complete
and correct as it stands.

 -- Keir

On 22/03/2012 08:22, "Juergen Gross" <juergen.gross@ts.fujitsu.com> wrote:

> Currently offlining a cpu will migrate all vcpus which were active on that
> cpu to another one, possibly breaking existing cpu affinities.
> 
> In case of an ACPI state change the cpus are taken offline and online later
> (if not poweroff) while all domains are paused. There is no reason to
> migrate the vcpus during offlining the cpus, as the cpus will be available
> again when the domains are being unpaused.
> 
> This patch defers the migration check in case of paused vcpus or domains
> by adding vcpu_arouse() to wake up a vcpu and check whether it must be
> migrated to another cpu.
> 
> Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
> 
> 
> 3 files changed, 64 insertions(+), 24 deletions(-)
> xen/common/domain.c     |    4 +-
> xen/common/schedule.c   |   83 ++++++++++++++++++++++++++++++++++-------------
> xen/include/xen/sched.h |    1
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2012-03-22 10:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22  8:22 [PATCH 0 of 2] ACPI state change corrections Juergen Gross
2012-03-22  8:22 ` [PATCH 1 of 2] Allow ACPI state change with active cpupools Juergen Gross
2012-03-22 10:09   ` Jan Beulich
2012-03-22  8:22 ` [PATCH 2 of 2] Avoid vcpu migration of paused vcpus Juergen Gross
2012-03-22 10:12   ` Keir Fraser [this message]
2012-03-22 10:22     ` Juergen Gross
2012-03-22 11:20       ` Keir Fraser
2012-03-22 11:59         ` Juergen Gross
2012-03-23  8:17         ` Juergen Gross
2012-03-22 10:26   ` Jan Beulich
2012-03-22 10:38     ` Juergen Gross

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=CB90AB86.3C1EB%keir@xen.org \
    --to=keir@xen.org \
    --cc=juergen.gross@ts.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /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.