All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [Patch] support of oos parameter for xl create
Date: Thu, 22 Apr 2010 14:44:38 +0200	[thread overview]
Message-ID: <4BD044B6.6020700@ts.fujitsu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

Hi,

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


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

[-- Attachment #2: libxl-oos.patch --]
[-- Type: text/x-patch, Size: 1764 bytes --]

Signed-off-by: juergen.gross@ts.fujitsu.com

diff -r b0562b298d73 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c	Wed Apr 21 12:51:53 2010 +0100
+++ b/tools/libxl/libxl.c	Thu Apr 22 14:40:39 2010 +0200
@@ -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 */
diff -r b0562b298d73 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h	Wed Apr 21 12:51:53 2010 +0100
+++ b/tools/libxl/libxl.h	Thu Apr 22 14:40:39 2010 +0200
@@ -61,6 +61,7 @@ typedef struct {
 typedef struct {
     bool hvm;
     bool hap;
+    bool oos;
     int ssidref;
     char *name;
     uint8_t uuid[16];
diff -r b0562b298d73 tools/libxl/xl.c
--- a/tools/libxl/xl.c	Wed Apr 21 12:51:53 2010 +0100
+++ b/tools/libxl/xl.c	Thu Apr 22 14:40:39 2010 +0200
@@ -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);
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

             reply	other threads:[~2010-04-22 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22 12:44 Juergen Gross [this message]
2010-04-22 13:44 ` [Patch] support of oos parameter for xl create Vincent Hanquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BD044B6.6020700@ts.fujitsu.com \
    --to=juergen.gross@ts.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.