From nobody Sat Nov 23 12:51:49 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 17316708986348.347386849952727; Fri, 15 Nov 2024 03:41:38 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id D2B7FE0EA1; Fri, 15 Nov 2024 11:41:33 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 2D0A0E0EBF for ; Fri, 15 Nov 2024 11:40:22 +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-567-5J8wbcH3OYidWNqo1CaADw-1; Fri, 15 Nov 2024 06:40:20 -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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 508F219560A2 for ; Fri, 15 Nov 2024 11:40:19 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0B7A91956089; Fri, 15 Nov 2024 11:40:18 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id 0F54E180100B; 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=1731670821; 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=kmFx0iRU0SoaN/4jixzPO2Lc8OEz2usJukjC5apYhw0=; b=drZjzPYWgYl3MSGpeeYLiBjfbA3IyBuErPUye4hQO0UOK2c2aRL0snmPN6z9Dt9uLU6T17 R+rHKFnX4McGSfxP7Q7+/U1KW/yUFDCxSiiKw63e4Xq163NxyyrUtvvPEL3Fm8iDSiXNTw BXfJfuSH0ZFFYslglBPuiDAW1fGDy2Y= X-MC-Unique: 5J8wbcH3OYidWNqo1CaADw-1 X-Mimecast-MFC-AGG-ID: 5J8wbcH3OYidWNqo1CaADw From: Gerd Hoffmann To: seabios@seabios.org Date: Fri, 15 Nov 2024 12:40:10 +0100 Message-ID: <20241115114010.51342-5-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.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: vBuDc9oO_j9fcsrMibNqkD-H3zJEeoG9XCEahiXMnE8_1731670819 X-Mimecast-Originator: redhat.com Message-ID-Hash: LLAWYSIX6UXLCESJB5HV7DJXTZJQGOWF X-Message-ID-Hash: LLAWYSIX6UXLCESJB5HV7DJXTZJQGOWF 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 4/4] add guest hint fw_cfg override 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: 1731670900686116600 Content-Type: text/plain; charset="utf-8"; x-default="true" Add runtime fwcfg override for the guest hint. Usage: qemu -fw_cfg name=3Detc/guest-hint,string=3D32 Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index 001be7caf102..25b37647d299 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -720,6 +720,13 @@ void qemu_cfg_init(void) dprintf(1, "Moving pm_base to 0x%x\n", acpi_pm_base); } =20 + // guest hint + char *hint =3D romfile_loadfile("etc/guest-hint", NULL); + if (hint && strcmp(hint, "32") =3D=3D 0) + GuestHint =3D 32; + if (hint && strcmp(hint, "64") =3D=3D 0) + GuestHint =3D 64; + // serial console u16 nogfx =3D 0; qemu_cfg_read_entry(&nogfx, QEMU_CFG_NOGRAPHIC, sizeof(nogfx)); --=20 2.47.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org