[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v13 2/5] xen/sched: Link CPU topology to scheduler
- To: "Orzel, Michal" <michal.orzel@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
- Date: Wed, 2 Dec 2026 04:05:56 +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=c6zR+GzXI/3ox77nB52Yv7ao4SyQ/wC7Iz/xEIfo/Po=; b=OfWmsH9cZeyOWUvXxSgmUMTGIcDcsOYxmcxA04s0zN9pcDHszBEvMo+DXbj9MjYJYZ6X6mh+UX89th/iqTvo63zsXxnEE9Ijl2CMfgbEedPrSbwqmZFA2d58elbWThYLcbN3rIM8zvwXvqjOkH9fJSYLcRhtE7s5oOkDoxT3Vwty9N+NqWqUuT4H9U4uzUid9f+Di+UXP5MyYg+BI7+0g2dPDCRzUUg0FTvIyTeGbrSiP12HAiJ6hw9VG7RUtZuB1JmtAcvPKn+Q1oGmDeGF+3XL0wjEaG7BxlD4MrWn0KSkPpxOhknM+aR0x1rYlnQdSEPLS6tWP9dq4J4CmOib+g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JSVxdxTcoNLJpNdav5L3eNq1nhKqeRlNN42KpfSmkQk2Gs567rkxG+VCxQHPSpTyzXdom6YqorfYAFPq/iZZ8KoTqWAiED6aIu5PnicodjjH16Gx8uKVh/e7FMau3kJx0N0kKF93CPorW3G6EvIXERsMOflMpi8VEJiodmaJfxb42DlWSPLwBihooG8uOhYibdL17/OHiNEwFubBq71hh6iUnovYAckxQsIfeury7+6XQMXtO+Vfl6EuX0/vJ5e9xos+E8DtQtXtsO3VnhN+3KDBqPbzl0fqdPEcViAIUjj3um4CsmzkD4hHLhikmIOH4hNePz0ZadFRGN0oAKzGWg==
- 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: "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, George Dunlap <gwd@xxxxxxxxxxxxxx>
- Delivery-date: Wed, 02 Dec 2026 04:06:13 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHdgJg6rRcDsYRxGkWc9cyOtEtwn7dILEeAgAD0fKA=
- Thread-topic: [PATCH v13 2/5] xen/sched: Link CPU topology to scheduler
Hi Michal,
> > diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
> > index 97e227cd92..41162f8ea1 100644
> > --- a/xen/arch/arm/smpboot.c
> > +++ b/xen/arch/arm/smpboot.c
> > @@ -103,17 +103,30 @@ static void set_cpu_sibling_map(unsigned int cpu)
> > BUG_ON(!per_cpu(cpu_sibling_mask, cpu));
> > BUG_ON(!per_cpu(cpu_core_mask, cpu));
> >
> > - /*
> > - * Currently we assume there is no multithread and NUMA, so
> > - * a CPU is a sibling with itself, and the all online CPUs
> > - * are supposed to belong to the same socket (NUMA node).
> The comment above cpu_sibling_mask definition is still stale i.e. current Xen
> on
> Arm assumes there is no multithread.
Okay, I will remove the comment.
> BTW. We still have a warning if we find MPIDR MT bit set although this bit
> does
> not really mean the CPU supports SMT. That's bad because on e.g. A78 which is
> commonly used these days and that has this bit set, the warning is on. The
> warning is right that SMT might impact the security of the system as some
> things
> are shared between threads. This is just a note that we should do something
> with
> that in the future i.e. remove the check that is based on MPIDR and decide
> what
> to do with the warning (e.g. use the cpu topology information instead). No
> action for this patch specifically.
I agree.
> With the stale comment removed:
> Acked-by: Michal Orzel <michal.orzel@xxxxxxx>
Thank you,
Hirokazu Takahashi.
|