[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxenlight: fix compilation error for ia64
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1258959999 0 # Node ID 43bce9566a91662b4e489a0300e07d84159c1217 # Parent ac117afd818a89910cf8e20cb211dea8397a5e4e 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> --- tools/libxl/libxl_dom.c | 2 ++ tools/libxl/xenguest.c | 2 ++ 2 files changed, 4 insertions(+) diff -r ac117afd818a -r 43bce9566a91 tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Mon Nov 23 07:06:10 2009 +0000 +++ b/tools/libxl/libxl_dom.c Mon Nov 23 07:06:39 2009 +0000 @@ -148,7 +148,9 @@ int build_hvm(struct libxl_ctx *ctx, uin XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "hvm build set params failed"); return ERROR_FAIL; } +#if defined(__i386__) || defined(__x86_64__) xc_cpuid_apply_policy(ctx->xch, domid); +#endif return 0; } diff -r ac117afd818a -r 43bce9566a91 tools/libxl/xenguest.c --- a/tools/libxl/xenguest.c Mon Nov 23 07:06:10 2009 +0000 +++ b/tools/libxl/xenguest.c Mon Nov 23 07:06:39 2009 +0000 @@ -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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |