]> xenbits.xensource.com Git - seabios.git/commitdiff
paravirt: disable legacy bios tables in case of more than 255 CPUs
authorIgor Mammedov <imammedo@redhat.com>
Thu, 13 Oct 2016 12:38:25 +0000 (14:38 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 25 Oct 2016 13:58:17 +0000 (09:58 -0400)
MPTable doesn't support more than 255 CPUs and
QEMU supplies an alternative MADT table which
guest will use instead of it. So do not install
legacy tables if more than 254 CPUs are provided

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
src/fw/paravirt.c

index 73a08f052e54a2c25e138e7d2f32b2e084afbb04..33a471bdecc17a707bf3483627b61c2d94638145 100644 (file)
@@ -164,8 +164,10 @@ qemu_platform_setup(void)
     smp_setup();
 
     // Create bios tables
-    pirtable_setup();
-    mptable_setup();
+    if (MaxCountCPUs <= 255) {
+        pirtable_setup();
+        mptable_setup();
+    }
     smbios_setup();
 
     if (CONFIG_FW_ROMFILE_LOAD) {