From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Configuration vs. compat hints [was Re: [Qemu-devel] [PATCHv3 03/13] qemu: add routines to manage PCI capabilities] Date: Tue, 16 Jun 2009 15:51:00 +0300 Message-ID: <4A379534.9010006@redhat.com> 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> <1245083229.3222.103.camel@blaa> <4A368F12.2090504@codemonkey.ws> <1245154451.11407.22.camel@blaa> <4A378FE5.5050303@redhat.com> <124515599 2.30082.8.camel@blaa> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , dlaor@redhat.com, Carsten Otte , Rusty Russell , kvm@vger.kernel.org, Glauber Costa , "Michael S. Tsirkin" , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Blue Swirl , Christian Borntraeger , Paul Brook To: Mark McLoughlin Return-path: Received: from mx2.redhat.com ([66.187.237.31]:55229 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003AbZFPMxC (ORCPT ); Tue, 16 Jun 2009 08:53:02 -0400 In-Reply-To: <1245155992.30082.8.camel@blaa> Sender: kvm-owner@vger.kernel.org List-ID: On 06/16/2009 03:39 PM, Mark McLoughlin wrote: >> Worst case we hardcode those numbers (gasp, faint). >> > > Maybe we can just add the open slots to the -help output. That'd be nice > and clean. > Yeah, there's precedent too. > Or: > > $ readlink /usr/share/qemu/machine-types/pc.dt > > That works if you have exactly one qemu installed. It's best if qemu itself is the entry point (qemu -print-device-tree). Though I wouldn't want to inflict it upon the management application writers. -- error compiling committee.c: too many arguments to function