Message ID | jpgk2mm7sm1.fsf@linux.bootlegged.copy |
---|---|
State | New |
Headers | show |
diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 607ec70..ce18f3f 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -349,7 +349,13 @@ static void vfio_listener_region_add(MemoryListener *listener, if (int128_ge(int128_make64(iova), llend)) { return; } - end = int128_get64(llend); + + if (int128_eq(llend, int128_2_64())) { + end = UINT64_MAX; + } else { + end = int128_get64(llend); + } and the rest of the stuff doesn't need changing. > Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>