From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: Re: Configuration vs. compat hints [was Re: [Qemu-devel] [PATCHv3 03/13] qemu: add routines to manage PCI capabilities] Date: Mon, 15 Jun 2009 17:27:09 +0100 Message-ID: <1245083229.3222.103.camel__14854.4227508411$1245083408$gmane$org@blaa> References: <1244821292.30522.56.camel@blaa> <4A327E4A.7010300@codemonkey.ws> <1244825303.26769.19.camel@blaa> <20090614095016.GA7560@redhat.com> <1245056916.6891.31.camel@blaa> <4A3613EC.6030608@redhat.com> <20090615103249.GB6351@redhat.com> <4A363012.8050409@redhat.com> <20090615114858.GG6351@redhat.com> <4A3636FA.1040609@redhat.com> <20090615124101.GH6351@redhat.com> <4A364381.401@redhat.com> <4A364401.6010500@codemonkey.ws> <4A3647FB.9010808@redhat.com> <4A364B53.9080007@codemonkey.ws> <4A364FE0.40204@redhat.com> <4A3651EB.3070204@codemonkey.ws> <4A36555A.4090303@redhat.com> <4A3659A0.3050108@codemonkey.ws> <4A366348.1030202@redhat.com> Reply-To: Mark McLoughlin Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A366348.1030202@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Avi Kivity Cc: Carsten Otte , kvm@vger.kernel.org, "Michael S. Tsirkin" , Glauber Costa , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Blue Swirl , Christian Borntraeger , Paul Brook , Anthony Liguori List-Id: virtualization@lists.linuxfoundation.org On Mon, 2009-06-15 at 18:05 +0300, Avi Kivity wrote: > On 06/15/2009 05:24 PM, Anthony Liguori wrote: > > Dor Laor wrote: > >> Libvirt does not support r2d. I hope it won't start to support it. > > > > It supports mips, sparc, and ppc machines now. I don't see why it > > wouldn't support r2d. For ppcemb, I expect this same problem to > > occur. This sort of restriction is going to be common with embedded > > boards. > > I expect these restrictions will have to be known by the management > application. Otherwise the users will try invalid configurations only > to receive errors when they launch them. GUIs exist to guide users, not > as an inefficient means of trial-and-error. So long as the restrictions would be known to the management app via some "what slots are available" mechanism in qemu, that sounds fine. > > I'm not at all arguing against pci_addr. I'm arguing about how > > libvirt should use it with respect to the "genesis" use-case where > > libvirt has no specific reason to choose one PCI slot over another. > > In that case, I'm merely advocating that we want to let QEMU make the > > decision. > > However this may end up, isn't it offtopic? Whatever we do we have to > support both pci_addr= and default placement, so we can push this > discussion to livirt-devel and bid them godspeed. Presumably you're not proposing that qemu-devel completely ignore the typical requirements of management apps? You can push the discussion to libvirt-devel, and the conclusion would most likely be: "We can do slot allocation if you provide us with a way to query free slots, or we can use qemu's default allocation if you provide us a way to query the allocation. We'd prefer the default allocation problem, but we don't really care. Both require about the same amount of work for us." libvirt was only mentioned in this thread as a concrete example of how the suggested solutions would actually be used by management apps. Cheers, Mark.