Skip to content
Snippets Groups Projects
  1. Feb 16, 2023
    • Avihai Horon's avatar
      linux-headers: Update to v6.2-rc8 · 93d7620c
      Avihai Horon authored
      
      Update to commit ceaa837f96ad ("Linux 6.2-rc8").
      
      Signed-off-by: default avatarAvihai Horon <avihaih@nvidia.com>
      Link: https://lore.kernel.org/r/20230216143630.25610-2-avihaih@nvidia.com
      
      
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      93d7620c
    • Peter Maydell's avatar
      Merge tag 'migration-20230215-pull-request' of https://gitlab.com/juan.quintela/qemu into staging · 6dffbe36
      Peter Maydell authored
      Migration Pull request
      
      This pull request contains:
      
      * Add qemu_file_get_to_fd() a.k.a. make vfio happy(Avihai)
      * migration/block is now DPRINTF() free zone (Philippe)
      * remove res_compat and improve docs (me)
      
      Please apply.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEGJn/jt6/WMzuA0uC9IfvGFhy1yMFAmPtOxgACgkQ9IfvGFhy
      # 1yM+8w/+Nrm40o8B+0M1X/2O8SPaXE0Oxll5qk5AgfC+2Ef/n5661ZzOM1xQcqzv
      # CN3bj3g7dKN05nGhqW5ZFrEZliJCGksx2FBKMq9H6R5YBSMo/+GHT4ugPqsujudl
      # RBafIHzp4h4nTh/4aJ4Kr2Vn/bVQzGVyv5c6yUdUhKhE1QfCLu9AMC5vN1hfWxBz
      # IQBvMkLNXXhWOTdkVAElVlFOM6GZzWb1UYDkBaQHjjw/dN0MdCFFj7tIaBIyU2Eb
      # KyQCoYeJjjWrljsrfzfCucrW+mbVGmCe1TiCEnaAmmgzOI0NwARmUcdYdCyZ4Nhh
      # flNjpqQB6H4/ekI0mus2YPMPEkHyVgBMuF8fHV3YDwxcQ25U39RLymVfAoKPNg88
      # S1EcQ9h2QVqdML7bR9vTmPOZKk5vD25H7B8LQIJpT8PHVg3ZzzRaOIR8UHmmFXx/
      # PSL1rGfPcCLJ3P1XlVjwBApebMHyid9c+Sohda9L9HPer0jlB+mGQUEV8J67DJiT
      # xlffFgJmYu3+AJu9BoqrG0AUW6zA78jSs4Tbp78qbIVA4uzGkWI9JvROMfG9Qcc7
      # vruuL0sUXHVUhzW2F+0M+b1rVhaHHQYvFo3mIqdHrd5mGicdgh1HUbaJuEJxeJnh
      # oFt6SZbIx3N/pllcvMsxQa+rFI/po+FEkRwIF02SzTRWYHB0qos=
      # =KpKO
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 15 Feb 2023 20:05:44 GMT
      # gpg:                using RSA key 1899FF8EDEBF58CCEE034B82F487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>" [full]
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>" [full]
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * tag 'migration-20230215-pull-request' of https://gitlab.com/juan.quintela/qemu
      
      :
        migration: Rename res_{postcopy,precopy}_only
        migration: Remove unused res_compatible
        migration: In case of postcopy, the memory ends in res_postcopy_only
        migration/block: Convert remaining DPRINTF() debug macro to trace events
        migration/qemu-file: Add qemu_file_get_to_fd()
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      6dffbe36
    • Peter Maydell's avatar
      Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging · 003ba52a
      Peter Maydell authored
      * block/iscsi: fix double-free on BUSY or similar statuses
      * catch [accel] entry without accelerator
      * target/i386: various fixes for BMI and ADX instructions
      * make the contents of meson-buildoptions.sh stable
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFIBAABCAAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmPpDTcUHHBib256aW5p
      # QHJlZGhhdC5jb20ACgkQv/vSX3jHroODWAgAhWi0XSBe91+34ahQqx6JoLStNX9e
      # xy1Cm/5LPDrDquD/4T6gnzb1Min/X2AsVu9c+VIbuHbL/rFc7aNIEL6c7KzwSFLs
      # vEDF7tSnlIMK0ClDsDYBz7HUIgBgqE2crAJmTJus2Cqd+Ef5bMxhQi5Imrk6qtmO
      # HRdVYEGasJ7CO50oUB91AMrNInWQw0qBnBOB8TnwTLTcvE1txa+xnZuZgQA2HrGX
      # OweLdKRcYPvRYvBB3wLMbwqEKbD1eYbdbNt7T2KkuVQpYcgfoCpayHIIMroD+hvu
      # BImmG9wWieDKH4Brs765gH6/3VF5UZKbgDQo9Wz+W/5QqnqRSsOYBiMkmA==
      # =G3PN
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Sun 12 Feb 2023 16:00:55 GMT
      # gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
      # gpg:                issuer "pbonzini@redhat.com"
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * tag 'for-upstream' of https://gitlab.com/bonzini/qemu
      
      :
        libqtest: ensure waitpid() is only called once
        libqtest: split qtest_spawn_qemu function
        target/i386: fix ADOX followed by ADCX
        target/i386: Fix C flag for BLSI, BLSMSK, BLSR
        target/i386: Fix BEXTR instruction
        tests/tcg/i386: Introduce and use reg_t consistently
        vl: catch [accel] entry without accelerator
        block/iscsi: fix double-free on BUSY or similar statuses
        remove unnecessary extern "C" blocks
        build: make meson-buildoptions.sh stable
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      003ba52a
  2. Feb 15, 2023
  3. Feb 14, 2023
  4. Feb 13, 2023
    • Peter Maydell's avatar
      Merge tag 'migration-20230213-pull-request' of https://gitlab.com/juan.quintela/qemu into staging · f670b3ee
      Peter Maydell authored
      
      Migration Pull request (take3)
      
      Hi
      
      In this PULL request:
      - Added to leonardo fixes:
      Fixes: b5eea99e ("migration: Add yank feature")
      Reported-by: default avatarLi Xiaohui <xiaohli@redhat.com>
      
      Please apply.
      
      [take 2]
      - rebase to latest upstream
      - fix compilation of linux-user (if have_system was missing) (me)
      - cleanup multifd_load_cleanup(leonardo)
      - Document RAM flags (me)
      
      Please apply.
      
      [take 1]
      This are all the reviewed patches for migration:
      - AVX512 support for xbzrle (Ling Xu)
      - /dev/userfaultd support (Peter Xu)
      - Improve ordering of channels (Peter Xu)
      - multifd cleanups (Li Zhang)
      - Remove spurious files from last merge (me)
        Rebase makes that to you
      - Fix mixup between state_pending_{exact,estimate} (me)
      - Cache RAM size during migration (me)
      - cleanup several functions (me)
      
      Please apply.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEGJn/jt6/WMzuA0uC9IfvGFhy1yMFAmPppZYACgkQ9IfvGFhy
      # 1yPLvQ//f8D6txzFawaxrfzpSAHnq70Gx+B5GkIwgwB8nlPIC3QELEf5uooM/RGA
      # nSaUctUNOJUWqVGK3vp3jDIep02DzdIUrlOfy96h+pnTMpyMWFC2BexDfveVMUId
      # dw8WCWZkGCFDfIWuKF+GA8eTu6HM1ouzgCJrRmPtCqsikzAPkogPm60hQSTAQxm9
      # Kzdp1SXV1HmyA440vy8rtYf71BKpvb9OJFmwgZ+ICy0rc1aUmgJbKxkwyOgiI2lq
      # ONekpbOg7lzlFVAQu1QHTmYN13bsn4uzwUgdifn1PixFQyRE3AVs4jdTmqeLnoPe
      # Ac6j8v3pDOw/Xf4kpRWUmhkqTMEJt8/lyneJzu1mQkw0wwiUtDvknFgPG8wJsa+J
      # ZQr1cBXQj4IjtkN6+ixF7XYvx3T6pWz0L+/w2+TbFBdLWIrPgFH0yPYjhx7FdDid
      # cjUHyS1a0w9ngnXOxRG8+UNHWCpPOUhXeeiyNioogYZNKu77PFxJVDMe3eB6dXAB
      # pDfl4P129PloKAPafcz9E6Sxr+lIgrETZmsRJlRz4czg18TxlIukMlDtyrepNWti
      # GtIf9xTpP3JKjpHnKbWLaxP5VeFC7kQd0qas4VxD+tDjbJdUZdZMfHcOSS0SMRGe
      # q5LVEzMMIPCQJQIqiLEJ0HTUUOtB8i+bGoirNEbDqhLa/oZwPP8=
      # =TDnO
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 13 Feb 2023 02:51:02 GMT
      # gpg:                using RSA key 1899FF8EDEBF58CCEE034B82F487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>" [full]
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>" [full]
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * tag 'migration-20230213-pull-request' of https://gitlab.com/juan.quintela/qemu
      
      : (22 commits)
        ram: Document migration ram flags
        migration/multifd: Move load_cleanup inside incoming_state_destroy
        migration/multifd: Join all multifd threads in order to avoid leaks
        migration/multifd: Remove unnecessary assignment on multifd_load_cleanup()
        migration/multifd: Change multifd_load_cleanup() signature and usage
        migration: Postpone postcopy preempt channel to be after main
        migration: Add a semaphore to count PONGs
        migration: Cleanup postcopy_preempt_setup()
        migration: Rework multi-channel checks on URI
        Update bench-code for addressing CI problem
        AVX512 support for xbzrle_encode_buffer
        migration: I messed state_pending_exact/estimate
        migration: Make ram_save_target_page() a pointer
        migration: Calculate ram size once
        migration: Split ram_bytes_total_common() in two functions
        migration: Make find_dirty_block() return a single parameter
        migration: Simplify ram_find_and_save_block()
        util/userfaultfd: Support /dev/userfaultfd
        linux-headers: Update to v6.1
        multifd: Remove some redundant code
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      f670b3ee
    • Juan Quintela's avatar
      ram: Document migration ram flags · 7b548761
      Juan Quintela authored
      
      0x80 is RAM_SAVE_FLAG_HOOK, it is in qemu-file now.
      Bigger usable flag is 0x200, noticing that.
      We can reuse RAM_SAVe_FLAG_FULL.
      
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      7b548761
    • Leonardo Bras's avatar
      migration/multifd: Move load_cleanup inside incoming_state_destroy · cfc3bcf3
      Leonardo Bras authored
      
      Currently running migration_incoming_state_destroy() without first running
      multifd_load_cleanup() will cause a yank error:
      
      qemu-system-x86_64: ../util/yank.c:107: yank_unregister_instance:
      Assertion `QLIST_EMPTY(&entry->yankfns)' failed.
      (core dumped)
      
      The above error happens in the target host, when multifd is being used
      for precopy, and then postcopy is triggered and the migration finishes.
      This will crash the VM in the target host.
      
      To avoid that, move multifd_load_cleanup() inside
      migration_incoming_state_destroy(), so that the load cleanup becomes part
      of the incoming state destroying process.
      
      Running multifd_load_cleanup() twice can become an issue, though, but the
      only scenario it could be ran twice is on process_incoming_migration_bh().
      So removing this extra call is necessary.
      
      On the other hand, this multifd_load_cleanup() call happens way before the
      migration_incoming_state_destroy() and having this happening before
      dirty_bitmap_mig_before_vm_start() and vm_start() may be a need.
      
      So introduce a new function multifd_load_shutdown() that will mainly stop
      all multifd threads and close their QIOChannels. Then use this function
      instead of multifd_load_cleanup() to make sure nothing else is received
      before dirty_bitmap_mig_before_vm_start().
      
      Fixes: b5eea99e ("migration: Add yank feature")
      Reported-by: default avatarLi Xiaohui <xiaohli@redhat.com>
      Signed-off-by: default avatarLeonardo Bras <leobras@redhat.com>
      Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      cfc3bcf3
Loading