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>
smp_setup();
// Create bios tables
- pirtable_setup();
- mptable_setup();
+ if (MaxCountCPUs <= 255) {
+ pirtable_setup();
+ mptable_setup();
+ }
smbios_setup();
if (CONFIG_FW_ROMFILE_LOAD) {