migration: Make sure that we pass the right cache size
commitbab01ed4e87a75ce2e779cf0a79b74ca97fd29ea
authorJuan Quintela <quintela@redhat.com>
Fri, 6 Oct 2017 20:58:44 +0000 (6 22:58 +0200)
committerJuan Quintela <quintela@redhat.com>
Sun, 29 Oct 2017 13:06:15 +0000 (29 14:06 +0100)
treefdd7a3163360de563a5bed95ccd238e7bc1f95c8
parenta93ece47fd9edbd4558db24300056c9a57d3bcd4
migration: Make sure that we pass the right cache size

Instead of passing silently round down the number of pages, make it an
error that the cache size is not a power of 2.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/page_cache.c