diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-01 13:40:15 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-01 13:40:15 -0500 |
commit | 0f41dc182c7e4e2ae160641552101a2a199f7c4c (patch) | |
tree | 3d71422cb90d9cb3f5ab0e97c2eb82f846edc0e4 /hw/vfio_pci.c | |
parent | 92e1fb5ed1a26d09ee754845d5691d473410c1dc (diff) |
vfio_pci: fix build on 32-bit systems
We cannot cast directly from pointer to uint64.
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Alex Barcelo <abarcelo@ac.upc.edu>
Reported-by: Alex Barcelo <abarcelo@ac.upc.edu>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vfio_pci.c')
-rw-r--r-- | hw/vfio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index a24558aaa0..a1eeced8fd 100644 --- a/hw/vfio_pci.c +++ b/hw/vfio_pci.c @@ -768,7 +768,7 @@ static int vfio_dma_map(VFIOContainer *container, target_phys_addr_t iova, struct vfio_iommu_type1_dma_map map = { .argsz = sizeof(map), .flags = VFIO_DMA_MAP_FLAG_READ, - .vaddr = (__u64)vaddr, + .vaddr = (__u64)(intptr_t)vaddr, .iova = iova, .size = size, }; |