Skip to contentSkip to conversation

xm save error message for hvm domains.

PATCH New John McCullough 1 participant 1 message Jul 12, 2006

lore
Share & tools
lore
#0 lore raw

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
diff -r a1c2cede77c7 tools/python/xen/xend/XendDomain.py
@@ -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