From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SelRE-00061M-D4 for qemu-devel@nongnu.org; Wed, 13 Jun 2012 07:08:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SelR9-00058y-QV for qemu-devel@nongnu.org; Wed, 13 Jun 2012 07:08:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SelR9-00058s-IH for qemu-devel@nongnu.org; Wed, 13 Jun 2012 07:08:31 -0400 Message-ID: <4FD874A4.2050803@redhat.com> Date: Wed, 13 Jun 2012 14:08:20 +0300 From: Avi Kivity MIME-Version: 1.0 References: <4FD86E40.1000100@redhat.com> <4FD871B1.4000104@redhat.com> <4FD8727D.1070904@redhat.com> <4FD87343.7030406@redhat.com> <4FD87415.1040600@redhat.com> In-Reply-To: <4FD87415.1040600@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v0 6/8] xilinx dont cast to interface types with links List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, qemu-devel@nongnu.org, "Peter A. G. Crosthwaite" , paul@codesourcery.com, edgar.iglesias@gmail.com, afaerber@suse.de, john.williams@petalogix.com On 06/13/2012 02:05 PM, Paolo Bonzini wrote: > Il 13/06/2012 13:02, Avi Kivity ha scritto: >>>> >> though I think we can spare a bool (and developer's sanity) in Object. >>> > >>> > Yes, we could shrink the refcount to 16-bit and get place for some >>> > bitfields. >> >> I fact there's a four-byte hole after ->ref as it is. > > Not on 32-bits... Those hardly exists. And anyway it's silly to save a few bytes of memory when you're going to drop tons of it on the guest itself. Better to spend the effort where we have O(guest size) allocations and keep the code clear and efficient. -- error compiling committee.c: too many arguments to function