diff options
author | Bandan Das | 2016-03-24 01:37:25 +0100 |
---|---|---|
committer | Alex Williamson | 2016-03-28 21:27:49 +0200 |
commit | 55efcc537d330f1659d3fa171a66eebc9327e91b (patch) | |
tree | 840c60f0b1c31235584f3fe827ebe9987f96df8d /nbd/client.c | |
parent | Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20160324' into staging (diff) | |
download | qemu-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