Skip to contentSkip to conversation

support of oos parameter for xl create

PATCH In review Juergen Gross 2 participants 2 messages Apr 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support of oos parameter for xl create

Hi,

attached patch supports the parameter 'oos=...' for xl create to switch off out-of-sync shadow page tables.

Juergen

Signature · 5 lines
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: [email protected]
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html
Signed-off-by [email protected]
tools/libxl/libxl.c +1 -0
diff -r b0562b298d73 tools/libxl/libxl.c
@@ -98,6 +98,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 */
tools/libxl/libxl.h +1 -0
diff -r b0562b298d73 tools/libxl/libxl.h
@@ -61,6 +61,7 @@ typedef struct {
 typedef struct {
     bool hvm;
     bool hap;
+    bool oos;
     int ssidref;
     char *name;
     uint8_t uuid[16];
tools/libxl/xl.c +5 -0
diff -r b0562b298d73 tools/libxl/xl.c
@@ -150,6 +150,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;
 }
 
@@ -274,6 +275,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",
@@ -434,6 +436,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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Juergen Gross

Hi,

attached patch supports the parameter 'oos=...' for xl create to switch off out-of-sync shadow page tables.

Thanks for your contribution,

Signature · 1 line
Vincent