WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][XEN]xm dump command add on

To: Ken Hironaka <hironaka.ken@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][XEN]xm dump command add on
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Mon, 14 Aug 2006 15:50:33 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 14 Aug 2006 07:51:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1155542639.4397.3.camel@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1155542639.4397.3.camel@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Mon, Aug 14, 2006 at 05:03:59PM +0900, Ken Hironaka wrote:

> +        if((sts=copy_from_domain_page(xc_handle, domid, page_array[i], 
> dump_mem))<0)
> +            cpy_sts=sts;
> +
> +    if(cpy_sts!=0)
> +        goto error_out;

Should be:

        if ( ... )

> +        try:
> +            log.info("Dumping Core for Domain %s (%d).", dominfo.getName(),
> +                     dominfo.getDomid())

Better as "Domain core dump requested for domain %s (%d)" ?

> +    if not live:
> +        print "pausing domain:%s ..." % str(dom)
> +        server.xend.domain.pause(dom)

Is it really worth mentioning the pause? It doesn't take any amount of
time, surely.

regards
john

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel