ia64/xen-unstable

view xen/include/asm-x86/hvm/cacheattr.h @ 16197:b3fa9b58a102

hvm, vt-d: Add memory cache-attribute pinning domctl for HVM
guests. Use this to pin virtual framebuffer VRAM as attribute WB, even
if guest tries to map with other attributes.
Signed-off-by: Disheng Su <disheng.su@intel.com>
author Keir Fraser <keir@xensource.com>
date Tue Oct 23 14:38:47 2007 +0100 (2007-10-23)
parents
children 2d238ca6d51a
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 unsigned int 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 int hvm_get_mem_pinned_cacheattr(
21 struct domain *d,
22 unsigned long guest_fn,
23 unsigned int *type);
26 /* Set pinned caching type for a domain. */
27 int hvm_set_mem_pinned_cacheattr(
28 struct domain *d,
29 unsigned long gfn_start,
30 unsigned long gfn_end,
31 unsigned int type);
33 #endif /* __HVM_CACHEATTR_H__ */