apic: Move hypervisor detection of x2apic to hypervisor.h