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 09:46:27 +0000 (17:46 +0800)
commit2a8d2fe71cd842aa2fb196f33cc07034fb36d3c5
treeeef116777da0ca2946109762b626b28c83918cd8
parent1d734cf3d110f848d5ca99430eaf500eeeede49a
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