types.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation; either version 2 of the License.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. * GNU General Public License for more details.
  10. *
  11. * You should have received a copy of the GNU General Public License
  12. * along with this program; if not, write to the Free Software
  13. * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14. *
  15. */
  16. #ifndef __KVM_TYPES_H__
  17. #define __KVM_TYPES_H__
  18. #include <asm/types.h>
  19. /*
  20. * Address types:
  21. *
  22. * gva - guest virtual address
  23. * gpa - guest physical address
  24. * gfn - guest frame number
  25. * hva - host virtual address
  26. * hpa - host physical address
  27. * hfn - host frame number
  28. */
  29. typedef unsigned long gva_t;
  30. typedef u64 gpa_t;
  31. typedef unsigned long gfn_t;
  32. typedef unsigned long hva_t;
  33. typedef u64 hpa_t;
  34. typedef unsigned long hfn_t;
  35. struct kvm_pio_request {
  36. unsigned long count;
  37. int cur_count;
  38. struct page *guest_pages[2];
  39. unsigned guest_page_offset;
  40. int in;
  41. int port;
  42. int size;
  43. int string;
  44. int down;
  45. int rep;
  46. };
  47. #endif /* __KVM_TYPES_H__ */