xm save error message for hvm domains.
PATCH 1/1 xm save error message for hvm domains.
This provides a more informative error message when trying to save an hvm domain. If there is a better venue for this, please let me know.
-John
tools/python/xen/xend/XendDomain.py +5 -1
@@ -435,7 +435,11 @@ class XendDomain: raise XendInvalidDomain(str(domid)) if dominfo.getDomid() == PRIV_DOMAIN: - raise XendError("Cannot save privileged domain %i" % domid) + raise XendError("Cannot save privileged domain %s" % str(domid)) + + if dominfo.info['image'][0] == 'hvm': + raise XendError("Cannot save hvm domain %s -- unimplemented" % + str(domid)) fd = os.open(dst, os.O_WRONLY | os.O_CREAT | os.O_TRUNC) try:
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel