From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQAFe-0001ZR-O1 for qemu-devel@nongnu.org; Tue, 05 Jun 2018 07:35:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQAFZ-0004a4-Tg for qemu-devel@nongnu.org; Tue, 05 Jun 2018 07:35:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58216 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQAFZ-0004ZP-OE for qemu-devel@nongnu.org; Tue, 05 Jun 2018 07:35:41 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1AF04CB9C5 for ; Tue, 5 Jun 2018 11:35:40 +0000 (UTC) Date: Tue, 5 Jun 2018 12:35:36 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20180605113536.GB2544@work-vm> References: <24719f30-25c9-a80e-0db9-ae2f7f318c68@redhat.com> <20180604140512.1c43b186@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180604140512.1c43b186@redhat.com> Subject: Re: [Qemu-devel] Preconfig state reachable without --preconfig given List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Max Reitz , Michal Privoznik , "qemu-devel@nongnu.org" * Igor Mammedov (imammedo@redhat.com) wrote: > On Mon, 4 Jun 2018 11:46:06 +0200 > Max Reitz wrote: > > > On 2018-06-02 12:46, Michal Privoznik wrote: > > > On 06/01/2018 03:28 PM, Max Reitz wrote: > > >> Hi, > > >> > > >> The @preconfig RunState documentation states: > > >> > > >>> The state is reachable only if the --preconfig CLI option is used. > > >> > > >> However, this is not true: > > >> > > >> $ echo | x86_64-softmmu/qemu-system-x86_64 -monitor stdio > > >> QEMU 2.12.50 monitor - type 'help' for more information > > >> (qemu) > > >> HMP not available in preconfig state, use QMP instead > > > > > > Not sure if this is the same bug, but I've noticed libvirt having > > > troubles detecting capabilities of qemu and debugging lead to this patch: > > > > > > http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg00367.html > > > > > > (which by no means I claim is proper solution. It might be viewed as > > > workaround by expert qemu devels) > > > > Well, it'd fix both of my issues, so it has that going for it. :-) > Acked patch. > > Markus also suggested to drop HMP monitor altogether at this first loop, > I'll look into it some more taking in account demonize() issue. I've got a patchset I'm just tidying which makes HMP work properly with preconfig, i.e it allows a subset of commands. Dave > > > > >> On IRC, Daniel proposed doing the runstate transition immediately after > > >> the command line has been read and no --preconfig option has been found. > > >> Doing that indeed fixes the issue for me (but I don't know whether > > >> that's the best solution). > > > > > > Oh has he? I can't find it anywhere. > > > > That was in #qemu on OFTC: > > > > [Friday, June 1 2018] [15:21:26 CEST] if we've not passed > > --preconfig though, we should not be in PRECONFIG state in the first > > place IMHO > > [Friday, June 1 2018] [15:22:27 CEST] eg vl.c should set the > > state to RUN_STATE_PRELAUNCH immediately after parsing CLI args if > > --preconfig wasn't given > That's not how it should be, PRECONFIG is there to replace PRELAUNCH > at early stages (which commit 8a36283e12 message states) > /me is to blame for miss-leading doc comment/ > > > Max > > > > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK