diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-12-23 11:35:20 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:44 -0500 |
commit | 3ad26d8139a82b0510b1e0435ee82ae461d33401 (patch) | |
tree | f97e5eabb216086a1faf9e6fe055533e12a08bdb /include | |
parent | 506f0d6f9c40ae7d9634acf3c26358810f42c24a (diff) |
KVM: use gfn_to_pfn_memslot in kvm_iommu_map_pages
So its possible to iommu map a memslot before making it visible to
kvm.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm_host.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index f1f78deece10..9af240387fe6 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -440,8 +440,7 @@ void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id); | |||
440 | #define KVM_IOMMU_CACHE_COHERENCY 0x1 | 440 | #define KVM_IOMMU_CACHE_COHERENCY 0x1 |
441 | 441 | ||
442 | #ifdef CONFIG_IOMMU_API | 442 | #ifdef CONFIG_IOMMU_API |
443 | int kvm_iommu_map_pages(struct kvm *kvm, gfn_t base_gfn, | 443 | int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot); |
444 | unsigned long npages); | ||
445 | int kvm_iommu_map_guest(struct kvm *kvm); | 444 | int kvm_iommu_map_guest(struct kvm *kvm); |
446 | int kvm_iommu_unmap_guest(struct kvm *kvm); | 445 | int kvm_iommu_unmap_guest(struct kvm *kvm); |
447 | int kvm_assign_device(struct kvm *kvm, | 446 | int kvm_assign_device(struct kvm *kvm, |