From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHgKN-0002LQ-Cf for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:20:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHgKH-0002FL-UW for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:20:46 -0500 Received: from [199.232.76.173] (port=53466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHgKH-0002Ey-JL for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:20:41 -0500 Received: from mail-qy0-f194.google.com ([209.85.221.194]:43947) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHgKH-0007FW-UC for qemu-devel@nongnu.org; Mon, 07 Dec 2009 11:20:42 -0500 Received: by qyk32 with SMTP id 32so1899290qyk.4 for ; Mon, 07 Dec 2009 08:20:40 -0800 (PST) Message-ID: <4B1D2B54.40402@codemonkey.ws> Date: Mon, 07 Dec 2009 10:20:36 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Permit zero-sized qemu_malloc() & friends References: <4B1D2462.3070000@codemonkey.ws> <4B1D2696.5080003@redhat.com> <4B1D27EE.7060400@codemonkey.ws> <4B1D292D.4010700@redhat.com> In-Reply-To: <4B1D292D.4010700@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Kevin Wolf , Paul Brook , Markus Armbruster , qemu-devel@nongnu.org Avi Kivity wrote: >> Covering every qemu_malloc instance this close to the GA is too >> risky. I agree that having separate behavior is less than ideal but >> I think it's the only sane way forward. >> > > I don't understand why. What's so insane about Markus' patch? > Allowing size=0 for both developer and production builds? There is a bug here. Callers are calling qemu_malloc incorrectly. There is an open discussion about how to address it--fix all callers of qemu_malloc() or allow size=0. Since there isn't agreement, a compromise of sticking to the current behavior for the development tree, and using the later for production since we can't guarantee the former seems reasonable. > It seems like the least risky, least change approach to me. Exactly > what we want for 0.12. The risk is that everyone will agree to this approach in the next two weeks. I'm fairly certain no amount of discussion on qemu-devel is going to lead to that. >>> In addition, Markus' patch should be applied to master to avoid >>> regressions while the code is converted. >> >> Let's separate that discussion as it's an independent consideration. >> > > I've asked for qemu-malloc-discuss@vger.kernel.org to be created for > this purpose. :-) Regards, Anthony Liguori