coalesced_mmio.h 845 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __KVM_COALESCED_MMIO_H__
  2. #define __KVM_COALESCED_MMIO_H__
  3. /*
  4. * KVM coalesced MMIO
  5. *
  6. * Copyright (c) 2008 Bull S.A.S.
  7. *
  8. * Author: Laurent Vivier <Laurent.Vivier@bull.net>
  9. *
  10. */
  11. #ifdef CONFIG_KVM_MMIO
  12. #include <linux/list.h>
  13. struct kvm_coalesced_mmio_dev {
  14. struct list_head list;
  15. struct kvm_io_device dev;
  16. struct kvm *kvm;
  17. struct kvm_coalesced_mmio_zone zone;
  18. };
  19. int kvm_coalesced_mmio_init(struct kvm *kvm);
  20. void kvm_coalesced_mmio_free(struct kvm *kvm);
  21. int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,
  22. struct kvm_coalesced_mmio_zone *zone);
  23. int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,
  24. struct kvm_coalesced_mmio_zone *zone);
  25. #else
  26. static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; }
  27. static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { }
  28. #endif
  29. #endif