Received: from eggs.gnu.org ([2001:4830:134:3::10]:45391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUfIo-0001ic-LM for qemu-devel@nongnu.org; Thu, 18 Sep 2014 13:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUfIi-00059D-L7 for qemu-devel@nongnu.org; Thu, 18 Sep 2014 13:15:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUfIi-00057v-Df for qemu-devel@nongnu.org; Thu, 18 Sep 2014 13:15:24 -0400 From: Markus Armbruster References: <1411044447-3124-1-git-send-email-arei.gonglei@huawei.com> Date: Thu, 18 Sep 2014 19:15:13 +0200 In-Reply-To: <1411044447-3124-1-git-send-email-arei.gonglei@huawei.com> (arei gonglei's message of "Thu, 18 Sep 2014 20:47:08 +0800") Message-ID: <87a95w4zq6.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 00/19] usb: convert device init to realize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: arei.gonglei@huawei.com Cc: weidong.huang@huawei.com, luonengjun@huawei.com, qemu-devel@nongnu.org, peter.huangpeng@huawei.com, kraxel@redhat.com, pbonzini@redhat.com writes: > From: Gonglei > > DeviceClass->init is the old interface, let's convert usb > devices to the new realize API. In this way, all the > implementations now use error_setg instead of > qerror_report/error_report for reporting error. [...] Thanks for doing this work. If you can do a bit more of the same, here are a few more device model init() methods I'd love to have converted, because they use qerror_report_err(): hw/char/serial-pci.c serial_pci_init() multi_serial_pci_init() hw/i386/kvm/pci-assign.c assigned_initfn()