Skip to contentSkip to conversation

libxenlight: fix compilation error for ia64

PATCH New KUWAMURA Shin'ya 1 participant 1 message Nov 20, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxenlight: fix compilation error for ia64

Hi,

This patch fixes compilation errors of libxenlight for ia64. xc_cpuid_apply_policy() and HVM_PARAM_VIRIDIAN are defined on x86 only.

Best regards,

Signature · 1 line
  KUWAMURA Shin'ya

# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1258597904 -32400
# Node ID 36a841785e3b8b3a8b4d067049bba6db1f4e9020 # Parent 7875c75dc92d1707843151da28bbd71f90ab7329
libxenlight: fix compilation error for ia64

xc_cpuid_apply_policy() and HVM_PARAM_VIRIDIAN are defined on x86 only.

tools/libxl/libxl_dom.c +2 -0
diff -r 7875c75dc92d -r 36a841785e3b tools/libxl/libxl_dom.c
@@ -123,7 +123,9 @@ int build_hvm(struct libxl_ctx *ctx, uin
         XL_LOG(ctx, XL_LOG_ERROR, "hvm build set params failed: %d", ret);
         return ERROR_FAIL;
     }
+#if defined(__i386__) || defined(__x86_64__)
     xc_cpuid_apply_policy(ctx->xch, domid);
+#endif
     return 0;
 }
 
tools/libxl/xenguest.c +2 -0
diff -r 7875c75dc92d -r 36a841785e3b tools/libxl/xenguest.c
@@ -43,7 +43,9 @@ int hvm_build_set_params(int handle, uin
 
     xc_get_hvm_param(handle, domid, HVM_PARAM_STORE_PFN, store_mfn);
     xc_set_hvm_param(handle, domid, HVM_PARAM_PAE_ENABLED, pae);
+#if defined(__i386__) || defined(__x86_64__)
     xc_set_hvm_param(handle, domid, HVM_PARAM_VIRIDIAN, viridian);
+#endif
     xc_set_hvm_param(handle, domid, HVM_PARAM_STORE_EVTCHN, store_evtchn);
     return 0;
 }

_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel