Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbYdd-0006q3-28 for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:34:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbYdb-0006oO-BL for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:33:59 -0400 Received: from [199.232.76.173] (port=39347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbYdY-0006nQ-Md for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:33:56 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:30737) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbYdY-0007Th-L6 for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:33:56 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m85AXh03026144 for ; Fri, 5 Sep 2008 03:33:44 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1KbYdL-0003be-B2 for qemu-devel@nongnu.org; Fri, 05 Sep 2008 11:33:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18625.2823.334560.150430@mariner.uk.xensource.com> Date: Fri, 5 Sep 2008 11:33:43 +0100 Subject: Re: [Qemu-devel] Xen patches - status summary In-Reply-To: <48BF4C46.2060101@codemonkey.ws> References: <18621.28008.90183.80897@mariner.uk.xensource.com> <48BEDAC3.8040109@redhat.com> <48BF4C46.2060101@codemonkey.ws> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori writes ("Re: [Qemu-devel] Xen patches - status summary"): > Yeah, sorry, I'm on vacation this week and my network access is much > worse than I expected it to be. I'm queuing it all up and will go > through it this weekend when I get back. Fair enough, that's great, thanks. There are of course more potential patches awaiting preparation. I'll post another summary some time next week, when it seems like things have changed enough. > > I also tend to dislike os-specific stuff due to the portability issues > > it brings. Sometimes there are good reasons to use it nevertheless. > > I haven't made up my mind yet about which approach is better. I'll > commit something this weekend though. Thanks. Did you see Jamie's comments about the (quite alarming) glibc 2.3.1 aio thread signal mask bug ? If it weren't for that I would say there's not that much to choose between our approaches but under the circumstances I think the signal handler rather than helper thread approach is essential. If you are dead set on using a signalfd emulation, I could rework my patch so that it contains an interface roughly equivalent to signalfd, so that signalfd can easily be used where available. > >> The QEMU_ASYNC_EVENTLOOP change is a tidying up of the NBD feature to > >> make qemu-nbd share more commonality with qemu-img. As discussed > >> there are perhaps even more cleanups that could be done to improve > >> this but as I say this change is a good start and should be applied. > > > > Cleanups is, well, not the correct word IMHO. The complete block device > > handling needs a major redesign. That this ifdef is needed in the first > > place is a blatant layering violation. Also we should be able to > > support async I/O in some form (be it libaio, threads or whatever) > > without hacking support for it into each and every file format handler. > > I have something queued up to help us get closer to this. Err. All that my QEMU_ASYNC_EVENTLOOP patch does is to replace #if !defined(QEMU_IMG) && !defined(QEMU_NBD) with #ifdef QEMU_ASYNC_EVENTLOOP which really doesn't seem controversial. If there was some objection to the structure of the current code, it should have been raised before qemu-img and qemu-nbd were committed, surely ? I think my main point in this context is that we should not make the best be the enemy of the good. I am carefully preparing my patches so that they are always strictly improving, and so that any controversial or major changes are separated out. It is frustrating to have a trivial but clear improvement blocked by a discussion which essentially says that it doesn't solve the entire problem because what is really needed is a complete restructuring. Am I supposed to hold off, and allow my trivial improvments to rot again, for an indefinite time while awaiting the Glorious Republic to Last a Thousand Years ? I think the rule should generally be that a patch should be applied if it (a) makes some improvement, no matter how minor and (b) does not make any future desirable restructuring harder. The fact that a restructuring is desirable does not mean that minor improvements should be blocked in the meantime. Ian.