qemu-devel
[Top][All Lists]
Advanced

[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: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] vfio_pci: fix build on 32-bit systems
Date: Mon, 01 Oct 2012 14:27:15 -0500
User-agent: Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

Anthony Liguori <address@hidden> writes:

> We cannot cast directly from pointer to uint64.
>
> Cc: Alex Williamson <address@hidden>
> Cc: Alex Barcelo <address@hidden>
> Reported-by: Alex Barcelo <address@hidden>
> Signed-off-by: Anthony Liguori <address@hidden>

Applied.

Regards,

Anthony Liguori

> ---
>  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 a24558a..a1eeced 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,
>      };
> -- 
> 1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]