From: Masaki Kanno Subject: Re: [PATCH] Fix argument check of xm reboot command (3) Date: Tue, 11 Jul 2006 13:05:01 +0900 Message-ID: <89C6A49F2E93FDkanno.masaki@jp.fujitsu.com> References: <74C6A116752B1Ckanno.masaki@jp.fujitsu.com> <3b98a90af48a9474fa18e19ed971fd46@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3b98a90af48a9474fa18e19ed971fd46@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Keir, Thanks for your comment and advice. I will remake and resend this patch. Best regards, Kan > >On 6 Jul 2006, at 17:08, Masaki Kanno wrote: > >> tested unlikely operations about the xm reboot/shutdown command. >> As a result, I found the following problems. >> >> Problem 1: Can reboot/shutdown Domain-0 by mistake. >> Problem 2: Can not reboot/shutdown domain of domain name '0'. > >Wouldn't this be better checked in xend after it has converted domain >name to domid, and an appropriate error string returned to the RPC >caller? Putting the checking in xm seems a bit unnatural and means that >other callers do not benefit. > > -- Keir > > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel