kvm_para.h 775 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _UAPI__LINUX_KVM_PARA_H
  2. #define _UAPI__LINUX_KVM_PARA_H
  3. /*
  4. * This header file provides a method for making a hypercall to the host
  5. * Architectures should define:
  6. * - kvm_hypercall0, kvm_hypercall1...
  7. * - kvm_arch_para_features
  8. * - kvm_para_available
  9. */
  10. /* Return values for hypercalls */
  11. #define KVM_ENOSYS 1000
  12. #define KVM_EFAULT EFAULT
  13. #define KVM_E2BIG E2BIG
  14. #define KVM_EPERM EPERM
  15. #define KVM_HC_VAPIC_POLL_IRQ 1
  16. #define KVM_HC_MMU_OP 2
  17. #define KVM_HC_FEATURES 3
  18. #define KVM_HC_PPC_MAP_MAGIC_PAGE 4
  19. #define KVM_HC_KICK_CPU 5
  20. #define KVM_HC_MIPS_GET_CLOCK_FREQ 6
  21. #define KVM_HC_MIPS_EXIT_VM 7
  22. #define KVM_HC_MIPS_CONSOLE_OUTPUT 8
  23. /*
  24. * hypercalls use architecture specific
  25. */
  26. #include <asm/kvm_para.h>
  27. #endif /* _UAPI__LINUX_KVM_PARA_H */