ia64/xen-unstable

view xen/include/xen/paging.h @ 19800:78962f85c562

IOMMU: Add two generic functions to vendor neutral interface

Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:41:50 2009 +0100 (2009-06-19)
parents 8d18e52a1b23
children
line source
2 #ifndef __XEN_PAGING_H__
3 #define __XEN_PAGING_H__
5 #include <xen/config.h>
7 #if defined CONFIG_PAGING_ASSISTANCE
9 #include <asm/paging.h>
10 #include <asm/p2m.h>
12 #elif defined CONFIG_SHADOW
14 #include <asm/shadow.h>
16 #define paging_mode_translate(d) shadow_mode_translate(d)
18 #else
20 #define paging_mode_translate(d) (0)
21 #define guest_physmap_add_page(d, p, m, o) (0)
22 #define guest_physmap_remove_page(d, p, m, o) ((void)0)
24 #endif
26 #endif /* __XEN_PAGING_H__ */