aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-12-23 11:35:20 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:44 -0500
commit3ad26d8139a82b0510b1e0435ee82ae461d33401 (patch)
treef97e5eabb216086a1faf9e6fe055533e12a08bdb /include/linux/kvm_host.h
parent506f0d6f9c40ae7d9634acf3c26358810f42c24a (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/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index f1f78deece1..9af240387fe 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
443int kvm_iommu_map_pages(struct kvm *kvm, gfn_t base_gfn, 443int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot);
444 unsigned long npages);
445int kvm_iommu_map_guest(struct kvm *kvm); 444int kvm_iommu_map_guest(struct kvm *kvm);
446int kvm_iommu_unmap_guest(struct kvm *kvm); 445int kvm_iommu_unmap_guest(struct kvm *kvm);
447int kvm_assign_device(struct kvm *kvm, 446int kvm_assign_device(struct kvm *kvm,