diff options
| author | Bandan Das <bsd@redhat.com> | 2016-03-23 20:37:25 -0400 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2016-03-28 13:27:49 -0600 |
| commit | 55efcc537d330f1659d3fa171a66eebc9327e91b (patch) | |
| tree | 840c60f0b1c31235584f3fe827ebe9987f96df8d /hw/misc/mips_cpc.c | |
| parent | b68a80139e37e806f004237e55311ebc42151434 (diff) | |
| download | focaccia-qemu-55efcc537d330f1659d3fa171a66eebc9327e91b.tar.gz focaccia-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 'hw/misc/mips_cpc.c')
0 files changed, 0 insertions, 0 deletions