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

RE: [PATCH] xen/arm: Fix sibling mask setup to only include online CPUs


  • To: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • From: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
  • Date: Wed, 28 Oct 2026 07:31:47 +0000
  • Accept-language: ja-JP, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=valinux.co.jp; dmarc=pass action=none header.from=valinux.co.jp; dkim=pass header.d=valinux.co.jp; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bkPJNooUByqU1llh1Tj+YKR75Xu3gUPpvsmUpTdn8zk=; b=C5/+IHVHb3OhD0utBR0samWxxvI5y/J9Uh9EpaHTDa5/mLii6N98m/FWVDwHunuBoxV5fzcUhoI/BIfW4iEubBcIkHasR7ifBB9l6o155vARyhydfbNPZn3vdxvdjtb+U1znA2IugdPOPcQIgZgczRzrBYyRVcdOdWBxaQoXR4D+5+xXgR8asAIQ3P45vLCrzXwqwFvk0r4NuGqTN8dD0t/IMBHqZI0kT7RJC1Zkgqr43zmghNDUysrLTzKHVjaPdjZkSE/7AO2SQRci8SEpYtazlVIIuDQTJndI1BK+UP3qzfKneXUWmAbRTqq3My2ks1nQUcAnrUroKF2qreSKeA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dR4SjWXKZXOaEKA74iZ5X7HQNzv5c6bnM9hsJFExBMcEoR6EU8/pTiN3GiP10TVZZ+5NO1ODqn6LlFPyuv8I0tZyxPzYR/YEl59vw7CHjIOtGkclo3l2KA4UAMEA2KXObb+lF7A4QQwlb6lUyx6Dwk3hGTdH0aG7xazuceKmurWstDijLBoYouxOu9twevJ9YWqTlmEkUSByaudM/MFOhtbh6QRDUDaWlRJKpZZAsMMWnY7P/ScXgKhuG5u29vBjPQbspvoD5R++WDCvQi1Q29r7sbMOyJKGWWhW/9oaYengO8nBLCEtAZp1l5P80fZnLaDYPnZIs/PySvlJ7z8Zwg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=valinux.co.jp header.i="@valinux.co.jp" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=valinux.co.jp;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Wed, 28 Oct 2026 07:32:14 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHdYt8WC0CZ/VfzZUWl8UFycAlt/LcSkMeQ
  • Thread-topic: [PATCH] xen/arm: Fix sibling mask setup to only include online CPUs

Hello Volodymyr,

> -----Original Message-----
> From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> Sent: Wednesday, October 28, 2026 11:13 AM
> To: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; michal.orzel@xxxxxxx; Stefano Stabellini
> <sstabellini@xxxxxxxxxx>; Julien Grall <julien@xxxxxxx>; Bertrand Marquis
> <bertrand.marquis@xxxxxxx>
> Subject: Re: [PATCH] xen/arm: Fix sibling mask setup to only include online
> CPUs
> 
> Hello Hirokazu-san,
> 
> Hirokazu Takahashi <taka@xxxxxxxxxxxxx> writes:
> 
> > Populate the CPU sibling map only with CPUs that are brought
> > online. Currently, all CPUs in cpu_possible_map are added,
> > which leaves CPUs that failed to boot in the sibling masks and
> > may lead the scheduler to make incorrect decisions.
> 
> I think that this is a scheduler issue then. A CPU has siblings
> regardless of if they are running or not. Also, your change will affect
> CPU Hotplug functionality, as with your patch sibling mask will change
> in runtime. But partially - only in cpu_up, but not on cpu_down. I am
> not sure that schedulers can handle updates to siblings mask in runtime.
> 
> Could you please elaborate how it affects scheduler behaviour right now?

In x86 Xen, __cpu_disable() is called in the cpu_down() path, where the target
CPU is removed from the CPU sibling map (via remove_siblinginfo()).
I think ARM64 Xen should follow suit.

> > Fixes: 701190abb3d5 ("xen/arm: Set correct per-cpu cpu_core_mask")
> > Signed-off-by: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
> > ---
> >  xen/arch/arm/smpboot.c | 18 +++++++++++++++---
> >  1 file changed, 15 insertions(+), 3 deletions(-)
> >
> > diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
> > index 8c9072f3c1..2d01896cf0 100644
> > --- a/xen/arch/arm/smpboot.c
> > +++ b/xen/arch/arm/smpboot.c

Thank you,
Hirokazu Takahashi.



 


Rackspace

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