From nobody Wed Dec 4 09:11:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1731670881930772.4119186407729; Fri, 15 Nov 2024 03:41:21 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id CAD09E0F14; Fri, 15 Nov 2024 11:41:17 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 331A3E0EBF for ; Fri, 15 Nov 2024 11:40:19 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-685-lXfSWnv0P_yk40mDwKvpvQ-1; Fri, 15 Nov 2024 06:40:17 -0500 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 45E0D19560B1 for ; Fri, 15 Nov 2024 11:40:16 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 001CB1956054; Fri, 15 Nov 2024 11:40:15 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id 0B1231801009; Fri, 15 Nov 2024 12:40:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731670818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TuQSKJOCOKCaxU8ALNnBNFxXoYDrRZAXkK3fDE2oEOo=; b=iRk/gSbftyXL8Q1oOdP1llkVC4ElizDxQgNb5JfwmYJQSLh4n5hdE22cV03pThIx/6+YNQ YLKM0RMkNRHV2LqYjl9306cTM0RUTgHTx1ZyqLHVYwZyBdqXTer3vuQqj6Uwpcbk3vTyoV yGySztwfTrVvecCCgTH7kMgDEZX2Vrw= X-MC-Unique: lXfSWnv0P_yk40mDwKvpvQ-1 X-Mimecast-MFC-AGG-ID: lXfSWnv0P_yk40mDwKvpvQ From: Gerd Hoffmann To: seabios@seabios.org Date: Fri, 15 Nov 2024 12:40:09 +0100 Message-ID: <20241115114010.51342-4-kraxel@redhat.com> In-Reply-To: <20241115114010.51342-1-kraxel@redhat.com> References: <20241115114010.51342-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: eK7FFqKBTdyQx-4BzJhOqbF9oTMsJw6s7HyUxGR-13A_1731670816 X-Mimecast-Originator: redhat.com Message-ID-Hash: BJ77N2D4NEAY4SPSN25SZVZCE43QIP3I X-Message-ID-Hash: BJ77N2D4NEAY4SPSN25SZVZCE43QIP3I X-MailFrom: kraxel@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Gerd Hoffmann X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] [PATCH 3/4] add guest hint default kconfig List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: --- X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1731670882489116600 Content-Type: text/plain; charset="utf-8"; x-default="true" Add compile time config option for the guest hint default value. Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.c | 2 +- src/Kconfig | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index fbd00f1c072f..001be7caf102 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -37,7 +37,7 @@ u8 CPUPhysBits; // 64bit processor u8 CPULongMode; // memory layout hint (32bit or 64bit guests). -u8 GuestHint =3D 32; +u8 GuestHint =3D CONFIG_DEFAULT_GUEST_HINT; // Type of emulator platform. int PlatformRunningOn VARFSEG; // cfg enabled diff --git a/src/Kconfig b/src/Kconfig index 3a8ffa15fded..7c8104f01718 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -478,6 +478,13 @@ menu "BIOS interfaces" help Provide TPM support along with TCG BIOS extensions =20 + config DEFAULT_GUEST_HINT + int "tweak default config for 32-bit or 64-bit guests" + default 32 + help + Optimize memory layout (specifically the placement + of pci bars) for 32-bit or 64-bit guests. + endmenu =20 menu "BIOS Tables" --=20 2.47.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org