From: Keir Fraser Subject: Re: page ref/type count overflows Date: Thu, 29 Jan 2009 08:45:32 +0000 Message-ID: References: <4981782A.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4981782A.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Gianluca Guida , Tim Deegan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 29/01/2009 08:34, "Jan Beulich" wrote: >>>> Keir Fraser 27.01.09 11:24 >>> >> On 27/01/2009 10:16, "Jan Beulich" wrote: >>> And shouldn't shadow's count field also be widened to BITS_PER_LONG-6? >> >> Would be nice. Hopefully either Tim or Gianluca will see to that. > > Actually, I'd like to go a step further: Is there any reason why struct > shadow_page_info must be separate from struct page_info (rather than > sharing the definition, requiring some re-ordering of its elements)? Not really, apart from wanting to keep shadow stuff in one place in a private header file, I suppose. Would it risk turning page_info's definition into crazy union soup? If it could be done as something like: unsigned long count_info union { struct { page_info stuff }; // anonymous struct { sh_page_info stuff }; // anonymous } // anonymous That would be nicer than what we currently have, I'd agree. And the more stuff we can pull out of the anonymous union (e.g., perhaps a list_head?) then the better, of course. -- Keir