aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/paravirt.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-08 06:24:29 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:24:29 -0400
commit6236af82d8a989e150a02800c210eb61cb1e17be (patch)
treed5e83e66b09fc405ac70925f9b83152abaf48a03 /include/asm-x86/paravirt.h
parente3ae0acf59244ecf5b023ec99cef4b6b29d649bc (diff)
parent8b7ef4ec5b1ac8b6feebf5ae9cda85a7514728f8 (diff)
Merge branch 'x86/fixmap' into x86/devel
Conflicts: arch/x86/mm/init_64.c Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/paravirt.h')
-rw-r--r--include/asm-x86/paravirt.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h
index e9ada314dfc1..41f5447efd88 100644
--- a/include/asm-x86/paravirt.h
+++ b/include/asm-x86/paravirt.h
@@ -279,6 +279,13 @@ struct pv_mmu_ops {
279#endif 279#endif
280 280
281 struct pv_lazy_ops lazy_mode; 281 struct pv_lazy_ops lazy_mode;
282
283 /* dom0 ops */
284
285 /* Sometimes the physical address is a pfn, and sometimes its
286 an mfn. We can tell which is which from the index. */
287 void (*set_fixmap)(unsigned /* enum fixed_addresses */ idx,
288 unsigned long phys, pgprot_t flags);
282}; 289};
283 290
284/* This contains all the paravirt structures: we get a convenient 291/* This contains all the paravirt structures: we get a convenient
@@ -1295,6 +1302,12 @@ static inline void arch_flush_lazy_mmu_mode(void)
1295 } 1302 }
1296} 1303}
1297 1304
1305static inline void __set_fixmap(unsigned /* enum fixed_addresses */ idx,
1306 unsigned long phys, pgprot_t flags)
1307{
1308 pv_mmu_ops.set_fixmap(idx, phys, flags);
1309}
1310
1298void _paravirt_nop(void); 1311void _paravirt_nop(void);
1299#define paravirt_nop ((void *)_paravirt_nop) 1312#define paravirt_nop ((void *)_paravirt_nop)
1300 1313