summaryrefslogtreecommitdiffstats
path: root/arch/arm/xen/Makefile
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-17 16:22:27 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-17 16:22:27 +0000
commit4a19138c6505e224d9f4cc2fe9ada9188d7100ea (patch)
treecff1b72f69858d6bdfb0486e082de13e8b93f9dc /arch/arm/xen/Makefile
parent25b719d7b45947a79d298414cdfb5ec8fadf0ec8 (diff)
downloadlinux-4a19138c6505e224d9f4cc2fe9ada9188d7100ea.tar.gz
linux-4a19138c6505e224d9f4cc2fe9ada9188d7100ea.tar.bz2
linux-4a19138c6505e224d9f4cc2fe9ada9188d7100ea.zip
arm/xen,arm64/xen: introduce p2m
Introduce physical to machine and machine to physical tracking mechanisms based on rbtrees for arm/xen and arm64/xen. We need it because any guests on ARM are an autotranslate guests, therefore a physical address is potentially different from a machine address. When programming a device to do DMA, we need to be extra-careful to use machine addresses rather than physical addresses to program the device. Therefore we need to know the physical to machine mappings. For the moment we assume that dom0 starts with a 1:1 physical to machine mapping, in other words physical addresses correspond to machine addresses. However when mapping a foreign grant reference, obviously the 1:1 model doesn't work anymore. So at the very least we need to be able to track grant mappings. We need locking to protect accesses to the two trees. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Changes in v8: - move pfn_to_mfn and mfn_to_pfn to page.h as static inline functions; - no need to walk the tree if phys_to_mach.rb_node is NULL; - correctly handle multipage p2m entries; - substitute the spin_lock with a rwlock.
Diffstat (limited to 'arch/arm/xen/Makefile')
-rw-r--r--arch/arm/xen/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/xen/Makefile b/arch/arm/xen/Makefile
index 43841033afd3..21e6ff503178 100644
--- a/arch/arm/xen/Makefile
+++ b/arch/arm/xen/Makefile
@@ -1 +1 @@
-obj-y := enlighten.o hypercall.o grant-table.o
+obj-y := enlighten.o hypercall.o grant-table.o p2m.o