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-devel

[Xen-devel] [Patch] support of oos parameter for xl create

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Patch] support of oos parameter for xl create
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Thu, 22 Apr 2010 14:44:38 +0200
Delivery-date: Thu, 22 Apr 2010 05:45:40 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1271940375; x=1303476375; h=message-id:date:from:mime-version:to:subject; z=Message-ID:=20<4BD044B6.6020700@xxxxxxxxxxxxxx>|Date:=20 Thu,=2022=20Apr=202010=2014:44:38=20+0200|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel @lists.xensource.com>|Subject:=20[Patch]=20support=20of =20oos=20parameter=20for=20xl=20create; bh=CiNpgWOcQyW9baFEUH2gQD3eX6RjgfHJ8QRlnO4M0JY=; b=nk5kY3bpdqRSTnVeDanlm7t+g4+Oq+qefM9wqRSmnCMHdyCteZ+gQCsa ulPfUxWZsjKfRSXN+ZdaET76MkwVzqbNlxhYVn4ck6MvRdqn8gYaP3xej j1s2dWbq0NXN9ClQ9XdD57vc01oQzxiVAaxPI7xH5DlWPerVd+03h8vj3 oIhGWA8ex9YF1ovOoMbZSjFu2iLSg7lvEOgDf+yyBSq+chywyIasWRWkB +R1JNEAxyVW3lqNnJfWtIlFVrCERj;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:Subject:X-Enigmail-Version: Content-Type; b=C2JlOnesKBQRk6zeJ0AuVnKiorTcM2sOiQPL/D4cYf9bZtj11zOrL0x0 qTFsaJaS6J4sSv8JGyD0dUl6LRN8PNXO6fWzoTIUvnV67TPp7FGSdOqqd PJKgaU9XIgyj+6YIidM4QIohDIFQj4KM9HCUhDWFbBX3jhc987KfPtDqA 9U9vPdx4YlYitD+MM13WVFjI2nOrEccYbbvwZs9CsJJFKJ+FHSaCqIWhV XPKQyXU7eQ7C+PYFo3KV93nRtstK/;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Fujitsu Technology Solutions
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)
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@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html
Signed-off-by: juergen.gross@xxxxxxxxxxxxxx

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);
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>