[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 5/5] XXX DO NOT APPLY: compilation test



---
 tools/libxc/xc_cpuid_x86.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c
index 89ded718bc..0af04a4e5a 100644
--- a/tools/libxc/xc_cpuid_x86.c
+++ b/tools/libxc/xc_cpuid_x86.c
@@ -869,3 +869,20 @@ int xc_cpuid_set(
     free_cpuid_domain_info(&info);
     return rc;
 }
+
+static void __attribute__((__unused__)) test_func(void)
+{
+    struct cpuid_leaf leaf;
+    struct cpuid_policy policy;
+    struct cpuid_cache_leaf cache_leaf;
+    uint32_t fs[FSCAPINTS] = { 0, };
+
+    memset(&leaf, 0, sizeof(leaf));
+    memset(&policy, 0, sizeof(policy));
+    memset(&cache_leaf, 0, sizeof(cache_leaf));
+
+    cpuid_policy_to_featureset(&policy, fs);
+    cpuid_featureset_to_policy(fs, &policy);
+
+    return;
+}
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.