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

[Xen-changelog] [xen-unstable] Fix 'xm create' and 'xm start' when SEDF

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix 'xm create' and 'xm start' when SEDF scheduler is used.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Jan 2007 08:15:08 -0800
Delivery-date: Mon, 29 Jan 2007 08:15:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1170068120 0
# Node ID 5d9b72e640e050cbe5a1e3677c4ca7cb2cd868c1
# Parent  b2c1eeee2dcf52d0bdb983175b18c22f89f27d68
Fix 'xm create' and 'xm start' when SEDF scheduler is used.

If the Xen is running with the sedf scheduler, the following functions
do not call the domain_sched_credit_set().
 - domain_create()
 - domain_create_from_dict()
 - domain_start()

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomain.py |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff -r b2c1eeee2dcf -r 5d9b72e640e0 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Mon Jan 29 10:52:17 2007 +0000
+++ b/tools/python/xen/xend/XendDomain.py       Mon Jan 29 10:55:20 2007 +0000
@@ -32,7 +32,7 @@ import xen.lowlevel.xc
 import xen.lowlevel.xc
 
 
-from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
+from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo, XendNode
 from xen.xend.PrettyPrint import prettyprint
 from xen.xend.XendConfig import XendConfig
 from xen.xend.XendError import XendError, XendInvalidDomain, VmError
@@ -868,9 +868,10 @@ class XendDomain:
             self._refresh()
 
             dominfo = XendDomainInfo.create(config)
-            self.domain_sched_credit_set(dominfo.getDomid(),
-                                         dominfo.getWeight(),
-                                         dominfo.getCap())
+            if XendNode.instance().xenschedinfo() == 'credit':
+                self.domain_sched_credit_set(dominfo.getDomid(),
+                                             dominfo.getWeight(),
+                                             dominfo.getCap())
             return dominfo
         finally:
             self.domains_lock.release()
@@ -887,9 +888,10 @@ class XendDomain:
             self._refresh()
 
             dominfo = XendDomainInfo.create_from_dict(config_dict)
-            self.domain_sched_credit_set(dominfo.getDomid(),
-                                         dominfo.getWeight(),
-                                         dominfo.getCap())
+            if XendNode.instance().xenschedinfo() == 'credit':
+                self.domain_sched_credit_set(dominfo.getDomid(),
+                                             dominfo.getWeight(),
+                                             dominfo.getCap())
             return dominfo
         finally:
             self.domains_lock.release()
@@ -943,9 +945,10 @@ class XendDomain:
                                  POWER_STATE_NAMES[dominfo.state])
             
             dominfo.start(is_managed = True)
-            self.domain_sched_credit_set(dominfo.getDomid(),
-                                         dominfo.getWeight(),
-                                         dominfo.getCap())
+            if XendNode.instance().xenschedinfo() == 'credit':
+                self.domain_sched_credit_set(dominfo.getDomid(),
+                                             dominfo.getWeight(),
+                                             dominfo.getCap())
         finally:
             self.domains_lock.release()
         dominfo.waitForDevices()

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix 'xm create' and 'xm start' when SEDF scheduler is used., Xen patchbot-unstable <=