summaryrefslogtreecommitdiff
path: root/xen/arch/x86/include/asm/hvm/cacheattr.h
blob: 79e721d074ad1293561c2e5be2859de18847558e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __HVM_CACHEATTR_H__
#define __HVM_CACHEATTR_H__

#include <xen/mm.h>

struct domain;
void hvm_init_cacheattr_region_list(struct domain *d);
void hvm_destroy_cacheattr_region_list(struct domain *d);

/*
 * Check whether gfn is in the pinned range:
 * if yes, return the (non-negative) type
 * if no or ambiguous, return a negative error code
 */
int hvm_get_mem_pinned_cacheattr(struct domain *d, gfn_t gfn,
                                 unsigned int order);


/* Set pinned caching type for a domain. */
int hvm_set_mem_pinned_cacheattr(struct domain *d, uint64_t gfn_start,
                                 uint64_t gfn_end, uint32_t type);

#endif /* __HVM_CACHEATTR_H__ */