Skip to content
Snippets Groups Projects
  1. Sep 11, 2023
  2. Sep 08, 2023
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu into staging · c5ea91da
      Stefan Hajnoczi authored
      trivial patches for 2023-09-08
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFDBAABCAAtFiEEe3O61ovnosKJMUsicBtPaxppPlkFAmT68tMPHG1qdEB0bHMu
      # bXNrLnJ1AAoJEHAbT2saaT5ZbEwH/2XcX1f4KcEJbgUn0JVhGQ5GH2c2jepZlkTZ
      # 2dhvdEECbOPMg73hty0fyyWlyuLWdJ9cMpONfMtzmHTH8RKEOAbpn/zusyo3H+48
      # 6cunyUpBqbmb7MHPchrN+JmvtvaSPSazsj2Zdkh+Y4WlfEYj+yVysQ4zQlBlRyHv
      # iOTi6OdjxXg1QcbtJxAUhp+tKaRJzagiCpLkoyW2m8DIuV9cLVHMJsE3OMgfKNgK
      # /S+O1fLcaDhuSCrHAbZzArF3Tr4bfLqSwDtGCJfQpqKeIQDJuI+41GLIlm1nYY70
      # IFJzEWMOrX/rcMG1CQnUFZOOyDSO+NfILwNnU+eyM49MUekmY54=
      # =mmPS
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 08 Sep 2023 06:09:23 EDT
      # gpg:                using RSA key 7B73BAD68BE7A2C289314B22701B4F6B1A693E59
      # gpg:                issuer "mjt@tls.msk.ru"
      # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>" [full]
      # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>" [full]
      # gpg:                 aka "Michael Tokarev <mjt@debian.org>" [full]
      # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
      #      Subkey fingerprint: 7B73 BAD6 8BE7 A2C2 8931  4B22 701B 4F6B 1A69 3E59
      
      * tag 'pull-trivial-patches' of https://gitlab.com/mjt0k/qemu
      
      : (22 commits)
        qxl: don't assert() if device isn't yet initialized
        hw/net/vmxnet3: Fix guest-triggerable assert()
        tests/qtest/usb-hcd: Remove the empty "init" tests
        target/ppc: use g_free() in test_opcode_table()
        hw/ppc: use g_free() in spapr_tce_table_post_load()
        trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value
        accel/tcg: Fix typo in translator_io_start() description
        tests/qtest/test-hmp: Fix migrate_set_parameter xbzrle-cache-size test
        docs tests: Fix use of migrate_set_parameter
        qemu-options.hx: Rephrase the descriptions of the -hd* and -cdrom options
        hw/display/xlnx_dp: update comments
        block: spelling fixes
        misc/other: spelling fixes
        qga/: spelling fixes
        tests/: spelling fixes
        scripts/: spelling fixes
        include/: spelling fixes
        audio: spelling fixes
        xen: spelling fix
        riscv: spelling fixes
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      c5ea91da
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-nbd-2023-09-07-v2' of https://repo.or.cz/qemu/ericb into staging · 0b63052a
      Stefan Hajnoczi authored
      NBD patches for 2023-09-07
      
      - Andrey Drobyshev - fix regression in iotest 197 under -nbd
      - Stefan Hajnoczi - allow coroutine read and write context to split
      across threads
      - Philippe Mathieu-Daudé - remove a VLA allocation
      - Denis V. Lunev - fix regression in iotest 233 with qemu-nbd -v --fork
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAmT7EsUACgkQp6FrSiUn
      # Q2qiKgf9EqCWPmcsH2nvXrDvZmDc0/I4tineaNY+hSdPtSb6RFA1IH8AvzkrkPYU
      # 9ojX6QFp1Z30fUs+pwweQhBMYta03QyjCFhsbPRmDq391dtIDCeww3o+RD1kw/pg
      # 2ZC+P9N1U3pi2Hi8FhxH17GYYgOQnHMKM9gt1V7JOQvFsDFWbTo9sFj8p/BPoWxV
      # I3TeLQDWqVnNjf57lG2pwhdKc8DbKoqRmA3XNiXiKI5inEBeRJsTdMMGn4YWpwJE
      # Y5imM/PbyCqRKQ6MYyJenVk4QVTe1IKO6D4vf1ZHLDBEiaw9NaeYHlk6lnDC4O9v
      # PeTycAwND6cMKYlKMyEzcJXv9IdRBw==
      # =jAZi
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 08 Sep 2023 08:25:41 EDT
      # gpg:                using RSA key 71C2CC22B1C4602927D2F3AAA7A16B4A2527436A
      # gpg: Good signature from "Eric Blake <eblake@redhat.com>" [full]
      # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>" [full]
      # gpg:                 aka "[jpeg image of size 6874]" [full]
      # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
      
      * tag 'pull-nbd-2023-09-07-v2' of https://repo.or.cz/qemu/ericb
      
      :
        qemu-nbd: document -v behavior in respect to --fork in man
        qemu-nbd: Restore "qemu-nbd -v --fork" output
        qemu-nbd: invent nbd_client_release_pipe() helper
        qemu-nbd: put saddr into into struct NbdClientOpts
        qemu-nbd: move srcpath into struct NbdClientOpts
        qemu-nbd: define struct NbdClientOpts when HAVE_NBD_DEVICE is not defined
        qemu-nbd: improve error message for dup2 error
        util/iov: Avoid dynamic stack allocation
        io: follow coroutine AioContext in qio_channel_yield()
        io: check there are no qio_channel_yield() coroutines during ->finalize()
        nbd: drop unused nbd_start_negotiate() aio_context argument
        nbd: drop unused nbd_receive_negotiate() aio_context argument
        qemu-iotests/197: use more generic commands for formats other than qcow2
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      0b63052a
    • Denis V. Lunev's avatar
      qemu-nbd: document -v behavior in respect to --fork in man · 35e087de
      Denis V. Lunev authored
      
      Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
      CC: Eric Blake <eblake@redhat.com>
      CC: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
      Message-ID: <20230906093210.339585-8-den@openvz.org>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      [eblake: Wording improvement]
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      35e087de
    • Denis V. Lunev's avatar
      qemu-nbd: Restore "qemu-nbd -v --fork" output · f6f4620c
      Denis V. Lunev authored
      
      Closing stderr earlier is good for daemonized qemu-nbd under ssh
      earlier, but breaks the case where -v is being used to track what is
      happening in the server, as in iotest 233.
      
      When we know we are verbose, we should preserve original stderr and
      restore it once the setup stage is done. This commit restores the
      original behavior with -v option. In this case original output
      inside the test is kept intact.
      
      Reported-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
      CC: Eric Blake <eblake@redhat.com>
      CC: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
      CC: Hanna Reitz <hreitz@redhat.com>
      CC: Mike Maslenkin <mike.maslenkin@gmail.com>
      Fixes: 5c56dd27 ("qemu-nbd: fix regression with qemu-nbd --fork run over ssh")
      Message-ID: <20230906093210.339585-7-den@openvz.org>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Tested-by: default avatarEric Blake <eblake@redhat.com>
      [eblake: fix build by avoiding stderr as struct member name]
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      f6f4620c
    • Stefan Hajnoczi's avatar
      Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging · 2f352bc2
      Stefan Hajnoczi authored
      Pull request
      
      - Jeuk Kim's emulated UFS device
      - Fabiano Rosas' IOThread GSource "name" debugging aid
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmT6E3YACgkQnKSrs4Gr
      # c8g3NwgAxVSzxS6hGCs6hKjRJ6f8HIlBWWbeO273XWbuAsMUbbYYAw7Gx6bzrbnb
      # NFdFZ4F3M0lOfIaGFONasA4Wo2rIuiWVfj6Es4pcYjnexF0OmhAib2RLLEtuDlyc
      # EJB/s4Mo2Xk+aw8LzQoYJVvDYi+hTZMmaHaQmNAsYLyQmsN/zg5iEE/vMDqVCNOs
      # trv9rMGOJBblzJ4bqgItJ80nSVaEbwErpiU1+NTY77dpTeIt/3nq7yGAo+h4rVpc
      # Tv4IuH8y6Rb9xjlwSANL2YKS2VOuJc5J/G5vpM63T4O2yzYSosTsU+ET/ZqB2U1H
      # v0uT9K2akfsTOFR8rUaroFsXha8IMQ==
      # =6SqP
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 07 Sep 2023 14:16:22 EDT
      # gpg:                using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [ultimate]
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>" [ultimate]
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * tag 'block-pull-request' of https://gitlab.com/stefanha/qemu
      
      :
        tests/qtest: Introduce tests for UFS
        hw/ufs: Support for UFS logical unit
        hw/ufs: Support for Query Transfer Requests
        hw/ufs: Initial commit for emulated Universal-Flash-Storage
        iothread: Set the GSource "name" field
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      2f352bc2
    • Marc-André Lureau's avatar
      qxl: don't assert() if device isn't yet initialized · 95bef686
      Marc-André Lureau authored
      If the PCI BAR isn't yet mapped or was unmapped, QXL_IO_SET_MODE will
      assert(). Instead, report a guest bug and keep going.
      
      This can be reproduced with:
      
      cat << EOF | ./qemu-system-x86_64 -vga qxl -m 2048 -nodefaults -qtest stdio
      outl 0xcf8 0x8000101c
      outl 0xcfc 0xc000
      outl 0xcf8 0x80001001
      outl 0xcfc 0x01000000
      outl 0xc006 0x00
      EOF
      
      Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1829
      
      
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      95bef686
    • Thomas Huth's avatar
      hw/net/vmxnet3: Fix guest-triggerable assert() · 90a07784
      Thomas Huth authored
      The assert() that checks for valid MTU sizes can be triggered by
      the guest (e.g. with the reproducer code from the bug ticket
      https://gitlab.com/qemu-project/qemu/-/issues/517
      
       ). Let's avoid
      this problem by simply logging the error and refusing to activate
      the device instead.
      
      Fixes: d05dcd94 ("net: vmxnet3: validate configuration values during activate")
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Cc: qemu-stable@nongnu.org
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      [Mjt: change format specifier from %d to %u for uint32_t argument]
      90a07784
    • Thomas Huth's avatar
      tests/qtest/usb-hcd: Remove the empty "init" tests · 0084f683
      Thomas Huth authored
      
      These tests do nothing additional compared to the other test,
      so let's remove the empty functions to avoid wasting some few
      precious test cycles here.
      
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      0084f683
    • Daniel Henrique Barboza's avatar
      target/ppc: use g_free() in test_opcode_table() · 95eac43c
      Daniel Henrique Barboza authored
      
      table[i] is allocated in create_new_table() using g_new().
      
      Use g_free(table[i]) instead of free(table[i]) to comply with QEMU low
      level memory management guidelines.
      
      Signed-off-by: default avatarDaniel Henrique Barboza <danielhb413@gmail.com>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      [Mjt: minor commit comment tweak]
      95eac43c
    • Daniel Henrique Barboza's avatar
      hw/ppc: use g_free() in spapr_tce_table_post_load() · 44adcaac
      Daniel Henrique Barboza authored
      
      tcet->mig_table is copied from tcet->table, which in turn is created
      in spapr_tce_alloc_table() using g_new0().
      
      Use g_free() instead of free() to deallocate it.
      
      Signed-off-by: default avatarDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      [Mjt: fix commit comments]
      44adcaac
    • Thomas Huth's avatar
      trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value · ded625e7
      Thomas Huth authored
      
      TARGET_BIG_ENDIAN is *always* defined, either as 0 for little endian
      targets or as 1 for big endian targets. So we can use this as a value
      directly in places that need such a 0 or 1 for some reason, instead
      of taking a detour through an additional local variable or something
      similar.
      
      Suggested-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      ded625e7
Loading