diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index 4058d38c0..1a9b05b79 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -1150,17 +1150,6 @@ start_device(int vid) goto out; } - for (i = 0; i < vsession->mem->nregions; i++) { - uint64_t mmap_size = vsession->mem->regions[i].mmap_size; - - if (mmap_size & MASK_2MB) { - SPDK_ERRLOG("vhost device %d: Guest mmaped memory size %" PRIx64 - " is not a 2MB multiple\n", vid, mmap_size); - free(vsession->mem); - goto out; - } - } - /* * Not sure right now but this look like some kind of QEMU bug and guest IO * might be frozed without kicking all queues after live-migration. This look like