From nobody Fri Nov 14 15:21:11 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1762426656; cv=none; d=zohomail.com; s=zohoarc; b=YiUk3hU+swVKTOMNpkWiyKbzzkTgbTPTugu1g7VqV63FMbF2EpkwuWz20EfMJXt5G73+gf5gblDBE4jK3jXeXUaGvg9go5mSyVS+RUZDZ1dvYlyWociXs4+80pnPHhYjFXIef8R16Iri5QjiMLFdqVfcW8/hGg6kxp5BTYjfmYo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762426656; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5ZliaAzIL0/XsEs0zQXoK22rXGo24lUlSn1S6cRytrA=; b=kIkdeNkY5U9YZsP2UToj5DVuvTK7d1veUvVRowtcWyRVTgEewAc2ouUOnTOKnrhHTBdYh3Q80wz9/IKfvOY9sQOoIOBcFK2MMjKC/M84Iv7uKOckwv8lNekk8lygI/tLcY6SQekVzY2KfHIhSipnNiuH5VYHU4LhwFaNJP3J0x0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1762426656720501.4278170460542; Thu, 6 Nov 2025 02:57:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vGxfo-0006Xd-Cq; Thu, 06 Nov 2025 05:57:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vGxfj-0006XJ-FN for qemu-devel@nongnu.org; Thu, 06 Nov 2025 05:56:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vGxfh-0006ZQ-8u for qemu-devel@nongnu.org; Thu, 06 Nov 2025 05:56:55 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-466-PegsU3D0PXigelTsXYoCRQ-1; Thu, 06 Nov 2025 05:56:45 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DE71D1800473; Thu, 6 Nov 2025 10:56:43 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.44.33.5]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 105441945110; Thu, 6 Nov 2025 10:56:43 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C522D1800080; Thu, 06 Nov 2025 11:56:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762426610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=5ZliaAzIL0/XsEs0zQXoK22rXGo24lUlSn1S6cRytrA=; b=MXAO/3S7+nQIogpiBNEUy0xH4J6QqiOaXRD3d2RPnLj/qAqK0/t+9eimxLMtR0dh/L9oUd DzExgfAHxouHbv3Pl96+MXY32U8IKyaH9D37K2GwI1TjfWqd31o4JCgMdlgiOP4NtUU40x D+5l4o1fYJIUKTaP1Lc55BMAlYzIK1Q= X-MC-Unique: PegsU3D0PXigelTsXYoCRQ-1 X-Mimecast-MFC-AGG-ID: PegsU3D0PXigelTsXYoCRQ_1762426604 From: Gerd Hoffmann To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum , Gerd Hoffmann Subject: [PATCH] q35: increase default tseg size Date: Thu, 6 Nov 2025 11:56:40 +0100 Message-ID: <20251106105640.1642109-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.517, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1762426657851154100 Content-Type: text/plain; charset="utf-8" With virtual machines becoming larger (more CPUs, more memory) the memory needed by the SMM code in OVMF to manage page tables and vcpu state grows too. Default SMM memory (aka TSEG) size is 16 MB, and this often is not enough. Bump it to 64 MB for new machine types. Signed-off-by: Gerd Hoffmann --- hw/i386/pc.c | 4 +++- hw/pci-host/q35.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 4d6bcbb846a0..f8b919cb6c47 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -81,7 +81,9 @@ { "qemu64-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, }= ,\ { "athlon-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, }, =20 -GlobalProperty pc_compat_10_1[] =3D {}; +GlobalProperty pc_compat_10_1[] =3D { + { "mch", "extended-tseg-mbytes", "16" }, +}; const size_t pc_compat_10_1_len =3D G_N_ELEMENTS(pc_compat_10_1); =20 GlobalProperty pc_compat_10_0[] =3D { diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 1951ae440cce..a708758d3615 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -663,7 +663,7 @@ static void mch_realize(PCIDevice *d, Error **errp) =20 static const Property mch_props[] =3D { DEFINE_PROP_UINT16("extended-tseg-mbytes", MCHPCIState, ext_tseg_mbyte= s, - 16), + 64), DEFINE_PROP_BOOL("smbase-smram", MCHPCIState, has_smram_at_smbase, tru= e), }; =20 --=20 2.51.1