Skip to content
Snippets Groups Projects
  1. Aug 02, 2022
    • Richard Henderson's avatar
      Merge tag 'for-upstream' of git://repo.or.cz/qemu/kevin into staging · 0399521e
      Richard Henderson authored
      Block layer patches
      
      - libvduse: Coverity fixes
      - hd-geometry: Fix ignored bios-chs-trans setting
      - io_uring: Fix compiler warning (missing #include)
      - main loop: add missing documentation links to GS/IO macros
      - qemu-iotests: Discard stderr when probing devices
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJFBAABCAAvFiEE3D3rFZqa+V09dFb+fwmycsiPL9YFAmLpKDURHGt3b2xmQHJl
      # ZGhhdC5jb20ACgkQfwmycsiPL9ZMcA//buzWQl/AFL2VT5Fy3WpFCYDVp5mTPJ2q
      # bgkhCpn6i7UXIkML53hygfm7LN9Fj8Q8Ld4ljkETzljJajS3zsXvyY6bgNevQutX
      # 8WvkcUNWMb96DEgetInak2ebH6lhti6/V7lBfjNFG1yC2s8l+JoWIPqWfJqohdiN
      # D4+loa/wQx1ZS3TgKq8zAxfi5qbbGxRTZQUvuCJNYRryRQmJsZH380DzlIqkRJWt
      # b3rM7m9ElSpmcmwmztWkdK4E/2VYGknUQOnRpY0AUSUTcm/kaP7EVwh61+TdjlKL
      # NZxvZ08kenGFTBEA9z3ahnggcLypj4IYU3DB29CiJLjMjCb0s7tMwc8USYajN+GA
      # iDqkbK14mDd8auRDVbVcmnq34xzS0rJocpzT0Jo9zYo7oGe/r+JjaVWmWq0pZ2SE
      # QQuSPZXZokUdpL6E5X05+JZ+u6+G+iQz9UOhNpwmKB1ajiXUVKIst/SctpyKedOr
      # cJWB34tQxQIFB57s6K7wVMbSWPIumTwQc08EX0HoicT9pUMN7s+Z1jrCufudZ0ot
      # gx95v7gBDZZDsJim5qi3znA8tqnUmtL0yxkUVgv7LdQfIleEnEFfutFJpq/7VFe9
      # WRzXBQJPU451jF7Gvj/StA3+05qMr22mXW4CX6t96Ud6QHiR0mUBSGPRzYusIV4d
      # KYOjySU7cOg=
      # =axCN
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 02 Aug 2022 06:35:49 AM PDT
      # gpg:                using RSA key DC3DEB159A9AF95D3D7456FE7F09B272C88F2FD6
      # gpg:                issuer "kwolf@redhat.com"
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
      
      * tag 'for-upstream' of git://repo.or.cz/qemu/kevin
      
      :
        main loop: add missing documentation links to GS/IO macros
        qemu-iotests: Discard stderr when probing devices
        hw/block/hd-geometry: Do not override specified bios-chs-trans
        libvduse: Pass positive value to strerror()
        libvduse: Replace strcpy() with strncpy()
        libvduse: Fix the incorrect function name
        block/io_uring: add missing include file
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      0399521e
    • Emanuele Giuseppe Esposito's avatar
      main loop: add missing documentation links to GS/IO macros · 21b1d974
      Emanuele Giuseppe Esposito authored
      
      If we go directly to GLOBAL_STATE_CODE, IO_CODE or IO_OR_GS_CODE
      definition, we just find that they "mark and check that the function
      is part of the {category} API".
      However, ther is no definition on what {category} API is, they are
      in include/block/block-*.h
      Therefore, add a comment that refers to such documentation.
      
      Signed-off-by: default avatarEmanuele Giuseppe Esposito <eesposit@redhat.com>
      Message-Id: <20220609122206.1016936-1-eesposit@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      21b1d974
    • Cole Robinson's avatar
      qemu-iotests: Discard stderr when probing devices · e13fe274
      Cole Robinson authored
      
      qemu-iotests fails in the following setup:
      
        ./configure --enable-modules --enable-smartcard \
            --target-list=x86_64-softmmu,s390x-softmmu
        make
        cd build
        QEMU_PROG=`pwd`/s390x-softmmu/qemu-system-s390x \
            ../tests/check-block.sh qcow2
        ...
        --- /home/crobinso/src/qemu/tests/qemu-iotests/127.out
        +++ /home/crobinso/src/qemu/build/tests/qemu-iotests/scratch/127.out.bad
        @@ -1,4 +1,18 @@
         QA output created by 127
        +Failed to open module: /home/crobinso/src/qemu/build/hw-usb-smartcard.so: undefined symbol: ccid_card_ccid_attach
        ...
        --- /home/crobinso/src/qemu/tests/qemu-iotests/267.out
        +++ /home/crobinso/src/qemu/build/tests/qemu-iotests/scratch/267.out.bad
        @@ -1,4 +1,11 @@
         QA output created by 267
        +Failed to open module: /home/crobinso/src/qemu/build/hw-usb-smartcard.so: undefined symbol: ccid_card_ccid_attach
      
      The stderr spew is its own known issue, but seems like iotests should
      be discarding stderr in this case.
      
      Signed-off-by: default avatarCole Robinson <crobinso@redhat.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      e13fe274
    • Lev Kujawski's avatar
      hw/block/hd-geometry: Do not override specified bios-chs-trans · fd8a68ad
      Lev Kujawski authored
      For small disk images (<4 GiB), QEMU and SeaBIOS default to the
      LARGE/ECHS disk translation method, but it is not uncommon for other
      BIOS software to use LBA in these cases as well.  Some operating
      system boot loaders (e.g., NT 4) do not handle LARGE translations
      outside of fixed configurations.  See, e.g., Q154052:
      
      "When starting an x86 based computer, Ntdetect.com retrieves and
      stores Interrupt 13 information. . . If the disk controller is using a
      32 sector/64 head translation scheme, this boundary will be 1 GB. If
      the controller uses 63 sector/255 head translation [AUTHOR: i.e.,
      LBA], the limit will be 4 GB."
      
      To accommodate these situations, hd_geometry_guess() now follows the
      disk translation specified by the user even when the ATA disk geometry
      is guessed.
      
      hd_geometry_guess():
      * Only set the disk translation when translation is AUTO.
      * Show the soon-to-be active translation (*ptrans) in the trace rather
        than what was guessed.
      
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/56
      Buglink: https://bugs.launchpad.net/qemu/+bug/1745312
      
      
      
      Signed-off-by: default avatarLev Kujawski <lkujaw@member.fsf.org>
      Message-Id: <20220707204045.999544-1-lkujaw@member.fsf.org>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      fd8a68ad
    • Xie Yongji's avatar
      libvduse: Pass positive value to strerror() · 630179b7
      Xie Yongji authored
      
      The value passed to strerror() should be positive.
      So let's fix it.
      
      Fixes: Coverity CID 1490226, 1490223
      Signed-off-by: default avatarXie Yongji <xieyongji@bytedance.com>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20220706095624.328-4-xieyongji@bytedance.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      630179b7
    • Xie Yongji's avatar
      libvduse: Replace strcpy() with strncpy() · d9cf16c0
      Xie Yongji authored
      
      Coverity reported a string overflow issue since we copied
      "name" to "dev_config->name" without checking the length.
      This should be a false positive since we already checked
      the length of "name" in vduse_name_is_invalid(). But anyway,
      let's replace strcpy() with strncpy() (as a general library,
      we'd like to minimize dependencies on other libraries, so we
      didn't use g_strlcpy() here) to fix the coverity complaint.
      
      Fixes: Coverity CID 1490224
      Signed-off-by: default avatarXie Yongji <xieyongji@bytedance.com>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20220706095624.328-3-xieyongji@bytedance.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      d9cf16c0
    • Xie Yongji's avatar
      libvduse: Fix the incorrect function name · e7156ff7
      Xie Yongji authored
      
      In vduse_name_is_valid(), we actually check whether
      the name is invalid or not. So let's change the
      function name to vduse_name_is_invalid() to match
      the behavior.
      
      Signed-off-by: default avatarXie Yongji <xieyongji@bytedance.com>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20220706095624.328-2-xieyongji@bytedance.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      e7156ff7
    • Jinhao Fan's avatar
      block/io_uring: add missing include file · 77e3f038
      Jinhao Fan authored
      
      The commit "Use io_uring_register_ring_fd() to skip fd operations" uses
      warn_report but did not include the header file "qemu/error-report.h".
      This causes "error: implicit declaration of function ‘warn_report’".
      Include this header file.
      
      Fixes: e2848bc5 ("Use io_uring_register_ring_fd() to skip fd operations")
      Signed-off-by: default avatarJinhao Fan <fanjinhao21s@ict.ac.cn>
      Message-Id: <20220721065645.577404-1-fanjinhao21s@ict.ac.cn>
      Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      77e3f038
    • Richard Henderson's avatar
      Merge tag 'pull-riscv-to-apply-20220802' of github.com:alistair23/qemu into staging · 9b00d279
      Richard Henderson authored
      
      Seventh RISC-V PR for QEMU 7.1
      
      This is a second PR to go in for RC1. It fixes a bug we have had
      for awhile, but it's a simple fix so let's pull it in for RC1.
      
      * linux-user/riscv: Align signal frame to 16 bytes
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCAAdFiEE9sSsRtSTSGjTuM6PIeENKd+XcFQFAmLoWxwACgkQIeENKd+X
      # cFTePAf8Ci1TmiEzZ8eZo/+3EGIU4sNk749bFUhkUeQa2fB8IwCBAOG4nMyX/DvT
      # 4nmkzFjJIWu2FQ8KJ9oJPnb8kZD4fKsAPCUX7bDV9hk9Pv26ReZbgwUgme8v9ehM
      # l28BH8zxvUAZgj3TIG96k+X/k9dBjPMvhmcukym+HSdznyCXiUEwENC5WIsI4ARC
      # jK295wItcH23SMOSgvFYE/JUNxbTqNvBu76OaUqjnasNOC4QfcJK+HTU0Uu9tVIN
      # CUrUjnu2sJApmFEyRfz4mQ+2DvINffXTtCvcyIhVF//EG698joFxcyi/cHLZBf7i
      # h3WCBDHIINe1gZlmhWfpBDtRd9KQjQ==
      # =o+Uw
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 01 Aug 2022 04:00:44 PM PDT
      # gpg:                using RSA key F6C4AC46D4934868D3B8CE8F21E10D29DF977054
      # gpg: Good signature from "Alistair Francis <alistair@alistair23.me>" [undefined]
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: F6C4 AC46 D493 4868 D3B8  CE8F 21E1 0D29 DF97 7054
      
      * tag 'pull-riscv-to-apply-20220802' of github.com:alistair23/qemu:
        linux-user/riscv: Align signal frame to 16 bytes
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      9b00d279
  2. Aug 01, 2022
  3. Jul 31, 2022
  4. Jul 30, 2022
    • Richard Henderson's avatar
      Merge tag 'pull-la-20220729' of https://gitlab.com/rth7680/qemu into staging · 3916603e
      Richard Henderson authored
      Rename ls7a to virt, when it's board not chipset related.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmLkfO8dHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV9UvAgAud1jhWBalaON0be6
      # tC3UMB2Xe5Dzgm5yiLC7EspHci/HB/kSqbeXY436/hbU9iBXGEZkuTeQ1BX41Aq8
      # D8LBzFAr35uySD5wfZbDdpefCvuBiDcb1SMpNXLC4I3zJj0Euj96j/IewIeJfGrc
      # 0ZkJSq4jAOuPaU0NB1+Wmb9UsoMWhHQQOcIdz8ZpR0hjuU8yz7xAEGQosJNh/Acq
      # Fdm6jDCOH4KY+uw/6dKF9poeSqpBDz3rCLicNNk6D+btDQybb2NzaVHE5ApLGRbW
      # T0MnOf1ERoWTubAbJasKR/ODCt6Jby3kC9lZFsfOAqKjRXMYL/HexdJcM2UqKE9W
      # E0aFjQ==
      # =c3v3
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 29 Jul 2022 05:35:59 PM PDT
      # gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
      # gpg:                issuer "richard.henderson@linaro.org"
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [ultimate]
      
      * tag 'pull-la-20220729' of https://gitlab.com/rth7680/qemu
      
      :
        hw/loongarch: Change macro name 'LS7A_XXX' to 'VIRT_XXX'
        hw/loongarch: Rename file 'loongson3.XXX' to 'virt.XXX'
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      3916603e
  5. Jul 29, 2022
Loading