[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH 08/21] xen/sched: Link CPU topology to scheduler and display via xl info
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
- Date: Sun, 24 May 2026 20:37:15 +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=vuLWY8E/UoAVMi1CTfubagCsoMAjzmZBXHgxmR2lN2M=; b=QIZxCe5xXskVKblfFTkAz7rndZXpXUQ2vKTWi4WQEDg6csnvnGHXJc27wPgzYZSCBLPOf9SzaXEjxw23Qoj4/hB5dqKALcNI+Eg+HvPnazzhzYY7D75ldAdilryWscJR4hj/TI+8BfITbEVV577OQC+TNBS8OKWRB9DSvdBX3eMNAxCyg51Z5OzBqAuey5ZHiBYfPZ46iHm+G7eYHJqopNyzYDqa6eJZavNJHrg6dcpMiMmdJKVSFxPWK1QyAY/kuZrPT4gG5xA7JMm5GasmRk2UCj/9CN8Y6MoVyuHS5ChlSZMu+Yi8OZYINcRMTzecvVjYF8jOPQYnZ+ZTk1zybg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jl2VRAS++AK2N9p0S2W2sNnFYtcrcxM6gWfg0mcOWxSha5JkT6Crb8gPWUsYisA88RKPcQo1cYECPgSneYnVUWx2mW3/0q4dGppVyHVtok02KVr1cxrOgkK+zz8IaDXqEtrL/lHLiybaZcc6NwjYjUUHe9nF0yuWtTzB5h5vVlD645crJuHLHpWGXoHfc2WsdTW2hRLwPhcupfikGIwFB7alIfp+6b1VXT64FJU8/CbgAZhRBzYd+qsfZcfuCCM1Kltk2KKI1bQybvzaTjYJJWaejLggI1X5+8Qaa8JIUeQvy5huXUlJ+Kvof5I1ALPOp2mtndsIUyZYONaVkVGK9A==
- 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: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=valinux.co.jp;
- Cc: "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "anthony.perard@xxxxxxxxxx" <anthony.perard@xxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "jgross@xxxxxxxx" <jgross@xxxxxxxx>, "bertrand.marquis@xxxxxxx" <bertrand.marquis@xxxxxxx>, "Volodymyr_Babchuk@xxxxxxxx" <Volodymyr_Babchuk@xxxxxxxx>, "dfaggioli@xxxxxxxx" <dfaggioli@xxxxxxxx>, "gwd@xxxxxxxxxxxxxx" <gwd@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Sun, 24 May 2026 20:37:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHc6xClRaEaMKd2V0q5p1f04gDybbYdTMKAgABWeWA=
- Thread-topic: [PATCH 08/21] xen/sched: Link CPU topology to scheduler and display via xl info
Hello,
> > --- a/xen/include/xen/cpu_topology.h
> > +++ b/xen/include/xen/cpu_topology.h
> > @@ -14,6 +14,9 @@ struct cpu_topology {
> > cpumask_t thread_sibling;
> > cpumask_t core_sibling;
> > cpumask_t cluster_sibling;
> > + int to_core;
> > + int to_socket;
> > + int num_siblings;
> > };
>
> What significance do the to_ prefixes have here? And what's the meaning of any
> of the fields holding negative values? (If they can't hold negative values,
> use
> unsigned int please.)
These members are used to map a logical CPU ID to a physical core ID and
a physical socket ID. I will rename them to phys_core_id and phys_socket_id
respectively, and make them unsigned int.
Thank you for your advice.
Hirokazu Takahashi
|