aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/paravirt.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-17 14:42:01 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-20 09:09:56 -0400
commitaeaaa59c7e15dcfaaf57ce069ef81683067d575d (patch)
tree5d3197156381360027d414625fe26ab2d67c6a07 /include/asm-x86/paravirt.h
parentd494a96125c99f1e37b1f831b29b42c9b712ee05 (diff)
x86/paravirt/xen: add set_fixmap pv_mmu_ops
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Mark McLoughlin <markmc@redhat.com> 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 0f13b945e240..af85caf9a799 100644
--- a/include/asm-x86/paravirt.h
+++ b/include/asm-x86/paravirt.h
@@ -273,6 +273,13 @@ struct pv_mmu_ops {
273#endif 273#endif
274 274
275 struct pv_lazy_ops lazy_mode; 275 struct pv_lazy_ops lazy_mode;
276
277 /* dom0 ops */
278
279 /* Sometimes the physical address is a pfn, and sometimes its
280 an mfn. We can tell which is which from the index. */
281 void (*set_fixmap)(unsigned /* enum fixed_addresses */ idx,
282 unsigned long phys, pgprot_t flags);
276}; 283};
277 284
278/* This contains all the paravirt structures: we get a convenient 285/* This contains all the paravirt structures: we get a convenient
@@ -1252,6 +1259,12 @@ static inline void arch_flush_lazy_mmu_mode(void)
1252 } 1259 }
1253} 1260}
1254 1261
1262static inline void __set_fixmap(unsigned /* enum fixed_addresses */ idx,
1263 unsigned long phys, pgprot_t flags)
1264{
1265 pv_mmu_ops.set_fixmap(idx, phys, flags);
1266}
1267
1255void _paravirt_nop(void); 1268void _paravirt_nop(void);
1256#define paravirt_nop ((void *)_paravirt_nop) 1269#define paravirt_nop ((void *)_paravirt_nop)
1257 1270