From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6A2FA81EF0 for ; Thu, 24 Nov 2016 12:56:58 -0800 (PST) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C4A1161B84; Thu, 24 Nov 2016 20:56:57 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-81.phx2.redhat.com [10.3.116.81]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAOKutMl031635; Thu, 24 Nov 2016 15:56:56 -0500 From: Laszlo Ersek To: edk2-devel-01 Cc: Igor Mammedov , Jeff Fan , Jordan Justen , Michael Kinney Date: Thu, 24 Nov 2016 21:56:49 +0100 Message-Id: <20161124205652.12113-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 24 Nov 2016 20:56:57 +0000 (UTC) Subject: [PATCH v2 0/3] UefiCpuPkg, OvmfPkg: set maximum (V)CPU count dynamically X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2016 20:56:58 -0000 This is version 2 of the series at . Changes in this version: - Patches #1 and #2 from v1 have been committed. - Patches #3 and #4 from v1 have been reworked based on Jeff's advice. Namely, we now set PcdCpuMaxLogicalProcessorNumber and PcdCpuApInitTimeOutInMicroSeconds dynamically, rather than adding a new PCD. The method of waiting has been changed too, we now wait for the CPUs and the timeout simultaneously. - Making PcdCpuMaxLogicalProcessorNumber actually dynamic required changes for PiSmmCpuDxeSmm too, so a new patch has been inserted at the front. Repo: https://github.com/lersek/edk2/ Branch: mpinit_v2 Cc: Igor Mammedov Cc: Jeff Fan Cc: Jordan Justen Cc: Michael Kinney Thanks Laszlo Laszlo Ersek (3): UefiCpuPkg/PiSmmCpuDxeSmm: handle dynamic PcdCpuMaxLogicalProcessorNumber UefiCpuPkg/MpInitLib: wait no longer than necessary for initial AP startup OvmfPkg/PlatformPei: take VCPU count from QEMU and configure MpInitLib OvmfPkg/OvmfPkgIa32.dsc | 4 ++ OvmfPkg/OvmfPkgIa32X64.dsc | 4 ++ OvmfPkg/OvmfPkgX64.dsc | 4 ++ OvmfPkg/PlatformPei/MemDetect.c | 2 +- OvmfPkg/PlatformPei/Platform.c | 43 +++++++++++++ OvmfPkg/PlatformPei/Platform.h | 2 + OvmfPkg/PlatformPei/PlatformPei.inf | 1 + UefiCpuPkg/Library/MpInitLib/MpLib.c | 67 +++++++++++++++++++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 18 +++--- UefiCpuPkg/UefiCpuPkg.dec | 3 +- 11 files changed, 137 insertions(+), 13 deletions(-) -- 2.9.2