debuggers.hg

changeset 21274:49e3aa844902

xl: support oos domain parameter

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Apr 23 08:39:29 2010 +0100 (2010-04-23)
parents 3235ef7a839f
children ffcc927a19a4
files tools/libxl/libxl.c tools/libxl/libxl.h tools/libxl/xl.c
line diff
     1.1 --- a/tools/libxl/libxl.c	Fri Apr 23 08:38:35 2010 +0100
     1.2 +++ b/tools/libxl/libxl.c	Fri Apr 23 08:39:29 2010 +0100
     1.3 @@ -99,6 +99,7 @@ int libxl_domain_make(struct libxl_ctx *
     1.4  
     1.5      flags = info->hvm ? XEN_DOMCTL_CDF_hvm_guest : 0;
     1.6      flags |= info->hap ? XEN_DOMCTL_CDF_hap : 0;
     1.7 +    flags |= info->oos ? 0 : XEN_DOMCTL_CDF_oos_off;
     1.8      *domid = -1;
     1.9  
    1.10      /* Ultimately, handle is an array of 16 uint8_t, same as uuid */
     2.1 --- a/tools/libxl/libxl.h	Fri Apr 23 08:38:35 2010 +0100
     2.2 +++ b/tools/libxl/libxl.h	Fri Apr 23 08:39:29 2010 +0100
     2.3 @@ -79,6 +79,7 @@ const libxl_version_info* libxl_get_vers
     2.4  typedef struct {
     2.5      bool hvm;
     2.6      bool hap;
     2.7 +    bool oos;
     2.8      int ssidref;
     2.9      char *name;
    2.10      uint8_t uuid[16];
     3.1 --- a/tools/libxl/xl.c	Fri Apr 23 08:38:35 2010 +0100
     3.2 +++ b/tools/libxl/xl.c	Fri Apr 23 08:39:29 2010 +0100
     3.3 @@ -151,6 +151,7 @@ static void init_create_info(libxl_domai
     3.4      c_info->xsdata = NULL;
     3.5      c_info->platformdata = NULL;
     3.6      c_info->hvm = 1;
     3.7 +    c_info->oos = 1;
     3.8      c_info->ssidref = 0;
     3.9  }
    3.10  
    3.11 @@ -275,6 +276,7 @@ static void printf_info(libxl_domain_cre
    3.12      printf("*** domain_create_info ***\n");
    3.13      printf("hvm: %d\n", c_info->hvm);
    3.14      printf("hap: %d\n", c_info->hap);
    3.15 +    printf("oos: %d\n", c_info->oos);
    3.16      printf("ssidref: %d\n", c_info->ssidref);
    3.17      printf("name: %s\n", c_info->name);
    3.18      printf("uuid: " UUID_FMT "\n",
    3.19 @@ -436,6 +438,9 @@ static void parse_config_data(const char
    3.20          c_info->uuid[i] = rand();
    3.21      }
    3.22  
    3.23 +    if (!xlu_cfg_get_long(config, "oos", &l))
    3.24 +        c_info->oos = l;
    3.25 +
    3.26      init_build_info(b_info, c_info);
    3.27  
    3.28      /* the following is the actual config parsing with overriding values in the structures */