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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] 2.6.27-rc1 >4096MB issue

To: Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] 2.6.27-rc1 >4096MB issue
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: 2008年8月05日 08:52:05 -0700
Cc: Carl Jones <carl.jones@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2008年8月05日 08:52:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <489818C5.76E4.0078.0@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <df5598920807312025l3a5d9664w2773a133b811ddb4@xxxxxxxxxxxxxx> <48929B85.9030004@xxxxxxxx> <df5598920808012222u402f780dv75301992d789962c@xxxxxxxxxxxxxx> <489484B6.7000003@xxxxxxxx> <df5598920808041800o7a08d026re9daca653f527f40@xxxxxxxxxxxxxx><df5598920808041800o7a08d026re9daca653f527f40@xxxxxxxxxxxxxx> <4897C3F8.6070704@xxxxxxxx> <489818C5.76E4.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
Jan Beulich wrote:
Jeremy Fitzhardinge <jeremy@xxxxxxxx> 05.08.08 05:07 >>>
Subject: make PFN_PHYS explicitly return 64-bit result
PFN_PHYS, as its name suggests, turns a pfn into a physical address.
However, it is a macro which just operates on its argument without
modifying its type. pfns are typed unsigned long, but an unsigned
long may not be long enough to hold a physical address (32-bit systems
with more than 32 bits of physcial address). This means that the
resulting address could be truncated if it doesn't fit within an
unsigned long. This isn't generally a problem because most users end
up using it for "low" memory, but there's no reason why PFN_PHYS
couldn't be used for any possible pfn.
Unfortunately there's no univerally recognized type for holding a full
physical address, so this patch makes it always return a u64 result.
Couldn't you use resource_size_t here?
Yeah, looks like I can. It had crossed my mind, but I'd vaguely remembered that it might no be set if you don't have 64-bit IO devices. But it looks like it's set for all interesting cases (64 bit machines, and 32-bit x86 PAE).
 J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: [Qemu-devel] [PATCH 0/7] merge some xen bits into qemu , Samuel Thibault
Next by Date: [Xen-devel] 'No module ata_generic found' , Phil Winterfield (winterfi)
Previous by Thread: Re: [Xen-devel] 2.6.27-rc1 >4096MB issue , Jan Beulich
Next by Thread: [Xen-devel] An Error happend when install PV drivers on HVM guest , cheechuang
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /