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-changelog

[Xen-changelog] [xen-unstable] libxenlight: fix compilation error for ia

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxenlight: fix compilation error for ia64
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Nov 2009 23:35:44 -0800
Delivery-date: Sun, 22 Nov 2009 23:37:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxenlight: fix compilation error for ia64, Xen patchbot-unstable <=