Revision 052e87b0 hw/virtio/virtio-balloon.c

b/hw/virtio/virtio-balloon.c
197 197

  
198 198
            /* FIXME: remove get_system_memory(), but how? */
199 199
            section = memory_region_find(get_system_memory(), pa, 1);
200
            if (!section.size || !memory_region_is_ram(section.mr))
200
            if (!int128_nz(section.size) || !memory_region_is_ram(section.mr))
201 201
                continue;
202 202

  
203 203
            /* Using memory_region_get_ram_ptr is bending the rules a bit, but

Also available in: Unified diff