[SeaBIOS] [PATCH 1/4] paravirt: disable legacy bios tables in case of more than 255 CPUs
Igor Mammedov
imammedo at redhat.com
Tue May 10 16:43:31 CEST 2016
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 at redhat.com>
---
src/fw/paravirt.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c
index 8ed4380..9b07aaa 100644
--- a/src/fw/paravirt.c
+++ b/src/fw/paravirt.c
@@ -154,8 +154,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) {
--
1.8.3.1
More information about the SeaBIOS
mailing list