|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH 46/50] ia64/xen: define xen related address conv
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
include/asm-ia64/page.h | 8 ++++++++
include/asm-ia64/xen/page.h | 41 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 0 deletions(-)
create mode 100644 include/asm-ia64/xen/page.h
diff --git a/include/asm-ia64/page.h b/include/asm-ia64/page.h
index 4999a6c..5508dc2 100644
--- a/include/asm-ia64/page.h
+++ b/include/asm-ia64/page.h
@@ -227,4 +227,12 @@ get_order (unsigned long size)
(((current->personality &
READ_IMPLIES_EXEC) != 0) \
? VM_EXEC : 0))
+/*
+ * XXX: to compile
+ * after pv_ops'fication of xen paravirtualization, this should be removed.
+ */
+#if !defined(__ASSEMBLY__) && defined(CONFIG_XEN)
+#include <asm/xen/page.h>
+#endif /* !__ASSEMBLY__ && CONFIG_XEN */
+
#endif /* _ASM_IA64_PAGE_H */
diff --git a/include/asm-ia64/xen/page.h b/include/asm-ia64/xen/page.h
new file mode 100644
index 0000000..c562036
--- /dev/null
+++ b/include/asm-ia64/xen/page.h
@@ -0,0 +1,41 @@
+#ifndef _ASM_IA64_XEN_PAGE_H
+#define _ASM_IA64_XEN_PAGE_H
+
+#include <linux/kernel.h>
+#include <asm/xen/hypervisor.h>
+#include <asm/xen/hypercall.h>
+#include <xen/features.h>
+#include <xen/interface/xen.h>
+
+static inline unsigned long mfn_to_pfn(unsigned long mfn)
+{
+ return mfn;
+}
+
+static inline unsigned long pfn_to_mfn(unsigned long pfn)
+{
+ return pfn;
+}
+
+static inline void *mfn_to_virt(unsigned long mfn)
+{
+ return __va(mfn << PAGE_SHIFT);
+}
+
+static inline unsigned long virt_to_mfn(void *virt)
+{
+ return __pa(virt) >> PAGE_SHIFT;
+}
+
+/* for tpmfront.c */
+static inline unsigned long virt_to_machine(void *virt)
+{
+ return __pa(virt);
+}
+
+static inline void set_phys_to_machine(unsigned long pfn, unsigned long mfn)
+{
+ /* nothing */
+}
+
+#endif /* _ASM_IA64_XEN_PAGE_H */
--
1.5.3
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [PATCH 35/50] ia64/pv_ops/xen: paravirtualized instructions for hand written assembly code., (continued)
[Xen-ia64-devel] [PATCH 48/50] ia64/pv_ops/xen: define xen pv_init_ops., Isaku Yamahata
[Xen-ia64-devel] [PATCH 46/50] ia64/xen: define xen related address conversion helper functions for domU,
Isaku Yamahata <=
[Xen-ia64-devel] [PATCH 25/50] ia64/pv_ops: introduce pv_info, Isaku Yamahata
[Xen-ia64-devel] [PATCH 31/50] ia64/xen: import xen hypercall header file for domU, Isaku Yamahata
[Xen-ia64-devel] [PATCH 28/50] ia64/pv_ops: introduce pv_irq_ops and its hooks., Isaku Yamahata
[Xen-ia64-devel] [PATCH 40/50] ia64/pv_ops/xen: xen privileged instruction intrinsics with binary patch., Isaku Yamahata
[Xen-ia64-devel] [PATCH 32/50] ia64/xen: define xen assembler constants which will be used later., Isaku Yamahata
[Xen-ia64-devel] [PATCH 36/50] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN., Isaku Yamahata
[Xen-ia64-devel] [PATCH 37/50] ia64/pv_ops/xen: multi compile switch_leave.S and ivt.S for xen., Isaku Yamahata
[Xen-ia64-devel] [PATCH 47/50] ia64/pv_ops/xen: define xen pv_info., Isaku Yamahata
[Xen-ia64-devel] [PATCH 24/50] ia64/pv_ops: paravirtualize arch/ia64/kernel/ivt.S., Isaku Yamahata
[Xen-ia64-devel] [PATCH 39/50] ia64/xen: introduce xen paravirtualized intrinsic operations for privileged instruction., Isaku Yamahata
|
|
|
|
|