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] xsm: A few hacks to get XSM-disabled (aka

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xsm: A few hacks to get XSM-disabled (aka dummy) mode working.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 06 Sep 2008 01:40:16 -0700
Delivery-date: Sat, 06 Sep 2008 01:40:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1220542178 -3600
# Node ID 392b04ccaf3c3be6efda73ae75b0af386920bf20
# Parent  ae9b223a675d9ed37cffbc24d0abe83ef2a30ab3
xsm: A few hacks to get XSM-disabled (aka dummy) mode working.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/util/xsconstants.py     |    4 ++--
 tools/python/xen/util/xsm/dummy/dummy.py |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -r ae9b223a675d -r 392b04ccaf3c tools/python/xen/util/xsconstants.py
--- a/tools/python/xen/util/xsconstants.py      Thu Sep 04 14:38:26 2008 +0100
+++ b/tools/python/xen/util/xsconstants.py      Thu Sep 04 16:29:38 2008 +0100
@@ -20,9 +20,9 @@ XS_INST_BOOT = (1 << 0)
 XS_INST_BOOT = (1 << 0)
 XS_INST_LOAD = (1 << 1)
 
-XS_POLICY_DUMMY  = 0
 XS_POLICY_ACM = (1 << 0)
 XS_POLICY_FLASK = (1 << 1)
+XS_POLICY_DUMMY  = (1 << 2)
 XS_POLICY_USE = 0
 
 # Some internal variables used by the Xen-API
@@ -109,6 +109,6 @@ ACM_POLICY_ID = 'ACM'
 
 INVALID_POLICY_PREFIX = 'INV_'
 
-INVALID_SSIDREF = 0xFFFFFFFF
+INVALID_SSIDREF = 0xFFFFFFFFL
 
 XS_INACCESSIBLE_LABEL = '__INACCESSIBLE__'
diff -r ae9b223a675d -r 392b04ccaf3c tools/python/xen/util/xsm/dummy/dummy.py
--- a/tools/python/xen/util/xsm/dummy/dummy.py  Thu Sep 04 14:38:26 2008 +0100
+++ b/tools/python/xen/util/xsm/dummy/dummy.py  Thu Sep 04 16:29:38 2008 +0100
@@ -36,7 +36,7 @@ def err(msg):
     raise XSMError(msg)
 
 def on():
-    return xsconstants.XS_POLICY_DUMMY
+    return 0
 
 def ssidref2label(ssidref):
     return 0

_______________________________________________
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] xsm: A few hacks to get XSM-disabled (aka dummy) mode working., Xen patchbot-unstable <=