33 #ifndef _ASM_X86_XEN_HYPERVISOR_H
34 #define _ASM_X86_XEN_HYPERVISOR_H
39 #include <asm/processor.h>
41 static inline uint32_t xen_cpuid_base(
void)
46 for (base = 0x40000000; base < 0x40010000; base += 0x100) {
47 cpuid(base, &eax, &ebx, &ecx, &edx);
53 if (!
strcmp(
"XenVMMXenVMM", signature) && ((eax - base) >= 2))
61 extern bool xen_hvm_need_lapic(
void);
63 static inline bool xen_x2apic_para_available(
void)
65 return xen_hvm_need_lapic();
68 static inline bool xen_x2apic_para_available(
void)
70 return (xen_cpuid_base() != 0);