diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-12-23 14:35:20 -0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 12:35:44 -0300 |
commit | 3ad26d8139a82b0510b1e0435ee82ae461d33401 (patch) | |
tree | f97e5eabb216086a1faf9e6fe055533e12a08bdb /include/linux/kvm_host.h | |
parent | 506f0d6f9c40ae7d9634acf3c26358810f42c24a (diff) | |
download | blackbird-op-linux-3ad26d8139a82b0510b1e0435ee82ae461d33401.tar.gz blackbird-op-linux-3ad26d8139a82b0510b1e0435ee82ae461d33401.zip |
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.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); #define KVM_IOMMU_CACHE_COHERENCY 0x1 #ifdef CONFIG_IOMMU_API -int kvm_iommu_map_pages(struct kvm *kvm, gfn_t base_gfn, - unsigned long npages); +int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot); int kvm_iommu_map_guest(struct kvm *kvm); int kvm_iommu_unmap_guest(struct kvm *kvm); int kvm_assign_device(struct kvm *kvm, |