hypervisor.h 776 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _ASM_ARM_XEN_HYPERVISOR_H
  2. #define _ASM_ARM_XEN_HYPERVISOR_H
  3. #include <linux/init.h>
  4. extern struct shared_info *HYPERVISOR_shared_info;
  5. extern struct start_info *xen_start_info;
  6. /* Lazy mode for batching updates / context switch */
  7. enum paravirt_lazy_mode {
  8. PARAVIRT_LAZY_NONE,
  9. PARAVIRT_LAZY_MMU,
  10. PARAVIRT_LAZY_CPU,
  11. };
  12. static inline enum paravirt_lazy_mode paravirt_get_lazy_mode(void)
  13. {
  14. return PARAVIRT_LAZY_NONE;
  15. }
  16. extern struct dma_map_ops *xen_dma_ops;
  17. #ifdef CONFIG_XEN
  18. void __init xen_early_init(void);
  19. #else
  20. static inline void xen_early_init(void) { return; }
  21. #endif
  22. #ifdef CONFIG_HOTPLUG_CPU
  23. static inline void xen_arch_register_cpu(int num)
  24. {
  25. }
  26. static inline void xen_arch_unregister_cpu(int num)
  27. {
  28. }
  29. #endif
  30. #endif /* _ASM_ARM_XEN_HYPERVISOR_H */