Received: from [140.186.70.92] (port=54806 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEMPh-00009q-LR for qemu-devel@nongnu.org; Fri, 05 Nov 2010 09:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEMPc-0002GY-5l for qemu-devel@nongnu.org; Fri, 05 Nov 2010 09:33:05 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:51783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEMPc-0002GG-0i for qemu-devel@nongnu.org; Fri, 05 Nov 2010 09:33:00 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e35.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id oA5DLZwo031906 for ; Fri, 5 Nov 2010 07:21:35 -0600 Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oA5DWZr2152396 for ; Fri, 5 Nov 2010 07:32:48 -0600 Received: from d03av05.boulder.ibm.com (loopback [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oA5DWYCg011745 for ; Fri, 5 Nov 2010 07:32:34 -0600 From: Adam Litke In-Reply-To: <4CD2BBBA.3070002@linux.vnet.ibm.com> References: <1288798090-7127-1-git-send-email-mdroth@linux.vnet.ibm.com> <1288798090-7127-3-git-send-email-mdroth@linux.vnet.ibm.com> <1288824456.2846.15.camel@aglitke> <4CD2BBBA.3070002@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 05 Nov 2010 08:32:30 -0500 Message-ID: <1288963950.2055.3.camel@aglitke> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: abeekhof@redhat.com, agl@linux.vnet.ibm.com, qemu-devel@nongnu.org, aliguori@linux.vnet.ibm.com On Thu, 2010-11-04 at 08:57 -0500, Michael Roth wrote: > > This resembles vl.c's main_loop_wait() but I can see why you might want > > your own. There is opportunity for sharing the select logic and ioh > > callbacks but I think that could be addressed later. > > > > Yup these are all basically copy/pastes from vl.c. It feels a bit dirty, > but I modeled things after the other qemu tools like qemu-nbd/qemu-io, > which don't link against vl.c (and adding a target for tools to do so > looks like it'd be a bit hairy since vl.c touches basically everything). > It might still make sense to share things like structs...but the ones > I'm stealing here are specific to reproducing the main_loop_wait logic. > So I guess the real question is whether main_loop_wait and friends make > sense to expose as a utility function of some sort, and virtproxy seems > to be the only use case so far. You make a fair point about following precedent, but the thought of dual-maintaining code into the future is not that appealing. I guess we could benefit from other voices on this topic. -- Thanks, Adam