ia64/xen-unstable

view xen/include/xen/guest_access.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 2d87e2747973
children
line source
1 /******************************************************************************
2 * guest_access.h
3 *
4 * Copyright (x) 2006, K A Fraser
5 */
7 #ifndef __XEN_GUEST_ACCESS_H__
8 #define __XEN_GUEST_ACCESS_H__
10 #include <asm/guest_access.h>
12 #define copy_to_guest(hnd, ptr, nr) \
13 copy_to_guest_offset(hnd, 0, ptr, nr)
15 #define copy_from_guest(ptr, hnd, nr) \
16 copy_from_guest_offset(ptr, hnd, 0, nr)
18 #define __copy_to_guest(hnd, ptr, nr) \
19 __copy_to_guest_offset(hnd, 0, ptr, nr)
21 #define __copy_from_guest(ptr, hnd, nr) \
22 __copy_from_guest_offset(ptr, hnd, 0, nr)
24 #endif /* __XEN_GUEST_ACCESS_H__ */