[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] vfio_pci: fix build on 32-bit systems
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] vfio_pci: fix build on 32-bit systems |
Date: |
Tue, 02 Oct 2012 08:11:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
Il 01/10/2012 20:49, Alex Williamson ha scritto:
>> > @@ -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,
Does this need to be uintptr_t?
Paolo
>> > .iova = iova,
>> > .size = size,
>> > };
> Thanks Anthony
>
> Acked-by: Alex Williamson <address@hidden>