Add support for x2apic mode
authorsf <sf@openbsd.org>
Sun, 19 Apr 2015 19:45:21 +0000 (19:45 +0000)
committersf <sf@openbsd.org>
Sun, 19 Apr 2015 19:45:21 +0000 (19:45 +0000)
commit984d47442509d56351882771252bcf7b658a4e08
treeb3daa3ff0b122d96825056a62a6217bc2fe26e43
parent5ce49a8e00011c89142566c2ee302e2066a989e1
Add support for x2apic mode

This is currently only enabled on hypervisors because on real hardware, it
requires interrupt remapping which we don't support yet. But on virtualization
it reduces the number of vmexits required per IPI from 4 to 1, causing a
significant speed-up for MP guests.

ok kettenis@
sys/arch/amd64/amd64/lapic.c
sys/arch/amd64/amd64/mptramp.S
sys/arch/amd64/amd64/vector.S
sys/arch/amd64/include/codepatch.h
sys/arch/amd64/include/cpuvar.h
sys/arch/amd64/include/i82093reg.h
sys/arch/amd64/include/i82489reg.h
sys/arch/amd64/include/i82489var.h
sys/arch/amd64/include/specialreg.h