aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_nocpuid.c
diff options
context:
space:
mode:
authorKUWAMURA Shin'ya <kuwa@jp.fujitsu.com>2010-11-09 17:43:12 +0000
committerKUWAMURA Shin'ya <kuwa@jp.fujitsu.com>2010-11-09 17:43:12 +0000
commite737da7402197195b997c778d9dab2995f49b6ab (patch)
tree5e27b3539550306f73c77951e90babe255abe22e /tools/libxl/libxl_nocpuid.c
parent4831e2743f6f8d42ebba883dbf541d7963268bca (diff)
downloadxen-e737da7402197195b997c778d9dab2995f49b6ab.tar.gz
xen-e737da7402197195b997c778d9dab2995f49b6ab.tar.bz2
xen-e737da7402197195b997c778d9dab2995f49b6ab.zip
tools: libxl: fix cpuid compilation errors for ia64
ia64 does not have cpuid. So break out cpuid-related functions into a separate file, with stubs for ia64. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_nocpuid.c')
-rw-r--r--tools/libxl/libxl_nocpuid.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/libxl/libxl_nocpuid.c b/tools/libxl/libxl_nocpuid.c
new file mode 100644
index 0000000000..25b49a16fc
--- /dev/null
+++ b/tools/libxl/libxl_nocpuid.c
@@ -0,0 +1,37 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; version 2.1 only. with the special
+ * exception on linking described in file LICENSE.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ */
+
+#include "libxl.h"
+
+void libxl_cpuid_destroy(libxl_cpuid_policy_list *p_cpuid_list)
+{
+}
+
+int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str)
+{
+ return 0;
+}
+
+int libxl_cpuid_parse_config_xend(libxl_cpuid_policy_list *cpuid,
+ const char* str)
+{
+ return 0;
+}
+
+void libxl_cpuid_apply_policy(libxl_ctx *ctx, uint32_t domid)
+{
+}
+
+void libxl_cpuid_set(libxl_ctx *ctx, uint32_t domid,
+ libxl_cpuid_policy_list cpuid)
+{
+}