Paolo Bonzini | 3c3c29f | 2014-09-24 13:02:46 +0200 | [diff] [blame] | 1 | #ifndef __KVM_VFIO_H |
| 2 | #define __KVM_VFIO_H |
| 3 | |
| 4 | #ifdef CONFIG_KVM_VFIO |
| 5 | int kvm_vfio_ops_init(void); |
Wanpeng Li | 571ee1b | 2014-10-09 18:30:08 +0800 | [diff] [blame] | 6 | void kvm_vfio_ops_exit(void); |
Paolo Bonzini | 3c3c29f | 2014-09-24 13:02:46 +0200 | [diff] [blame] | 7 | #else |
| 8 | static inline int kvm_vfio_ops_init(void) |
| 9 | { |
| 10 | return 0; |
| 11 | } |
Wanpeng Li | 571ee1b | 2014-10-09 18:30:08 +0800 | [diff] [blame] | 12 | static inline void kvm_vfio_ops_exit(void) |
| 13 | { |
| 14 | } |
Paolo Bonzini | 3c3c29f | 2014-09-24 13:02:46 +0200 | [diff] [blame] | 15 | #endif |
| 16 | |
| 17 | #endif |