Peter Xu <[email protected]> wrote: > Commit d9e474ea56 overlooked the case where the target psize is even larger > than the host psize. One example is Alpha has 8K page size and migration > will start to crash the source QEMU when running Alpha migration on x86. > > Fix it by detecting that case and set host start/end just to cover the > single page to be migrated. > > This will slightly optimize the common case where host psize equals to > guest psize so we don't even need to do the roundups, but that's trivial. > > Cc: [email protected] > Reported-by: Thomas Huth <[email protected]> > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1456 > Fixes: d9e474ea56 ("migration: Teach PSS about host page") > Signed-off-by: Peter Xu <[email protected]>
Reviewed-by: Juan Quintela <[email protected]> queued
