On Tue, Dec 21, 2021 at 01:52:32PM +0100, Juan Quintela wrote: > -static void ram_release_pages(const char *rbname, uint64_t offset, int pages) > +static void ram_release_page(const char *rbname, uint64_t offset) > { > if (!migrate_release_ram() || !migration_in_postcopy()) { > return; > } > > - ram_discard_range(rbname, offset, ((ram_addr_t)pages) << > TARGET_PAGE_BITS); > + ram_discard_range(rbname, offset, 1ULL << TARGET_PAGE_BITS);
This is TARGET_PAGE_SIZE, afaict.. anyway, Reviewed-by: Peter Xu <pet...@redhat.com> -- Peter Xu