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

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Tue, 20 Mar 2012 13:15:36 +0100
  • Delivery-date: Tue, 20 Mar 2012 12:21:48 +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:Date:From:To; b=OYyIOBNQP0vAImQEAwAKHaBww3gv16pMPHWfHAIIWhl5tBOYqD5jqMn6 IT1rHZdFe/HDfREC8buBdMLAzlURqWB6210h5+AhoT0bk72dAsKL8NBM2 7crhwJWoCu1CxyQvU9241eqcUaC9cXZr4sNU7+Jjgo+BmTyR6s64DLfuH bt6pCZfSh+lnxT34g7cx9FNTZl8pNlg77wXFEPYmVcNta79h6m7fR/vCC scicvSPvm5uDEQi1gdGS1OZ2MXb8A;
  • 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.
This patch avoids the crash by adding the reason for disabling a cpu (either
permanent e.g. in case of cpu hotplug or temporary in case of ACPI state
change).
This requires an additional parameter for cpu callbacks. All callbacks are
changed to take a structure as parameter instead of only the cpu number.

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


25 files changed, 185 insertions(+), 139 deletions(-)
xen/arch/x86/acpi/cpu_idle.c                 |   13 ++++---
xen/arch/x86/cpu/mcheck/mce.c                |    8 ++--
xen/arch/x86/cpu/mcheck/mce_intel.c          |    8 ++--
xen/arch/x86/hvm/hvm.c                       |   10 ++---
xen/arch/x86/microcode.c                     |    6 +--
xen/arch/x86/nmi.c                           |   17 +++++----
xen/arch/x86/percpu.c                        |    8 ++--
xen/arch/x86/setup.c                         |    2 -
xen/arch/x86/smpboot.c                       |    8 ++--
xen/arch/x86/sysctl.c                        |    8 ++--
xen/arch/x86/x86_32/traps.c                  |    8 ++--
xen/common/cpu.c                             |   46 ++++++++++++++++----------
xen/common/cpupool.c                         |   17 ++++++---
xen/common/kexec.c                           |   13 ++++---
xen/common/rcupdate.c                        |   15 +++++---
xen/common/sched_credit2.c                   |    6 +--
xen/common/schedule.c                        |    8 ++--
xen/common/stop_machine.c                    |   17 +++++----
xen/common/tasklet.c                         |   19 ++++++----
xen/common/timer.c                           |   15 +++++---
xen/common/tmem_xen.c                        |   32 +++++++++---------
xen/common/trace.c                           |    6 +--
xen/drivers/cpufreq/cpufreq.c                |   15 +++++---
xen/drivers/cpufreq/cpufreq_misc_governors.c |    6 +--
xen/include/xen/cpu.h                        |   13 ++++++-


Attachment: xen-staging.hg.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®.