Revision 052e87b0 hw/misc/vfio.c

b/hw/misc/vfio.c
1953 1953
    }
1954 1954

  
1955 1955
    iova = TARGET_PAGE_ALIGN(section->offset_within_address_space);
1956
    end = (section->offset_within_address_space + section->size) &
1956
    end = (section->offset_within_address_space + int128_get64(section->size)) &
1957 1957
          TARGET_PAGE_MASK;
1958 1958

  
1959 1959
    if (iova >= end) {
......
1997 1997
    }
1998 1998

  
1999 1999
    iova = TARGET_PAGE_ALIGN(section->offset_within_address_space);
2000
    end = (section->offset_within_address_space + section->size) &
2000
    end = (section->offset_within_address_space + int128_get64(section->size)) &
2001 2001
          TARGET_PAGE_MASK;
2002 2002

  
2003 2003
    if (iova >= end) {

Also available in: Unified diff