ia64/xen-unstable

view xen/include/asm-ia64/tlbflush.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 822ea2bf0c54
children
line source
1 #ifndef __FLUSHTLB_H__
2 #define __FLUSHTLB_H__
4 struct vcpu;
5 struct domain;
7 /* TLB flushes can be either local (current vcpu only) or domain wide (on
8 all vcpus).
9 TLB flushes can be either all-flush or range only.
11 vTLB flushing means flushing VCPU virtual TLB + machine TLB + machine VHPT.
12 */
14 /* Local all flush of vTLB. */
15 void vcpu_flush_vtlb_all(struct vcpu *v);
17 /* Local range flush of machine TLB only (not full VCPU virtual TLB!!!) */
18 void vcpu_flush_tlb_vhpt_range (u64 vadr, u64 log_range);
20 /* Global all flush of vTLB */
21 void domain_flush_vtlb_all(struct domain *d);
23 /* Global range-flush of vTLB. */
24 void domain_flush_vtlb_range (struct domain *d, u64 vadr, u64 addr_range);
26 #ifdef CONFIG_XEN_IA64_TLB_TRACK
27 struct tlb_track_entry;
28 void __domain_flush_vtlb_track_entry(struct domain* d,
29 const struct tlb_track_entry* entry);
30 /* Global entry-flush of vTLB */
31 void domain_flush_vtlb_track_entry(struct domain* d,
32 const struct tlb_track_entry* entry);
33 #endif
35 /* Flush vhpt and mTLB on every dirty cpus. */
36 void domain_flush_tlb_vhpt(struct domain *d);
38 /* Flush vhpt and mTLB for log-dirty mode. */
39 void flush_tlb_for_log_dirty(struct domain *d);
41 /* Flush v-tlb on cpus set in mask for current domain. */
42 void flush_tlb_mask(const cpumask_t *mask);
44 /* Flush local machine TLB. */
45 void local_flush_tlb_all (void);
47 #define tlbflush_filter(x,y) ((void)0)
49 #endif