From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: __va() vs phys_to_virt() Date: Tue, 22 Mar 2005 12:45:00 -0800 Message-ID: <1111524300.5045.86.camel@localhost> References: <200503181232.12435.hollisb@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit In-Reply-To: <200503181232.12435.hollisb@us.ibm.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Hollis Blanchard Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org On Fri, 2005-03-18 at 12:32 -0600, Hollis Blanchard wrote: > Can someone explain where it's appropriate to use __va() and where > phys_to_virt() should be used instead? Or are they truly synonymous, and we > should phase out one or the other? One minor thing on some Linux arches is that virt_to_phys() is volatile, __pa() is just a macro, so they have different optimization rules. -- Dave ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click