WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] libxenlight: fix compilation error for ia64

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] libxenlight: fix compilation error for ia64
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Fri, 20 Nov 2009 11:08:33 +0900 (JST)
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 19 Nov 2009 18:09:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] libxenlight: fix compilation error for ia64, KUWAMURA Shin'ya <=