From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id D86C5AC112C for ; Thu, 25 Apr 2024 10:42:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=g7SsT3veON3JHoV5+1j71z0Lo/4qw77uWIl562axmFc=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1714041725; v=1; b=fRCjwHn7aLtdqncds6XgLt+923lgClq44/yiHQzsDtllZMUHEp1L8MM7/tZzsPDm7E+414lZ lZpO/VWPBOtBD81CS/O163HGJKuTJRIuG7k76pDLMwlRZxumt3GcMT7Ot/JV11OUbiLiXu3n5q8 Ou+ZDjh8kzMf1bA4+fcB2kiCI7raWwEu6gvqZPn5d/2fZqtT2ROP06DsYs7+oY9gg7iVJJKjMVG dJiTgqzOu81R7VnkGy+HfdrJqb6pD8d096WBlzBapqo1KT1326Y/Q4X9u+ats6Zl3PE5NQoGSSa imOJowh49SleSpZbI6JsoN0GJrAJU6YJUXDYDeL7oYUSw== X-Received: by 127.0.0.2 with SMTP id mhudYY7687511xIySYOl2anN; Thu, 25 Apr 2024 03:42:05 -0700 X-Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mx.groups.io with SMTP id smtpd.web11.13797.1714041724415786439 for ; Thu, 25 Apr 2024 03:42:04 -0700 X-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51abd9fcbf6so1341795e87.1 for ; Thu, 25 Apr 2024 03:42:04 -0700 (PDT) X-Gm-Message-State: hQ9XGcraypxX5kcNmQLH2Usix7686176AA= X-Google-Smtp-Source: AGHT+IEmUCbqSOgqYRUo+at83XPAI3vIj2Gk9fmBuYqIS6vW5X3U6iaHF0r40vfi8E6J4cj4I0zb5Q== X-Received: by 2002:a05:6512:2033:b0:518:d376:3c6 with SMTP id s19-20020a056512203300b00518d37603c6mr4237415lfs.45.1714041722435; Thu, 25 Apr 2024 03:42:02 -0700 (PDT) X-Received: from [10.80.5.21] (default-46-102-197-194.interdsl.co.uk. [46.102.197.194]) by smtp.gmail.com with ESMTPSA id dk21-20020a170907941500b00a55aee4bf74sm5478672ejc.79.2024.04.25.03.42.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 03:42:02 -0700 (PDT) Message-ID: <5c832dc4-57e9-43a4-96ed-63074da2652f@cloud.com> Date: Thu, 25 Apr 2024 11:42:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH] OvmfPkg: Set PcdCpuMaxLogicalProcessorNumber in OvmfXen To: Gerd Hoffmann Cc: devel@edk2.groups.io, Anthony Perard , Ard Biesheuvel , Jiewen Yao References: From: "Alejandro Vallejo via groups.io" In-Reply-To: Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 25 Apr 2024 03:42:04 -0700 Resent-From: alejandro.vallejo@cloud.com Reply-To: devel@edk2.groups.io,alejandro.vallejo@cloud.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Language: en-GB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=fRCjwHn7; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Hi, On 25/04/2024 08:31, Gerd Hoffmann wrote: > On Wed, Apr 24, 2024 at 02:36:32PM +0100, Alejandro Vallejo wrote: >> Bump the compile-time constant for maximum processor count from 64 to 12= 8 >> in order to allow that many vCPUs to be brought online on Xen guests wit= h >> the default OVMF configuration. >=20 >> + # UefiCpuPkg PCDs related to initial AP bringup and general AP manage= ment. >> + gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|128 >=20 > Note that this is a dynamic PCD, so you can set it at runtime to the > number of vcpus present in the VM. See MaxCpuCountInitialization() in > OvmfPkg/PlatformPei/Platform.c for example. >=20 > take care, > Gerd >=20 Thanks for the heads up. Do you mean setting it at runtime through fw_cfg? I saw PlatformMaxCpuCountInitialization() providing some customizability, but Xen's toolstack doesn't provide fw_cfg at the moment so it can't (as far as I've seen) use it. I'm currently forced to do the override at compile time passing this... --pcd gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber=3D128 ... to build.sh, but I'd rather have the default max match Xen's idea of max unless there's a strong reason not to. Cheers, Alejandro -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118286): https://edk2.groups.io/g/devel/message/118286 Mute This Topic: https://groups.io/mt/105721898/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-