direct-io.hg

changeset 12223:4ff83eddd1f6

[XEND] Handle permission denied when calling xc.domain_getinfo

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Nov 03 10:41:20 2006 +0000 (2006-11-03)
parents 374087600412
children cfb1136ee8f7
files tools/python/xen/xend/XendDomain.py tools/xm-test/ramdisk/skel/etc/init.d/rcS
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Fri Nov 03 10:39:32 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Fri Nov 03 10:41:20 2006 +0000
     1.3 @@ -328,7 +328,11 @@ class XendDomain:
     1.4          @rtype: list of dicts
     1.5          @return: A list of dicts representing the running domains.
     1.6          """
     1.7 -        return xc.domain_getinfo()
     1.8 +        try:
     1.9 +            return xc.domain_getinfo()
    1.10 +        except RuntimeError, e:
    1.11 +            log.exception("Unable to get domain information.")
    1.12 +            return {}
    1.13  
    1.14      def _setDom0CPUCount(self):
    1.15          """Sets the number of VCPUs dom0 has. Retreived from the