[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2 of 2] Avoid vcpu migration of paused vcpus

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Thu, 22 Mar 2012 09:22:53 +0100
  • Delivery-date: Thu, 22 Mar 2012 08:36:05 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Content-Type:MIME-Version:Subject: X-Mercurial-Node:Message-Id:In-Reply-To:Date:From:To; b=YjarPqVPie7cUdBOgcLc6UrSvuJmXCoXYtDL/c9sjyhINp7b9xzSSK8O gkQt/oE61y/HCax+BhusJ/F9k+jd4HkLRXzG55zEaW+nvrvE3DePX7fYI kswxnU7W/gGUSGmJlc3idNfSUM/VAN7IIWfEW6npReftqVe7tQzCT80TE nqXItY+CWLD4kytnvDQFcAxpTlfo29eA7GJgZpO448jLwAHj1ddHy2iCJ XxGVbRdd5G8nO/heTnhqjeEmK+td/;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

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@xxxxxxxxxxxxxx>

3 files changed, 64 insertions(+), 24 deletions(-)
xen/common/domain.c     |    4 +-
xen/common/schedule.c   |   83 ++++++++++++++++++++++++++++++++++-------------
xen/include/xen/sched.h |    1 

Attachment: xen-staging.hg-2.patch
Description: Text Data

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.