From: Tim Deegan Subject: Re: [PATCH 16/38] arm: Add simple cpu_{sibling, core}_mask Date: Thu, 7 Jun 2012 12:42:40 +0100 Message-ID: <20120607114240.GQ70339@ocelot.phlegethon.org> References: <1338565113.17466.141.camel@zakaz.uk.xensource.com> <1338565207-2888-1-git-send-email-ian.campbell@citrix.com> <1338565207-2888-16-git-send-email-ian.campbell@citrix.com> <20120607090808.GD70339@ocelot.phlegethon.org> <1339068947.18523.10.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1339068947.18523.10.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Keir Fraser , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org At 12:35 +0100 on 07 Jun (1339072547), Ian Campbell wrote: > From e980ca1ec9bf92b2f1255ac5222b1da1292f9f72 Mon Sep 17 00:00:00 2001 > From: Ian Campbell > Date: Mon, 14 May 2012 12:25:31 +0100 > Subject: [PATCH] arm: Add simple cpu_{sibling,core}_mask > > This needs to be done for all cpus. The allocations require smp_prepare_cpus > to be called a bit later on. > > In a previous version of this patch these maps were being zeroed (instead of > setting the CPU itself in them). This in turn causes cpumask_first to return > NR_CPUS, which in turn was causing default_vcpu0_location to misbehave and > read off the end of its cnt array. Add a couple of asserts to catch this in > the future. > > Signed-off-by: Ian Campbell (ARM stuff) Acked-by: Tim Deegan