From: "Jan Beulich" Subject: Re: [PATCH 07 of 10] Transitive grant support Date: Mon, 05 Oct 2009 09:45:39 +0100 Message-ID: <4AC9CE530200007800017F24@vpn.id2.novell.com> References: <4AC9C42E0200007800017EF4@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Steven Smith Cc: "xen-devel@lists.xensource.com" , "joserenato.santos@hp.com" List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 05.10.09 10:23 >>> >On 05/10/2009 09:02, "Jan Beulich" wrote: > >>> - unsigned long frame; /* Frame being granted. = */ >>> + domid_t trans_dom; >>> + uint32_t trans_gref; >>> + uint32_t frame; /* Frame being granted. = */ >>=20 >> Using a uint32_t for a frame number is not valid anymore after the = recent >> sparse physical memory support changes (and I don't think it would have >> been valid on ia64 even before). > >What about the 'uint32_t frame' in grant_entry_v2_t -- I'm surprised you >didn't mention that also? It's most critical we get the sizing of that Oops, that one slipped my attention. >correct, while we're rev'ing a public interface. Given the definition of >__spacer[], it looks like there's space to have a full 'uint64_t frame' = in >that structure too, no problem. A bit of field reordering might be needed = to >make everything align naturally yet compactly, is all, I think? Agreed. Not sure though whether uintXX_t is the right thing to use - after all we have xen_pfn_t for exactly this purpose. Jan