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

[Xen-devel] [PATCH 1 of 2] Allow ACPI state change with active cpupools


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Thu, 22 Mar 2012 09:22:52 +0100
  • Delivery-date: Thu, 22 Mar 2012 08:36:06 +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=KW0AnLue4bzioKmI9UbhZQ18SayplY0pdrxvCG4BHU2EfnvyDz6q9VL4 ouW/rFoBU76FOgCxmR8VVuNQK5r4PH/i6TJiISsI1uwDPx5HHjXUZoxH+ JnEgtyMsJ3vjpQDG+CNN6OaxJ+mwfr9K3SbMA1JriC9SU3AdMAVnpNVEu i+sFv9Z2cHlEh1heKIk2XdZt8XR9W7Dt0+UVdbAWPrzQqzBaQHFWGf8gB JW7Kzqa1Y5hdZCkKrkPB00FgTVjVF;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Changing the ACPI state (e.g. power off) while not all cpus are in cpupool 0
will currently crash the hypervisor during disabling the other cpus.
Up to now only cpus in Pool-0 were allowed to go offline. There is no reason
why a cpu in another cpupool can't be taken offline if there are still other
cpus available in that cpupool.
As disabling the cpus for an ACPI state change is only a temporary measure
(if not poweroff, of course) and all domains are paused in this case, there
is no reason to reject removing the last cpu from a cpupool if only paused
domains are in this cpupool.
The cpus taken offline from a cpupool will be still associated with that
cpupool to enable adding them automatically when they are becoming online
again.

Signed-off-by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>


4 files changed, 80 insertions(+), 9 deletions(-)
xen/arch/x86/smpboot.c     |    2 -
xen/common/cpupool.c       |   85 +++++++++++++++++++++++++++++++++++++++-----
xen/include/xen/sched-if.h |    1 
xen/include/xen/sched.h    |    1 


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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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