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] RFC: vaddr_t and vsize_t

To: Christoph Egger <Christoph.Egger@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] RFC: vaddr_t and vsize_t
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Wed, 17 Jan 2007 15:49:35 +0000
Delivery-date: Wed, 17 Jan 2007 07:49:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200701171617.33273.Christoph.Egger@xxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acc6TxYLVIyBUqZCEduIGwAX8io7RQ==
Thread-topic: [Xen-devel] RFC: vaddr_t and vsize_t
User-agent: Microsoft-Entourage/11.2.5.060620
On 17/1/07 15:17, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

> vaddr_t is used when a virtual address is meant. It is an unsigned integer and
> its size always matches sizeof(void *).
> vsize_t is used when the virtual address space is meant. It is an unsigned
> integer and its size always matches the whole size of the virtual address
> space.

Is this distinction ever useful?

The assumption that a pointer fits in a long is rather ingrained into Xen's
code base. Any attempt to remove that assumption is going to need some big
patches, and it's really not clear that we ought to care as I'm sure it's
true for any architecture we can conceive of caring one jot about.

 -- Keir


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

<Prev in Thread] Current Thread [Next in Thread>