|
@@ -596,6 +596,7 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id);
|
|
|
|
|
|
|
|
#ifdef CONFIG_IOMMU_API
|
|
#ifdef CONFIG_IOMMU_API
|
|
|
int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot);
|
|
int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot);
|
|
|
|
|
+void kvm_iommu_unmap_pages(struct kvm *kvm, struct kvm_memory_slot *slot);
|
|
|
int kvm_iommu_map_guest(struct kvm *kvm);
|
|
int kvm_iommu_map_guest(struct kvm *kvm);
|
|
|
int kvm_iommu_unmap_guest(struct kvm *kvm);
|
|
int kvm_iommu_unmap_guest(struct kvm *kvm);
|
|
|
int kvm_assign_device(struct kvm *kvm,
|
|
int kvm_assign_device(struct kvm *kvm,
|
|
@@ -609,6 +610,11 @@ static inline int kvm_iommu_map_pages(struct kvm *kvm,
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static inline void kvm_iommu_unmap_pages(struct kvm *kvm,
|
|
|
|
|
+ struct kvm_memory_slot *slot)
|
|
|
|
|
+{
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static inline int kvm_iommu_map_guest(struct kvm *kvm)
|
|
static inline int kvm_iommu_map_guest(struct kvm *kvm)
|
|
|
{
|
|
{
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|