Generate mptable unconditionally.
VMware ESX requires an mptable even for uniprocessor guests.
Qemu pcbios commit 9869338791ca6f44e628b88e6335ffd66e1ed86b
Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/src/mptable.c b/src/mptable.c
index 793968c..3945d2e 100644
--- a/src/mptable.c
+++ b/src/mptable.c
@@ -18,10 +18,6 @@
dprintf(3, "init MPTable\n");
- if (MaxCountCPUs <= 1)
- // Building an mptable on uniprocessor machines confuses some OSes.
- return;
-
int length = (sizeof(struct mptable_config_s)
+ sizeof(struct mpt_cpu) * MaxCountCPUs
+ sizeof(struct mpt_bus)