Received: from eggs.gnu.org ([2001:4830:134:3::10]:33000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlByU-0003A9-3L for qemu-devel@nongnu.org; Mon, 03 Nov 2014 02:22:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlByO-0000ix-08 for qemu-devel@nongnu.org; Mon, 03 Nov 2014 02:22:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlByN-0000ip-Os for qemu-devel@nongnu.org; Mon, 03 Nov 2014 02:22:43 -0500 From: Markus Armbruster References: <1414481739-19939-1-git-send-email-armbru@redhat.com> <20141102112039.GA1891@redhat.com> Date: Mon, 03 Nov 2014 08:22:34 +0100 In-Reply-To: <20141102112039.GA1891@redhat.com> (Michael S. Tsirkin's message of "Sun, 2 Nov 2014 13:20:39 +0200") Message-ID: <87sii03g05.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH RFC 00/10] pci: Partial conversion to realize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: pbonzini@redhat.com, arei.gonglei@huawei.com, kraxel@redhat.com, afaerber@suse.de, qemu-devel@nongnu.org "Michael S. Tsirkin" writes: > On Tue, Oct 28, 2014 at 08:35:29AM +0100, Markus Armbruster wrote: >> While discussing Gonglei's "[PATCH v2 00/19] usb: convert device init >> to realize", Paolo called the PCI conversion job "Gargantuan". This >> series attempts to crack it into manageable jobs. >> >> The basic idea comes from qdev core: have the core deal with just >> realize, but default the device models' realize() method to one that >> calls the old init() method. Unconverted device models don't set >> their realize(), thus get one that calls their init(). We can then >> convert device by device instead of having to convert of all of PCI in >> one Gargantuan go. >> >> Since PCI's exit() cannot fail, I chose not to add an unrealize(). >> Precedence: USBDeviceClass method handle_destroy(), called on USB >> unrealize. >> >> Aside: USBDeviceClass also has an unrealize() method, but it's never >> set and never called. >> >> PATCH 01 converts the interface between PCI core and qdev to realize. >> >> PATCH 02 adds realize to the interface between PCI core and PCI device >> models. Once all device models are converted to realize, the old init >> interface can be dropped, completing the Gargantuan job. >> >> PATCH 03-04 convert device models that cannot fail initialization. >> >> PATCH 05-10 convert a few that can fail, but are really easy to >> convert. >> >> This series is RFC because it's based on Marcel's "[PATCH v2] hw/pci: >> fixed crash when using rombar=0 with romfile=path for hotplugged >> devices", which is still undergoing review. > > I've applied that one, and your patchset looks good to me, > But of course we can't apply new refactorings right now after soft > freeze. Unless this fixes some bug? I'm okay with delaying my series some. I'd appreciate a ping when you're ready to accept "for 2.3" patches into your tree.