Received: from eggs.gnu.org ([2001:4830:134:3::10]:44479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYVfS-0005jG-Kg for qemu-devel@nongnu.org; Thu, 19 Mar 2015 04:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYVfP-0006DD-EV for qemu-devel@nongnu.org; Thu, 19 Mar 2015 04:19:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYVfP-0006CZ-6y for qemu-devel@nongnu.org; Thu, 19 Mar 2015 04:18:59 -0400 From: Markus Armbruster References: <1426724311-9343-1-git-send-email-somlo@cmu.edu> <1426724311-9343-6-git-send-email-somlo@cmu.edu> Date: Thu, 19 Mar 2015 09:18:46 +0100 In-Reply-To: <1426724311-9343-6-git-send-email-somlo@cmu.edu> (Gabriel L. Somlo's message of "Wed, 18 Mar 2015 20:18:31 -0400") Message-ID: <87y4mtv1qx.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 5/5] fw_cfg: insert fw_cfg file blobs via qemu cmdline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: matt.fleming@intel.com, rjones@redhat.com, qemu-devel@nongnu.org, jordan.l.justen@intel.com, mdroth@linux.vnet.ibm.com, gleb@cloudius-systems.com, gsomlo@gmail.com, kraxel@redhat.com, pbonzini@redhat.com, lersek@redhat.com [...] > The one other thing I may not have comprehended was the part about > >> Which reminds me: Going for QemuOpts would be very useful (gives >> -readconfig support), and it would solve the init order issue too. >> Instead of having your custom storage you just let QemuOpts parse and >> store the command line switch, then process them after fw_cfg device >> initialization. To test whether --readconfig works, append "--writeconfig test.cfg" to your test command line(s), inspect the resulting file, and see whether replacing your command arguments by "--readconfig test.cfg" works. You'll have to retain any options that aren't implemented with QemuOpts, such as --nodefaults. [...]