Add macro cpu_has_cx16 to detect X86_FEATURE_CX16 feature. CC: Keir Fraser <k...@xen.org> CC: Jan Beulich <jbeul...@suse.com> CC: Andrew Cooper <andrew.coop...@citrix.com> CC: Kevin Tian <kevin.t...@intel.com> Signed-off-by: Feng Wu <feng...@intel.com> Reviewed-by: Kevin Tian <kevin.t...@intel.com> Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> --- v4: - no changes
v3: - Newly added. We need to atomically update the IRTE in PI format via CMPXCHG16B which is only available with this feature. xen/include/asm-x86/cpufeature.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/asm-x86/cpufeature.h b/xen/include/asm-x86/cpufeature.h index 7963a3a..63c1fe8 100644 --- a/xen/include/asm-x86/cpufeature.h +++ b/xen/include/asm-x86/cpufeature.h @@ -216,6 +216,8 @@ #define cpu_has_cpuid_faulting boot_cpu_has(X86_FEATURE_CPUID_FAULTING) +#define cpu_has_cx16 boot_cpu_has(X86_FEATURE_CX16) + enum _cache_type { CACHE_TYPE_NULL = 0, CACHE_TYPE_DATA = 1, -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel