Skip to contentSkip to conversation

seabios: missing DMI type 4 entry if -cpu parameter is used

Qemu-devel Sebastian Herbszt 3 participants 4 messages Nov 22, 2009 – Nov 24, 2009

lore
Share & tools
lore
#0 lore raw

v0.11.0-rc0-1677:
use -cpu pentium and check SMBIOS tables. DMI type 4 entry is missing. Works with Bochs bios.

- Sebastian

#1 lore raw
Quoted 4 lines · Sebastian Herbszt

v0.11.0-rc0-1677:
use -cpu pentium and check SMBIOS tables. DMI type 4 entry is missing. Works with Bochs bios.

See two problems here. First one in seabios (patch attached). And the second one in QEMU. Why pentium cpu type lacks apic? Specifying -cpu pentium,+apic works with current seabios without the patch.

src/smp.c +2 -0
index 7100476..00cf64b 100644
@@ -75,7 +75,9 @@ smp_probe(void)
     cpuid(1, &eax, &ebx, &ecx, &cpuid_features);
     if (! (cpuid_features & CPUID_APIC)) {
         // No apic - only the main cpu is present.
+        dprintf(1, "No apic - only the main cpu is present.\n");
         CountCPUs= 1;
+        MaxCountCPUs = 1;
         return;
     }
 

--
Gleb.

#2 lore raw
Quoted 8 lines · Gleb Natapov
Quoted 4 lines · Sebastian Herbszt

v0.11.0-rc0-1677:
use -cpu pentium and check SMBIOS tables. DMI type 4 entry is missing. Works with Bochs bios.

See two problems here. First one in seabios (patch attached). And the second one in QEMU. Why pentium cpu type lacks apic? Specifying -cpu pentium,+apic works with current seabios without the patch.

The "Pentium Processor Family Developer's Manual, Volume 3: Architecture and Programming Manual" says the following in Chapter 19.3:

"APIC IS SUPPORTED ONLY ON PENTIUM PROCESSOR (735\90, 815\100, 1000\120, 1110\133) AND FUTURE PROLIFERATIONS AND UPGRADES."

So it seems not all pentium cpus have an apic. No clue which model and stepping those are so can't compare to what qemu claims to provide.

- Sebastian

#3 lore raw
In reply to Gleb Natapov
Quoted 10 lines · Gleb Natapov
Quoted 4 lines · Sebastian Herbszt

v0.11.0-rc0-1677:
use -cpu pentium and check SMBIOS tables. DMI type 4 entry is missing. Works with Bochs bios.

See two problems here. First one in seabios (patch attached). And the second one in QEMU. Why pentium cpu type lacks apic? Specifying -cpu pentium,+apic works with current seabios without the patch.

Thanks - commit b49e1e38.

-Kevin