Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Negyx-0002qd-IX for qemu-devel@nongnu.org; Mon, 08 Feb 2010 22:41:47 -0500 Received: from [199.232.76.173] (port=38015 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Negyw-0002qV-P9 for qemu-devel@nongnu.org; Mon, 08 Feb 2010 22:41:46 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Negyv-0008Ad-FI for qemu-devel@nongnu.org; Mon, 08 Feb 2010 22:41:46 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:37478) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Negyv-0008AL-2F for qemu-devel@nongnu.org; Mon, 08 Feb 2010 22:41:45 -0500 Date: Tue, 9 Feb 2010 12:42:16 +0900 From: Isaku Yamahata Subject: Re: [Qemu-devel] Re: [PATCH] pci: initialize header type register. Message-ID: <20100209034216.GI22624@valinux.co.jp> References: <20100208064147.GD22624@valinux.co.jp> <20100208101753.GA14662@redhat.com> <4B6FF203.6010304@redhat.com> <20100208162753.GA28230@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100208162753.GA28230@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Blue Swirl , Gerd Hoffmann , qemu-devel@nongnu.org On Mon, Feb 08, 2010 at 06:27:53PM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 08, 2010 at 12:14:11PM +0100, Gerd Hoffmann wrote: > > On 02/08/10 11:17, Michael S. Tsirkin wrote: > >> On Mon, Feb 08, 2010 at 03:41:47PM +0900, Isaku Yamahata wrote: > >>> initialize header type register in pci generic code. > >>> > >>> Cc: Blue Swirl > >>> Cc: "Michael S. Tsirkin" > >>> Signed-off-by: Isaku Yamahata > >> > >> No objections here, I am assuming this will be followed > >> by patches removing header type init from bridges? > >> From qdev perspective, it is probably cleaner to make > >> multifunction bit a separate qdev property though, right? > > > > From a qdev perspective it would make *alot* of sense to move a bunch of > > pci config stuff (including, but not limited to header type) into > > PCIDeviceInfo. > > > > cheers, > > Gerd > > Actually - won't this make it possible to create broken configurations > by tweaking properties from command-line? > And generally, it sounds bad to have header type duplicated in qdev > and in config. Why do we want it in qdev? > > Isaku Yamahata, could you please clarify? My idea behind the patch is that making configuration space initialization a sort of table driven (in long term?) like Gerd and Blue already stated it. If there is a consensus to go for it, I'm willing to create patches. However it seems that we haven't reached the conclusion yet. I'm not sure it's worth while to allow user to tweak config space. -- yamahata