From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGdY8-0001Qm-G6 for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:38:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGdY5-0001PG-14 for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:38:24 -0400 Received: from [199.232.76.173] (port=42199 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGdY4-0001P4-Ly for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:38:20 -0400 Received: from mail2.shareable.org ([80.68.89.115]:37765) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGdY4-00028T-51 for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:38:20 -0400 Date: Tue, 16 Jun 2009 19:38:16 +0100 From: Jamie Lokier Subject: Re: Configuration vs. compat hints [was Re: [Qemu-devel] [PATCHv3 03/13] qemu: add routines to manage PCI capabilities] Message-ID: <20090616183816.GI11893@shareable.org> References: <20090610174301.GC7416@shareable.org> <20090610182227.GN28601@redhat.com> <20090610192702.GH7416@shareable.org> <1244796209.16425.20.camel@blaa> <4A326B5C.5010501@codemonkey.ws> <1244821292.30522.56.camel@blaa> <4A327E4A.7010300@codemonkey.ws> <1244825303.26769.19.camel@blaa> <4A328991.3040006@codemonkey.ws> <1244827883.26769.44.camel@blaa> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1244827883.26769.44.camel@blaa> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark McLoughlin Cc: Carsten Otte , kvm@vger.kernel.org, "Michael S. Tsirkin" , Glauber Costa , Rusty Russell , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Blue Swirl , Christian Borntraeger , Paul Brook , Avi Kivity Mark McLoughlin wrote: > > After libvirt has done -drive file=foo... it should dump the machine > > config and use that from then on. > > Right - libvirt then wouldn't be able to avoid the complexity of merging > any future changes into the dumped machine config. As long as qemu can accept a machine config _and_ -drive file=foo (and monitor commands to add/remove devices), libvirt could merge by simply calling qemu with whatever additional command line options or monitor commands modify the config, then dump the new config. That way, virtio would not have to deal with that complexity. It would be written in one place: qemu. Or better, a utility: qemu-machine-config. -- Jamie