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 EEE62740045 for ; Fri, 28 Jun 2024 14:25:55 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=S4bVfnU2BMlr9tNAC7Yar/nZh9haKkLEj6R02XdYjnE=; c=relaxed/simple; d=groups.io; h=Mime-Version:Date:Message-Id:Cc:Subject:From:To:References: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-Transfer-Encoding:Content-Type; s=20240206; t=1719584755; v=1; b=D0UfJ+q1SAeSQoy01x2jVXH04bzQ1EXbiT+yMI95Xr4lrjg5moPsh+EU7+5ygGwWMnk942Af TjwzudEQZqBGL8RNL61KmYePk8c24JhXUNoGxQArNk7T1oZhGO26WDjzEbGW9Cg84NkgwXHVYjK yPtzBisyqFBE0V2CHSaJsuYH8jxpveyPFFcmBdxQKlzImZQTV78YqSSYyZjx+K4ZWKw0s7nqkWZ R8bnpMSZPwn4elF9NsIHzhQbnkQJDS3atYRiFw8RIRpnKpbA8odHl+F4KPtLWUSSHwg0HbpcB92 qWd7XrYg1GLLRMhardQimm9HJVWD81lWSGLMVl1a0avTw== X-Received: by 127.0.0.2 with SMTP id M7pIYY7687511xINIEXxhnPl; Fri, 28 Jun 2024 07:25:54 -0700 X-Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) by mx.groups.io with SMTP id smtpd.web10.18224.1719584748458919092 for ; Fri, 28 Jun 2024 07:25:48 -0700 X-Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-3d55e2e0327so381991b6e.0 for ; Fri, 28 Jun 2024 07:25:48 -0700 (PDT) X-Gm-Message-State: 3wQuDOb9Yk4aIxrvfBzbLf7Fx7686176AA= X-Google-Smtp-Source: AGHT+IGwIHMMMwoEzlVU7kgRurOjP432t36U18Myyqj/H0ZuY8GwjXdbmmZMO1UPoinaJNVrzeDF1w== X-Received: by 2002:a05:6808:1241:b0:3d2:1759:7db0 with SMTP id 5614622812f47-3d543b1459dmr19153192b6e.35.1719584747695; Fri, 28 Jun 2024 07:25:47 -0700 (PDT) X-Received: from localhost ([160.101.139.1]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-80fdda673b0sm253174241.24.2024.06.28.07.25.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jun 2024 07:25:47 -0700 (PDT) Mime-Version: 1.0 Date: Fri, 28 Jun 2024 15:25:44 +0100 Message-Id: Cc: , "Ard Biesheuvel" , "Jiewen Yao" Subject: Re: [edk2-devel] [PATCH] OvmfPkg: Set PcdCpuMaxLogicalProcessorNumber in OvmfXen From: "Alejandro Vallejo via groups.io" To: "Gerd Hoffmann" , "Anthony PERARD" References: <5c832dc4-57e9-43a4-96ed-63074da2652f@cloud.com> <23141198-8725-4755-8f1f-2b35d6f3f4d7@perard> 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: Fri, 28 Jun 2024 07:25:48 -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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=D0UfJ+q1; 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 On Thu Apr 25, 2024 at 2:58 PM BST, Gerd Hoffmann wrote: > Hi, > =20 > > It's a bit more complicated than setting it at build time, but we can > > always ask Xen how many vcpu we have and set the PCD accordingly. This > > is something that can happen in OvmfPkg/XenPlatformPei module. > > Exactly. > > > But to be honest, I don't know if it's worth it, because I don't know t= he > > downside of having a higher value for PcdCpuMaxLogicalProcessorNumber. > > Well, the downside is that you have to keep ovmf and xen in sync > manually. Your call. If you prefer to do it that way I have no > objections, just wanted point out the alternative approach. > > take care, > Gerd FYI, I've created a Xen Gitlab ticket to expose the maximum number of vCPUs= as discussed. It shoudn't be hard to expose the information in the Xen-specifi= c CPUID leaves at 0x4000000X (they are visible even with Viridian enabled, so= that should be fine). I'll re-send a runtime version of this patch based on that information afte= r the required CPUID extension is in place. https://gitlab.com/xen-project/xen/-/issues/191 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 (#119727): https://edk2.groups.io/g/devel/message/119727 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-