[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Cleanup/fix virt_to_maddr


  • To: Christoph Egger <Christoph.Egger@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxxxxxxxx>
  • Date: Wed, 24 Jan 2007 11:06:00 +0000
  • Delivery-date: Wed, 24 Jan 2007 03:05:46 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acc/p6E0343fWKuaEduptAAX8io7RQ==
  • Thread-topic: [Xen-devel] [PATCH] Cleanup/fix virt_to_maddr



On 24/1/07 11:01, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

>> They're only used on Xen heap virtual addresses whose physical addresses
>> are always below 64MB. So there should be no issues in returning a ulong.
> 
> Oh, I see. So it's absolutely not used for domains (which I assumed)?

No, all it does is a simple arithmetic transformation (subtracting
PAGE_OFFSET) which is only valid for non-guest pages on x86_32. It can be
used for any page on x86_64, but there we have paddr_t==ulong.

 -- Keir


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.