ia64/xen-unstable

changeset 16612:a1ba468e45eb

xsm: Implement missing functions in XSM dummy module

I am implementing some missing interface functions in the XSM dummy
module. Also deactivating some debugging output.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Dec 14 10:17:50 2007 +0000 (2007-12-14)
parents 1f8797a74743
children 75b56d086b26
files tools/python/xen/util/xsm/dummy/dummy.py
line diff
     1.1 --- a/tools/python/xen/util/xsm/dummy/dummy.py	Fri Dec 14 10:16:52 2007 +0000
     1.2 +++ b/tools/python/xen/util/xsm/dummy/dummy.py	Fri Dec 14 10:17:50 2007 +0000
     1.3 @@ -33,7 +33,6 @@ xmlrpc_exports = [
     1.4  def err(msg):
     1.5      """Raise XSM-dummy exception.
     1.6      """
     1.7 -    sys.stderr.write("XSM-dummyError: " + msg + "\n")
     1.8      raise XSMError(msg)
     1.9  
    1.10  def on():
    1.11 @@ -123,3 +122,12 @@ def get_domain_label(domain):
    1.12  
    1.13  def set_domain_label():
    1.14      err("Command not supported under xsm 'dummy' module.")
    1.15 +
    1.16 +def dump_policy():
    1.17 +    pass
    1.18 +
    1.19 +def dump_policy_file():
    1.20 +    pass
    1.21 +
    1.22 +def get_ssid(domain):
    1.23 +    err("No ssid has been assigned to any domain under xsm dummy module.")