From: "Kasai Takanori" Subject: Re: [PATCH] qemu-dm monitor doesn't support the quit command Date: Mon, 25 Dec 2006 10:47:21 +0900 Message-ID: <07ff01c727c6$ac8c1d20$dab2220a@VF03007L> References: <15d001c725ca$326f3980$dab2220a@VF03007L> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_07F9_01C72812.0E129650" Return-path: 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 List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_07F9_01C72812.0E129650 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit Hi All, > It is natural that there is quit command in original QEMU. > However, I don't think that the HVM domain on Xen is necessary. > Because there is a possibility of shutting down GuestOS due to the mistake. > I think that I should prohibit the quit command of qemu-dm. So as to refuse the quit command, the patch was corrected. If there is any problem, please let me know. Thanks -- Takanori Kasai ------=_NextPart_000_07F9_01C72812.0E129650 Content-Type: application/octet-stream; name="qemu-monitor-quit.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="qemu-monitor-quit.patch" # HG changeset patch=0A= # User kasai.takanori@jp.fujitsu.com=0A= # Node ID 333949ed3a785141e4ae046d95483fcf185e5836=0A= # Parent 367f0c6efe2178e26ba0194ca795ff098e22a80b=0A= qemu-dm monitor does not support the quit command=0A= =0A= Signed-off-by: Takanori Kasai =0A= =0A= diff -r 367f0c6efe21 -r 333949ed3a78 tools/ioemu/monitor.c=0A= --- a/tools/ioemu/monitor.c Sat Dec 23 21:32:05 2006 +0000=0A= +++ b/tools/ioemu/monitor.c Mon Dec 25 09:23:01 2006 +0900=0A= @@ -305,12 +305,6 @@ static void do_info_history (void)=0A= term_printf("%d: '%s'\n", i, str);=0A= i++;=0A= }=0A= -}=0A= -=0A= -static void do_quit(void)=0A= -{=0A= - destroy_hvm_domain();=0A= - exit(0);=0A= }=0A= =0A= static int eject_device(BlockDriverState *bs, int force)=0A= @@ -1158,8 +1152,6 @@ static term_cmd_t term_cmds[] =3D {=0A= "", "commit changes to the disk images (if -snapshot is used)" },=0A= { "info", "s?", do_info,=0A= "subcommand", "show various information about the system state" },=0A= - { "q|quit", "", do_quit,=0A= - "", "quit the emulator" },=0A= { "eject", "-fB", do_eject,=0A= "[-f] device", "eject a removable media (use -f to force it)" },=0A= { "change", "BF", do_change,=0A= ------=_NextPart_000_07F9_01C72812.0E129650 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 ------=_NextPart_000_07F9_01C72812.0E129650--