David Hildenbrand <da...@redhat.com> wrote: > If something goes wrong during uffd_change_protection(), we would miss > to unregister uffd-wp and not release our reference. Fix it by > performing the uffd_change_protection(true) last. > > Note that a uffd_change_protection(false) on the recovery path without a > prior uffd_change_protection(false) is fine. > > Fixes: 278e2f551a09 ("migration: support UFFD write fault processing in > ram_save_iterate()") > Cc: qemu-sta...@nongnu.org > Signed-off-by: David Hildenbrand <da...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>