From: John McCullough Subject: [Patch] xm save error message for hvm domains. Date: Wed, 12 Jul 2006 13:42:43 -0700 Message-ID: <20060712204243.GA18016@csegrad.ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="pWyiEgJYm5f9v55/" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="hvm-savemsg.patch" diff -r a1c2cede77c7 tools/python/xen/xend/XendDomain.py --- a/tools/python/xen/xend/XendDomain.py Mon Jul 10 15:01:49 2006 +0100 +++ b/tools/python/xen/xend/XendDomain.py Wed Jul 12 13:37:56 2006 -0700 @@ -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: --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --pWyiEgJYm5f9v55/--