aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/paravirt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/paravirt.h')
-rw-r--r--include/asm-i386/paravirt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h
index 4b3d50858670..f880b06d6d56 100644
--- a/include/asm-i386/paravirt.h
+++ b/include/asm-i386/paravirt.h
@@ -15,6 +15,7 @@
15 15
16#ifndef __ASSEMBLY__ 16#ifndef __ASSEMBLY__
17#include <linux/types.h> 17#include <linux/types.h>
18#include <linux/cpumask.h>
18 19
19struct thread_struct; 20struct thread_struct;
20struct Xgt_desc_struct; 21struct Xgt_desc_struct;
@@ -165,6 +166,8 @@ struct paravirt_ops
165 void (*flush_tlb_user)(void); 166 void (*flush_tlb_user)(void);
166 void (*flush_tlb_kernel)(void); 167 void (*flush_tlb_kernel)(void);
167 void (*flush_tlb_single)(unsigned long addr); 168 void (*flush_tlb_single)(unsigned long addr);
169 void (*flush_tlb_others)(const cpumask_t *cpus, struct mm_struct *mm,
170 unsigned long va);
168 171
169 void (*map_pt_hook)(int type, pte_t *va, u32 pfn); 172 void (*map_pt_hook)(int type, pte_t *va, u32 pfn);
170 173
@@ -853,6 +856,12 @@ static inline void __flush_tlb_single(unsigned long addr)
853 PVOP_VCALL1(flush_tlb_single, addr); 856 PVOP_VCALL1(flush_tlb_single, addr);
854} 857}
855 858
859static inline void flush_tlb_others(cpumask_t cpumask, struct mm_struct *mm,
860 unsigned long va)
861{
862 PVOP_VCALL3(flush_tlb_others, &cpumask, mm, va);
863}
864
856static inline void paravirt_map_pt_hook(int type, pte_t *va, u32 pfn) 865static inline void paravirt_map_pt_hook(int type, pte_t *va, u32 pfn)
857{ 866{
858 PVOP_VCALL3(map_pt_hook, type, va, pfn); 867 PVOP_VCALL3(map_pt_hook, type, va, pfn);