From: "Jan Beulich" Subject: Re: [PATCH] x86/S3: Restore broken vcpu affinity on resume (v4) Date: Thu, 28 Mar 2013 08:19:56 +0000 Message-ID: <51540B3C02000078000C91CB@nat28.tlf.novell.com> References: <1364389985-26644-1-git-send-email-benjamin.guthro@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1364389985-26644-1-git-send-email-benjamin.guthro@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ben Guthro Cc: George Dunlap , Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 27.03.13 at 14:13, Ben Guthro wrote: > When in SYS_STATE_suspend, and going through the cpu_disable_scheduler > path, save a copy of the current cpu affinity, and mark a flag to > restore it later. > > Later, in the resume process, when enabling nonboot cpus restore these > affinities. > > v2: > Formatting: Fix hard tabs. > remove early return in cpu_disable_scheduler() path. > > v3: > Formatting: Fix remaining errant tab. > Move restore_vcpu_affinity() to thaw_domains(), eliminating the need to > promote for_each_cpupool() > > v4: > Formatting: Fix if statement spacing. > Eliminate unnecessary if statement in thaw_domains() > Suppress affinity related logging to XENLOG_DEBUG to reduce noise. > > Signed-off-by: Ben Guthro Looks good to me now, but needs an ack by Keir (or George, considering the minor change to xen/common/domain.c is perhaps acceptable without formal ack). Thanks, Jan