#ifndef __HVM_CACHEATTR_H__ #define __HVM_CACHEATTR_H__ struct hvm_mem_pinned_cacheattr_range { struct list_head list; uint64_t start, end; uint32_t type; }; void hvm_init_cacheattr_region_list( struct domain *d); void hvm_destroy_cacheattr_region_list( struct domain *d); /* * To see guest_fn is in the pinned range or not, * if yes, return 1, and set type to value in this range * if no, return 0, and set type to 0 */ int32_t hvm_get_mem_pinned_cacheattr( struct domain *d, uint64_t guest_fn, uint32_t *type); /* Set pinned caching type for a domain. */ int32_t hvm_set_mem_pinned_cacheattr( struct domain *d, uint64_t gfn_start, uint64_t gfn_end, uint32_t type); #endif /* __HVM_CACHEATTR_H__ */