diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 31ebb59cbd2..82d5476e69c 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -554,6 +554,7 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id); | |||
| 554 | 554 | ||
| 555 | #ifdef CONFIG_IOMMU_API | 555 | #ifdef CONFIG_IOMMU_API |
| 556 | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot); | 556 | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot); |
| 557 | void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot); | ||
| 557 | int kvm_iommu_map_guest(struct kvm *kvm); | 558 | int kvm_iommu_map_guest(struct kvm *kvm); |
| 558 | int kvm_iommu_unmap_guest(struct kvm *kvm); | 559 | int kvm_iommu_unmap_guest(struct kvm *kvm); |
| 559 | int kvm_assign_device(struct kvm *kvm, | 560 | int kvm_assign_device(struct kvm *kvm, |
| @@ -567,6 +568,11 @@ static inline int kvm_iommu_map_pages(struct kvm *kvm, | |||
| 567 | return 0; | 568 | return 0; |
| 568 | } | 569 | } |
| 569 | 570 | ||
| 571 | static inline void kvm_iommu_unmap_pages(struct kvm *kvm, | ||
| 572 | struct kvm_memory_slot *slot) | ||
| 573 | { | ||
| 574 | } | ||
| 575 | |||
| 570 | static inline int kvm_iommu_map_guest(struct kvm *kvm) | 576 | static inline int kvm_iommu_map_guest(struct kvm *kvm) |
| 571 | { | 577 | { |
| 572 | return -ENODEV; | 578 | return -ENODEV; |
