ioapic: By default, disable I/O APIC if we are booting on a virtual machine
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 14 Mar 2012 03:18:44 +0000 (11:18 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 14 Mar 2012 03:18:44 +0000 (11:18 +0800)
commite6dee92888cc1f1ee52d36053fabf97cfd2f9518
treea3ade6194b965049733b47bbdfed4cbee582c8d0
parent2ad808821cf8c428d567007767be9beb2c4eba8e
ioapic: By default, disable I/O APIC if we are booting on a virtual machine

I/O APIC causes too much trouble on virtual machines; simply disable
I/O APIC for virtual machines by default.

You could always explicitly enable I/O APIC on virtual machines by
setting tunable hw.ioapic_enable to 1

Thank swildner@ for hint on virtual machine detection method.

Reported-by: many
sys/platform/pc32/apic/ioapic.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc64/apic/ioapic.c
sys/platform/pc64/x86_64/machdep.c