ia64/xen-unstable

view xen/include/asm-x86/hvm/cacheattr.h @ 16247:2d238ca6d51a

x86: Fix MTRR/PAT virtualisation on PAE

Various 'long's should be 'u64's.

Signed-off-by: Disheng Su <disheng.su@intel.com>
author Keir Fraser <keir@xensource.com>
date Fri Oct 26 10:00:10 2007 +0100 (2007-10-26)
parents b3fa9b58a102
children
line source
1 #ifndef __HVM_CACHEATTR_H__
2 #define __HVM_CACHEATTR_H__
4 struct hvm_mem_pinned_cacheattr_range {
5 struct list_head list;
6 uint64_t start, end;
7 uint32_t type;
8 };
10 void hvm_init_cacheattr_region_list(
11 struct domain *d);
12 void hvm_destroy_cacheattr_region_list(
13 struct domain *d);
15 /*
16 * To see guest_fn is in the pinned range or not,
17 * if yes, return 1, and set type to value in this range
18 * if no, return 0, and set type to 0
19 */
20 int32_t hvm_get_mem_pinned_cacheattr(
21 struct domain *d,
22 uint64_t guest_fn,
23 uint32_t *type);
26 /* Set pinned caching type for a domain. */
27 int32_t hvm_set_mem_pinned_cacheattr(
28 struct domain *d,
29 uint64_t gfn_start,
30 uint64_t gfn_end,
31 uint32_t type);
33 #endif /* __HVM_CACHEATTR_H__ */