summaryrefslogtreecommitdiffstats
path: root/nbd/client.c
diff options
context:
space:
mode:
authorBandan Das2016-03-24 01:37:25 +0100
committerAlex Williamson2016-03-28 21:27:49 +0200
commit55efcc537d330f1659d3fa171a66eebc9327e91b (patch)
tree840c60f0b1c31235584f3fe827ebe9987f96df8d /nbd/client.c
parentMerge remote-tracking branch 'remotes/cohuck/tags/s390x-20160324' into staging (diff)
downloadqemu-55efcc537d330f1659d3fa171a66eebc9327e91b.tar.gz
qemu-55efcc537d330f1659d3fa171a66eebc9327e91b.tar.xz
qemu-55efcc537d330f1659d3fa171a66eebc9327e91b.zip
vfio: convert to 128 bit arithmetic calculations when adding mem regions
vfio_listener_region_add for a iommu mr results in an overflow assert since iommu memory region is initialized with UINT64_MAX. Convert calculations to 128 bit arithmetic for iommu memory regions and let int128_get64 assert for non iommu regions if there's an overflow. Suggested-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Bandan Das <bsd@redhat.com> [missed (end - 1) on 2nd trace call, move llsize closer to use] Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'nbd/client.c')
0 files changed, 0 insertions, 0 deletions