Peter Xu <pet...@redhat.com> 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: qemu-sta...@nongnu.org > Reported-by: Thomas Huth <th...@redhat.com> > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1456 > Fixes: d9e474ea56 ("migration: Teach PSS about host page") > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com> queued