WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] 32/64-bit hypercall interface - padding

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] 32/64-bit hypercall interface - padding
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Tue, 4 Oct 2005 16:41:43 -0500
Cc: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>, Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Delivery-date: Tue, 04 Oct 2005 21:40:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <cce7e0089df9356301d69ad4f1aafa67@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <A95E2296287EAD4EB592B5DEEFCE0E9D32E0D9@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <200510041107.58532.hollisb@xxxxxxxxxx> <cce7e0089df9356301d69ad4f1aafa67@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.2
On Tuesday 04 October 2005 11:39, Keir Fraser wrote:
>
> I don;t want to lose pointer type checks. The manual (u64)(unsigned
> long) casting is gross and loses type checking.

Fair enough.

Actually, another thought... have a look at the attached proof-of-concept 
patch. That preserves pointer type safety while still guaranteeing size and 
alignment.

> > I don't like calling it a "ulong," because it isn't, and neither is it
> > a "register" size...
>
> Then what will you call it? xenppchack_t? :-)

:)

-- 
Hollis Blanchard
IBM Linux Technology Center

Attachment: xen-ptr-union.diff
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel