Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Paolo Bonzini | 3c3c29f | 2014-09-24 13:02:46 +0200 | [diff] [blame] | 2 | #ifndef __KVM_VFIO_H |
| 3 | #define __KVM_VFIO_H |
| 4 | |
| 5 | #ifdef CONFIG_KVM_VFIO |
| 6 | int kvm_vfio_ops_init(void); |
Wanpeng Li | 571ee1b | 2014-10-09 18:30:08 +0800 | [diff] [blame] | 7 | void kvm_vfio_ops_exit(void); |
Paolo Bonzini | 3c3c29f | 2014-09-24 13:02:46 +0200 | [diff] [blame] | 8 | #else |
| 9 | static inline int kvm_vfio_ops_init(void) |
| 10 | { |
| 11 | return 0; |
| 12 | } |
Wanpeng Li | 571ee1b | 2014-10-09 18:30:08 +0800 | [diff] [blame] | 13 | static inline void kvm_vfio_ops_exit(void) |
| 14 | { |
| 15 | } |
Paolo Bonzini | 3c3c29f | 2014-09-24 13:02:46 +0200 | [diff] [blame] | 16 | #endif |
| 17 | |
| 18 | #endif |