[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] [PATCH] 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, -- KUWAMURA Shin'ya # HG changeset patch # User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx> # 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. Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx> diff -r 7875c75dc92d -r 36a841785e3b tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Wed Nov 18 16:09:36 2009 +0900 +++ b/tools/libxl/libxl_dom.c Thu Nov 19 11:31:44 2009 +0900 @@ -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; } diff -r 7875c75dc92d -r 36a841785e3b tools/libxl/xenguest.c --- a/tools/libxl/xenguest.c Wed Nov 18 16:09:36 2009 +0900 +++ b/tools/libxl/xenguest.c Thu Nov 19 11:31:44 2009 +0900 @@ -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 Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |