From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGqg7-00064t-Qx for qemu-devel@nongnu.org; Thu, 29 Jan 2015 10:06:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGqg6-0007yi-Vw for qemu-devel@nongnu.org; Thu, 29 Jan 2015 10:06:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGqg6-0007yT-PE for qemu-devel@nongnu.org; Thu, 29 Jan 2015 10:06:42 -0500 From: "Dr. David Alan Gilbert (git)" Date: Thu, 29 Jan 2015 15:06:36 +0000 Message-Id: <1422543997-22808-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [RFC 0/1] Incoming migration vs early monitor commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, liang.z.li@intel.com, quintela@redhat.com From: "Dr. David Alan Gilbert" The attached patch allows you to execute QMP commands from the command line prior to -incoming or loadvm. I've hit a few cases where we need to pass some state to an incoming migration, either: 1) Before it starts processing data e.g. Liang Li's compression patches that have a parameter for the number of decompression threads 2) Before the socket is set up so we can influence the connection made; e.g. specify we need to have a return path for postcopy, or potentially open multiple connections For tcp migration you can use the monitor for (1) prior to the accept; but it's no use for exec or fd. I'd previously suggested adding option parsing to the -incoming URI; but then I realised just being able to execute arbitrary QMP commands might be simpler, and we get reuse of all the migrate capability/parameter stuff for free, and maybe the arbitrary QMP commands are useful for something else. Thoughts? Dave Dr. David Alan Gilbert (1): Execute arbitrary QMP commands from command line include/monitor/monitor.h | 1 + monitor.c | 41 +++++++++++++++++++++++++++++++++++++++++ qemu-options.hx | 9 +++++++++ vl.c | 37 ++++++++++++++++++++++++++++++++++++- 4 files changed, 87 insertions(+), 1 deletion(-) -- 2.1.0