events.h 548 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_ARM64_XEN_EVENTS_H
  3. #define _ASM_ARM64_XEN_EVENTS_H
  4. #include <asm/ptrace.h>
  5. #include <asm/atomic.h>
  6. enum ipi_vector {
  7. XEN_PLACEHOLDER_VECTOR,
  8. /* Xen IPIs go here */
  9. XEN_NR_IPIS,
  10. };
  11. static inline int xen_irqs_disabled(struct pt_regs *regs)
  12. {
  13. return !interrupts_enabled(regs);
  14. }
  15. #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
  16. /* Rebind event channel is supported by default */
  17. static inline bool xen_support_evtchn_rebind(void)
  18. {
  19. return true;
  20. }
  21. #endif /* _ASM_ARM64_XEN_EVENTS_H */