ia64/xen-unstable

view xen/include/asm-x86/hvm/cacheattr.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 2d238ca6d51a
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__ */