[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xl: support oos domain parameter



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1272008369 -3600
# Node ID 49e3aa844902045cc38e4d4b2b0f82b0c78d102b
# Parent  3235ef7a839ffabc15f5c1c496aa864746df1cf9
xl: support oos domain parameter

Signed-off-by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Acked-by: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
---
 tools/libxl/libxl.c |    1 +
 tools/libxl/libxl.h |    1 +
 tools/libxl/xl.c    |    5 +++++
 3 files changed, 7 insertions(+)

diff -r 3235ef7a839f -r 49e3aa844902 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Fri Apr 23 08:38:35 2010 +0100
+++ b/tools/libxl/libxl.c       Fri Apr 23 08:39:29 2010 +0100
@@ -99,6 +99,7 @@ int libxl_domain_make(struct libxl_ctx *
 
     flags = info->hvm ? XEN_DOMCTL_CDF_hvm_guest : 0;
     flags |= info->hap ? XEN_DOMCTL_CDF_hap : 0;
+    flags |= info->oos ? 0 : XEN_DOMCTL_CDF_oos_off;
     *domid = -1;
 
     /* Ultimately, handle is an array of 16 uint8_t, same as uuid */
diff -r 3235ef7a839f -r 49e3aa844902 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Fri Apr 23 08:38:35 2010 +0100
+++ b/tools/libxl/libxl.h       Fri Apr 23 08:39:29 2010 +0100
@@ -79,6 +79,7 @@ typedef struct {
 typedef struct {
     bool hvm;
     bool hap;
+    bool oos;
     int ssidref;
     char *name;
     uint8_t uuid[16];
diff -r 3235ef7a839f -r 49e3aa844902 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Fri Apr 23 08:38:35 2010 +0100
+++ b/tools/libxl/xl.c  Fri Apr 23 08:39:29 2010 +0100
@@ -151,6 +151,7 @@ static void init_create_info(libxl_domai
     c_info->xsdata = NULL;
     c_info->platformdata = NULL;
     c_info->hvm = 1;
+    c_info->oos = 1;
     c_info->ssidref = 0;
 }
 
@@ -275,6 +276,7 @@ static void printf_info(libxl_domain_cre
     printf("*** domain_create_info ***\n");
     printf("hvm: %d\n", c_info->hvm);
     printf("hap: %d\n", c_info->hap);
+    printf("oos: %d\n", c_info->oos);
     printf("ssidref: %d\n", c_info->ssidref);
     printf("name: %s\n", c_info->name);
     printf("uuid: " UUID_FMT "\n",
@@ -435,6 +437,9 @@ static void parse_config_data(const char
     for (i = 0; i < 16; i++) {
         c_info->uuid[i] = rand();
     }
+
+    if (!xlu_cfg_get_long(config, "oos", &l))
+        c_info->oos = l;
 
     init_build_info(b_info, c_info);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.