diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ded64cb3a081..aa56894ce839 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -764,8 +764,6 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id); | |||
| 764 | #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT | 764 | #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT |
| 765 | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot); | 765 | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot); |
| 766 | void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot); | 766 | void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot); |
| 767 | int kvm_iommu_map_guest(struct kvm *kvm); | ||
| 768 | int kvm_iommu_unmap_guest(struct kvm *kvm); | ||
| 769 | int kvm_assign_device(struct kvm *kvm, | 767 | int kvm_assign_device(struct kvm *kvm, |
| 770 | struct kvm_assigned_dev_kernel *assigned_dev); | 768 | struct kvm_assigned_dev_kernel *assigned_dev); |
| 771 | int kvm_deassign_device(struct kvm *kvm, | 769 | int kvm_deassign_device(struct kvm *kvm, |
| @@ -781,11 +779,6 @@ static inline void kvm_iommu_unmap_pages(struct kvm *kvm, | |||
| 781 | struct kvm_memory_slot *slot) | 779 | struct kvm_memory_slot *slot) |
| 782 | { | 780 | { |
| 783 | } | 781 | } |
| 784 | |||
| 785 | static inline int kvm_iommu_unmap_guest(struct kvm *kvm) | ||
| 786 | { | ||
| 787 | return 0; | ||
| 788 | } | ||
| 789 | #endif | 782 | #endif |
| 790 | 783 | ||
| 791 | static inline void kvm_guest_enter(void) | 784 | static inline void kvm_guest_enter(void) |
| @@ -1005,25 +998,6 @@ static inline bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu) { return true; } | |||
| 1005 | 998 | ||
| 1006 | #endif | 999 | #endif |
| 1007 | 1000 | ||
| 1008 | #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT | ||
| 1009 | |||
| 1010 | long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, | ||
| 1011 | unsigned long arg); | ||
| 1012 | |||
| 1013 | void kvm_free_all_assigned_devices(struct kvm *kvm); | ||
| 1014 | |||
| 1015 | #else | ||
| 1016 | |||
| 1017 | static inline long kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, | ||
| 1018 | unsigned long arg) | ||
| 1019 | { | ||
| 1020 | return -ENOTTY; | ||
| 1021 | } | ||
| 1022 | |||
| 1023 | static inline void kvm_free_all_assigned_devices(struct kvm *kvm) {} | ||
| 1024 | |||
| 1025 | #endif | ||
| 1026 | |||
| 1027 | static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu) | 1001 | static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu) |
| 1028 | { | 1002 | { |
| 1029 | set_bit(req, &vcpu->requests); | 1003 | set_bit(req, &vcpu->requests); |
