util/vfio-helpers: Extract qemu_vfio_water_mark_reached()