[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xen/arm: Allow setting the number of CPUs to activate at runtime
- To: Michal Orzel <Michal.Orzel@xxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Mon, 30 May 2022 09:09:28 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=e07rWfO/vgqUAvRMOhrmo1yBxYzOVBheNMOYS6KhLxY=; b=gaKH45gGY1en/YVIAZqDEDUOqc8KYY56TKhT8NmpKbm1nD/Fg43MHX2EegfP5fNL01EOJfhbZb2YEe8qRbX4hYsrYgSDW0T1SovQ1Hmj1MBjCXa+WXryR9Q+ArlvpE/LYYsr0MiytkFOcSvhlHxhffvKizyLIm9PPOs5k2NRy9lt8wbRjttoGoId6G6jJkYur8kS10aCbq3bgnw3vCGuqvnI877PlInTO+28fgfxdIGH6yAyrvsdjMuXIiqmTzAUp9b2deCz4jMPDTEKMfI0cRSZ9jUOkf38Cq+Hp+MdgbQEP5bLl6cqcunTHVyFz09WGvKd7d/MnSMEL2L6auf/OQ==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=e07rWfO/vgqUAvRMOhrmo1yBxYzOVBheNMOYS6KhLxY=; b=eks7i/InE57RGKa+l9bJfGr6RsmcwqlpvPnlCvAXkuzrB1EiHixGZUmyzkLJgT29qvq6+O8QX6J609A4+D68ttuGgAC8kuT7PnsJvIQTINnj7B0VMdhy0hKPyVjM78TcYLD4NC+sH0NeQHV6JwFgh48ZQohaxbsmEuryZ4T6uh0so3ALS+JXJwBEYKaBFy5ZZAM8qt384pBcNnc5aoQU0GJac6FhPuVpgXaQl0alNysJGz5gTqnh6plCoTeOPTtrhKUC6yPQyhE67/nko/FiW9vzPe6+BfeLSi0Zwg4ffuerHGUzv9H1o0TkYrkRct9XG9LqxyEWuorhZQWBBWzg0Q==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=YWSGjsqBo52g8vnF9u4cI3gk/sVFjhmnxztK0uv6vr19VXaOsr5v0zmwjT0yGSpywv4gs2mGhLR5fNrPNlFkSCBapNoaMd9nmq/6oZ7p7p05xzYFa5b5JDC1hb0MO5IHNOkea9lqm8vgVbn1yc/oIbH3Uclrlf9zgdloaZc//z7QCjoLW0JT9ounJMLYx3hkAsPWWIQcJN2ld/JWbZRKyqt+VP4Utbxj39KTo+0nPKLt3/rWTFrzgRBYspJUeyNKc52QZLwe2IYCy8a+3Usha5PyfRvojakCtzGlNbwdySM7dFyLW2wVIvN3f3FM/UQweOlUZ4L34VRMzJyVM7Dnww==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UsbSplKGxnhkqvOj/zvWgLvEa8dJehjHd+mpP6wLlOH0rR+A3qbCLvNCPHxPwQw3Y/QPu5otMHG1CwNN2N8gWG4m3rIZHu44TMz6LFEGlrBYcQWIM/JtmNgXQKci/n0fpHlIcZmp7d28hkRnRtUFTkZf7jgqV7GVDDwJQgYvJi93ZgPVQBdlBejl9cRKfjfaNrNxSzDmsqHI/BbwgI+/r6sH5J6kN6h0Nh03r6PNSjwc442KCThRM4QVl8iJVnzODfF9Se9wrMHTZAkJ/Ec48G+sxYJAwBDXz/mMSKfR9c4AUv1AWI1X4ZXdkd6nnM/GHtzcSO4cGWvyto9NUSH5Hg==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Mon, 30 May 2022 09:09:55 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHYboWC3AEIHk6mmEWNblBNSTXfPK03LOIA
- Thread-topic: [PATCH] xen/arm: Allow setting the number of CPUs to activate at runtime
Hi Michal,
> On 23 May 2022, at 10:13, Michal Orzel <Michal.Orzel@xxxxxxx> wrote:
>
> Introduce a command line parameter "maxcpus" on Arm to allow adjusting
> the number of CPUs to activate. Currently the limit is defined by the
> config option CONFIG_NR_CPUS. Such parameter already exists on x86.
>
> Define a parameter "maxcpus" and a corresponding static variable
> max_cpus in Arm smpboot.c. Modify function smp_get_max_cpus to take
> max_cpus as a limit and to return proper unsigned int instead of int.
>
> Take the opportunity to remove redundant variable cpus from start_xen
> function and to directly assign the return value from smp_get_max_cpus
> to nr_cpu_ids (global variable in Xen used to store the number of CPUs
> actually activated).
>
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
With the warning added in the documentation (which is ok to do on commit):
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
Cheers
Bertrand
|