]> git.proxmox.com Git - mirror_qemu.git/commit
vfio: Fix 128 bit handling
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 30 May 2014 19:02:02 +0000 (13:02 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 30 May 2014 19:02:02 +0000 (13:02 -0600)
commit7532d3cbf148f72c9476484223b94a188ab59706
tree103c95743a453bfeb69ef5f902d970ce288603eb
parent12e1129b800a14ee77abe598beba41a95c7b86a5
vfio: Fix 128 bit handling

Upcoming VFIO on SPAPR PPC64 support will initialize the IOMMU
memory region with UINT64_MAX (2^64 bytes) size so int128_get64()
will assert.

The patch takes care of this check. The existing type1 IOMMU code
is not expected to map all 64 bits of RAM so the patch does not
touch that part.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/misc/vfio.c