kvm.h 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
  7. * Authors: Sanjay Lal <sanjayl@kymasys.com>
  8. */
  9. #ifndef __LINUX_KVM_MIPS_H
  10. #define __LINUX_KVM_MIPS_H
  11. #include <linux/types.h>
  12. #define __KVM_MIPS
  13. #define N_MIPS_COPROC_REGS 32
  14. #define N_MIPS_COPROC_SEL 8
  15. /* for KVM_GET_REGS and KVM_SET_REGS */
  16. struct kvm_regs {
  17. __u32 gprs[32];
  18. __u32 hi;
  19. __u32 lo;
  20. __u32 pc;
  21. __u32 cp0reg[N_MIPS_COPROC_REGS][N_MIPS_COPROC_SEL];
  22. };
  23. /* for KVM_GET_SREGS and KVM_SET_SREGS */
  24. struct kvm_sregs {
  25. };
  26. /* for KVM_GET_FPU and KVM_SET_FPU */
  27. struct kvm_fpu {
  28. };
  29. struct kvm_debug_exit_arch {
  30. };
  31. /* for KVM_SET_GUEST_DEBUG */
  32. struct kvm_guest_debug_arch {
  33. };
  34. struct kvm_mips_interrupt {
  35. /* in */
  36. __u32 cpu;
  37. __u32 irq;
  38. };
  39. /* definition of registers in kvm_run */
  40. struct kvm_sync_regs {
  41. };
  42. #endif /* __LINUX_KVM_MIPS_H */