Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mbe2Z-0008Go-Lq for qemu-devel@nongnu.org; Thu, 13 Aug 2009 13:24:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mbe2V-0008Ek-2U for qemu-devel@nongnu.org; Thu, 13 Aug 2009 13:24:39 -0400 Received: from [199.232.76.173] (port=58651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbe2U-0008Eg-Sr for qemu-devel@nongnu.org; Thu, 13 Aug 2009 13:24:34 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42391) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mbe2U-0004vZ-D0 for qemu-devel@nongnu.org; Thu, 13 Aug 2009 13:24:34 -0400 Subject: Re: [Qemu-devel] [PATCH] qdev: add return value to init() callbacks. References: <1250092766-23986-1-git-send-email-kraxel@redhat.com> <200908122028.41012.paul@codesourcery.com> <4A831C47.3070309@redhat.com> <873a7w2q6n.fsf@pike.pond.sub.org> <4A83C562.1090802@redhat.com> <87tz0cytem.fsf@pike.pond.sub.org> <4A83F389.7080302@redhat.com> <87r5vgx7n9.fsf@pike.pond.sub.org> <4A8423CA.2050108@redhat.com> From: Markus Armbruster Date: Thu, 13 Aug 2009 19:22:29 +0200 In-Reply-To: <4A8423CA.2050108@redhat.com> (Gerd Hoffmann's message of "Thu\, 13 Aug 2009 16\:31\:38 +0200") Message-ID: <87zla3sk6i.fsf@pike.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Paul Brook , qemu-devel@nongnu.org Gerd Hoffmann writes: >> save output object >> set up output object to point to the appropriate sink >> call stuff (may print messages via output object to sink) >> restore output object > > i.e. something like the attached patch? Yes, that's the method I have in mind... > (qemu-kvm might need some more care due to the io thread). ... modulo multi-threading.