aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-07-01 10:00:12 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 23:39:44 -0400
commit5689cc53fa9d09b5bf41b1b1a7c90bd6c112ab40 (patch)
tree1bfe4bdf8cbad3938e2cd8b76eac10c8023ba04d /virt/kvm/iommu.c
parent828554136bbacae6e39fc31b9cd7e7c660ad7530 (diff)
KVM: Use u64 for frame data types
For 32bit machines where the physical address width is larger than the virtual address width the frame number types in KVM may overflow. Fix this by changing them to u64. [sfr: fix build on 32-bit ppc] Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm/iommu.c')
-rw-r--r--virt/kvm/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c
index 779559552ce7..62a9caf0563c 100644
--- a/virt/kvm/iommu.c
+++ b/virt/kvm/iommu.c
@@ -108,7 +108,7 @@ int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot)
108 get_order(page_size), flags); 108 get_order(page_size), flags);
109 if (r) { 109 if (r) {
110 printk(KERN_ERR "kvm_iommu_map_address:" 110 printk(KERN_ERR "kvm_iommu_map_address:"
111 "iommu failed to map pfn=%lx\n", pfn); 111 "iommu failed to map pfn=%llx\n", pfn);
112 goto unmap_pages; 112 goto unmap_pages;
113 } 113 }
114 114