]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
q35: increase default tseg size
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Nov 2025 10:56:40 +0000 (11:56 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Nov 2025 13:25:18 +0000 (08:25 -0500)
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 <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251106105640.1642109-1-kraxel@redhat.com>

hw/i386/pc.c
hw/pci-host/q35.c

index 4d6bcbb846a0d17667dc485b1d2113cfd3d41939..f8b919cb6c4789d4bc031543e2b9131128619c9d 100644 (file)
@@ -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, },
 
-GlobalProperty pc_compat_10_1[] = {};
+GlobalProperty pc_compat_10_1[] = {
+    { "mch", "extended-tseg-mbytes", "16" },
+};
 const size_t pc_compat_10_1_len = G_N_ELEMENTS(pc_compat_10_1);
 
 GlobalProperty pc_compat_10_0[] = {
index 1951ae440ccef6d7b8be970c921e1f05cb18e762..a708758d36155013cc70df416f803d560b5f88d9 100644 (file)
@@ -663,7 +663,7 @@ static void mch_realize(PCIDevice *d, Error **errp)
 
 static const Property mch_props[] = {
     DEFINE_PROP_UINT16("extended-tseg-mbytes", MCHPCIState, ext_tseg_mbytes,
-                       16),
+                       64),
     DEFINE_PROP_BOOL("smbase-smram", MCHPCIState, has_smram_at_smbase, true),
 };