hypervisor.h 821 B

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