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] xl: tsc_mode parameter in guest configura

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xl: tsc_mode parameter in guest configuration file
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 Apr 2010 23:20:35 -0700
Delivery-date: Mon, 05 Apr 2010 23:22:10 -0700
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 1270533380 -3600
# Node ID aef25086c71c0f640379741acbc251d37755f889
# Parent  29f271d3ceec05f7dbf470a9dfd2309249017435
xl: tsc_mode parameter in guest configuration file

Signed-off-by: Eric Chanudet <eric.chanudet@xxxxxxxxxx>
Acked-by: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.h     |    1 +
 tools/libxl/libxl_dom.c |    1 +
 tools/libxl/xl.c        |    4 ++++
 3 files changed, 6 insertions(+)

diff -r 29f271d3ceec -r aef25086c71c tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Tue Apr 06 06:55:37 2010 +0100
+++ b/tools/libxl/libxl.h       Tue Apr 06 06:56:20 2010 +0100
@@ -74,6 +74,7 @@ typedef struct {
     int vpt_align;
     int max_vcpus;
     int cur_vcpus;
+    int tsc_mode;
     uint32_t max_memkb;
     uint32_t target_memkb;
     uint32_t video_memkb;
diff -r 29f271d3ceec -r aef25086c71c tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Tue Apr 06 06:55:37 2010 +0100
+++ b/tools/libxl/libxl_dom.c   Tue Apr 06 06:56:20 2010 +0100
@@ -72,6 +72,7 @@ int build_pre(struct libxl_ctx *ctx, uin
     xc_domain_set_memmap_limit(ctx->xch, domid, 
             (info->hvm) ? info->max_memkb : 
             (info->max_memkb + info->u.pv.slack_memkb));
+    xc_domain_set_tsc_info(ctx->xch, domid, info->tsc_mode, 0, 0, 0);
 
     if (info->hvm) {
         unsigned long shadow;
diff -r 29f271d3ceec -r aef25086c71c tools/libxl/xl.c
--- a/tools/libxl/xl.c  Tue Apr 06 06:55:37 2010 +0100
+++ b/tools/libxl/xl.c  Tue Apr 06 06:56:20 2010 +0100
@@ -235,6 +235,7 @@ static void printf_info(libxl_domain_cre
     printf("hpet: %d\n", b_info->hpet);
     printf("vpt_align: %d\n", b_info->vpt_align);
     printf("max_vcpus: %d\n", b_info->max_vcpus);
+    printf("tsc_mode: %d\n", b_info->tsc_mode);
     printf("max_memkb: %d\n", b_info->max_memkb);
     printf("target_memkb: %d\n", b_info->target_memkb);
     printf("kernel: %s\n", b_info->kernel);
@@ -381,6 +382,9 @@ static void parse_config_file(const char
         b_info->max_memkb = l * 1024;
         b_info->target_memkb = b_info->max_memkb;
     }
+
+    if (!xlu_cfg_get_long(config, "tsc_mode", &l))
+        b_info->tsc_mode = l;
 
     if (!xlu_cfg_get_long (config, "shadow_memory", &l))
         b_info->shadow_memkb = l * 1024;

_______________________________________________
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] xl: tsc_mode parameter in guest configuration file, Xen patchbot-unstable <=