Changeset View
Changeset View
Standalone View
Standalone View
sys/xen/interface/arch-x86/cpuid.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
* PV-specific parameters | * PV-specific parameters | ||||
* Sub-leaf 0: EAX: max available sub-leaf | * Sub-leaf 0: EAX: max available sub-leaf | ||||
* Sub-leaf 0: EBX: bits 0-7: max machine address width | * Sub-leaf 0: EBX: bits 0-7: max machine address width | ||||
*/ | */ | ||||
/* Max. address width in bits taking memory hotplug into account. */ | /* Max. address width in bits taking memory hotplug into account. */ | ||||
#define XEN_CPUID_MACHINE_ADDRESS_WIDTH_MASK (0xffu << 0) | #define XEN_CPUID_MACHINE_ADDRESS_WIDTH_MASK (0xffu << 0) | ||||
#define XEN_CPUID_MAX_NUM_LEAVES 5 | #define XEN_CPUID_MAX_PV_NUM_LEAVES 5 | ||||
#define XEN_CPUID_MAX_HVM_NUM_LEAVES 4 | |||||
#define XEN_CPUID_MAX_NUM_LEAVES \ | |||||
(XEN_CPUID_MAX_PV_NUM_LEAVES > XEN_CPUID_MAX_HVM_NUM_LEAVES ? \ | |||||
XEN_CPUID_MAX_PV_NUM_LEAVES : XEN_CPUID_MAX_HVM_NUM_LEAVES) | |||||
#endif /* __XEN_PUBLIC_ARCH_X86_CPUID_H__ */ | #endif /* __XEN_PUBLIC_ARCH_X86_CPUID_H__ */ |