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/
Home Products Support Community News


[Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: machine addresss macros

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: machine addresss macros
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Oct 2007 17:42:08 -0700
Delivery-date: Thu, 04 Oct 2007 18:28:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1190925282 21600
# Node ID 610fcb6013ef9b32e79e0de9534aa0c7df3d1ecf
# Parent  cb1c72a8f273218d1067464f20a31dcb3db93231
[IA64] Kexec: machine addresss macros

Define IA64-specific macros for kexec to find the machine address
of a virtual address etc... This abstraction was hammered out
during the merge of the x86 code.

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
 include/asm-ia64/kexec.h |   11 +++++++++++
 1 files changed, 11 insertions(+)

diff -r cb1c72a8f273 -r 610fcb6013ef include/asm-ia64/kexec.h
--- a/include/asm-ia64/kexec.h  Thu Sep 27 14:32:08 2007 -0600
+++ b/include/asm-ia64/kexec.h  Thu Sep 27 14:34:42 2007 -0600
@@ -44,4 +44,15 @@ extern atomic_t kdump_cpu_freezed;
 extern atomic_t kdump_cpu_freezed;
 extern atomic_t kdump_in_progress;
+/* Kexec needs to know about the actual physical addresss.
+ * But in xen, on some architectures, a physical address is a
+ * pseudo-physical addresss. */
+#ifdef CONFIG_XEN
+#define kexec_page_to_pfn(page)  pfn_to_mfn_for_dma(page_to_pfn(page))
+#define kexec_pfn_to_page(pfn)   pfn_to_page(mfn_to_pfn_for_dma(pfn))
+#define kexec_virt_to_phys(addr) phys_to_machine_for_dma(__pa(addr))
+#define kexec_phys_to_virt(addr) phys_to_virt(machine_to_phys_for_dma(addr))
 #endif /* _ASM_IA64_KEXEC_H */

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] [IA64] Kexec: machine addresss macros, Xen patchbot-linux-2.6.18-xen <=