diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-10-13 14:38:25 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-10-25 09:58:17 -0400 |
commit | f769589877b606d2c1b9b218b54b6ccef9440230 (patch) | |
tree | 27d612ee3a2b18f57d2f51d207d267907672b6dc /src/fw/paravirt.c | |
parent | 75411cec118744dc58888701f71c57e95ac0e023 (diff) | |
download | seabios-f769589877b606d2c1b9b218b54b6ccef9440230.tar.gz |
paravirt: disable legacy bios tables in case of more than 255 CPUs
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>
Diffstat (limited to 'src/fw/paravirt.c')
-rw-r--r-- | src/fw/paravirt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index 73a08f05..33a471bd 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -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) { |