From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [patch 4/5] xen: Validate online cpus in set_affinity Date: Wed, 5 Mar 2014 10:36:57 +0000 Message-ID: <5316FE49.1020203__42756.9133848467$1394015913$gmane$org@citrix.com> References: <20140304202425.102779779@linutronix.de> <20140304203100.978031089@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WL9CD-00043O-EN for xen-devel@lists.xenproject.org; Wed, 05 Mar 2014 10:37:05 +0000 In-Reply-To: <20140304203100.978031089@linutronix.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Thomas Gleixner Cc: Peter Zijlstra , Xen , Ingo Molnar , LKML List-Id: xen-devel@lists.xenproject.org On 04/03/14 20:43, Thomas Gleixner wrote: > The user space interface does not filter out offline cpus. It merily > verifies that the mask contains at least one online cpu. So the > selector in the irq chip implementation needs to make sure to pick > only an online cpu because otherwise: > > Offline Core 1 > Set affinity to 0xe > Selector will pick first set bit, i.e. core 1 Reviewed-by: David Vrabel Thanks. David