projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e1fb5
)
vfio_pci: fix build on 32-bit systems
author
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 1 Oct 2012 18:40:15 +0000
(13:40 -0500)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 1 Oct 2012 18:40:15 +0000
(13:40 -0500)
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>
hw/vfio_pci.c
patch
|
blob
|
history
diff --git
a/hw/vfio_pci.c
b/hw/vfio_pci.c
index a24558aaa0ffa7cb6b044d4642fb8958a8910bfa..a1eeced8fde47c76675b223f49f78831a897e453 100644
(file)
--- 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,
};