Skip to content
Snippets Groups Projects
  1. Aug 05, 2022
  2. Aug 04, 2022
  3. Aug 03, 2022
    • Richard Henderson's avatar
      Merge tag 'linux-user-for-7.1-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging · 2480f3bb
      Richard Henderson authored
      Pull request linux-user 20220803
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmLqjIMSHGxhdXJlbnRA
      # dml2aWVyLmV1AAoJEPMMOL0/L748bpAP/1HW4wQztNCDL2epXGtDMTHFIjsLlc05
      # h/3BwnXXXbRv/m4+IEJLITI5WpyZ24CGgA5kIFPRDxLCIHxcTo5etzqkJzxhnRvU
      # MNP3m8L5gSAUUZhD8Xw2b95V8vOv4cu8J+sgub8ZaRXJpcHK1cuCF43OeI3bBuoz
      # HNVY8XHl0E46JyXQmK9/phBRSK8INhlMIORd+k/GzSx7+9/UdIqTj1kVpdgbQ8we
      # GqrnVW9hYA2T2vUL3SEV8t6GE6lSGRr9bvsyRRfLxJanUEQbGmbJPvqBwjamRwUF
      # xZOBou/cYQOoI9AVku9bL+h2ITGfrfNZ8Oo7r7oOrz+ZjBfL9hUQqhFhI/oI265n
      # 4ivzdOcsXH6OT7X+JdZRvyv6pxVL7ycu2KCKvmnNvQSocGHT1OvFqIHAWd+NAdEr
      # c4q1ob1QdUfZjrzjzLR/qY2NPZat1Ge5lSIXOwC1G3T5umuw8cV7BV9KJJRoQXfE
      # AWeXsLKqqByQ59z+qObnFIkUXLaUOzKMjHNFpDGSqk+dzXxQYJtBn+b8ZLoL9MLa
      # miIN9imVzI2gzolIBz9Za2pnBw72bIR2PdXd3zfKH0cqmytOhKlMIEK4KJcB6kMB
      # CNAbszUwrmBSopGGryf+hLMk9VsPLVUg+Yqnc6/GLY8LF9d8Xr5rd8UzelYowBuh
      # 3UR/V06U2Skv
      # =41sQ
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 03 Aug 2022 07:56:03 AM PDT
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [undefined]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [undefined]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [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: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * tag 'linux-user-for-7.1-pull-request' of https://gitlab.com/laurent_vivier/qemu
      
      :
        linux-user: Use memfd for open syscall emulation
        linux-user: Do not treat madvise()'s advice as a bitmask
        linux-user/flatload.c: Fix setting of image_info::end_code
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      2480f3bb
    • Richard Henderson's avatar
    • Richard Henderson's avatar
      Merge tag 'pull-semi-20220802' of https://gitlab.com/rth7680/qemu into staging · b15bd453
      Richard Henderson authored
      Fix mips semihosting regression.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmLpx/EdHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV8d2Qf+PO1v5r5HDZYVYyhZ
      # moew0E+XKv+Tzw9zjHlarC75pxMfFWbkUzKXvrsvGRg/MKo+VQyLC65PuxdtMQsr
      # FSHF0KQpa0XRb7fZ+HozZE5ufmXHdtEiiXxDe0hvTt7MVRHqtonECYA2Ian3cZra
      # bTJ1Iwn9mVmaWWG1JqCyvDO+PszAAQO8wCc+ADso7yt5C3BJLfWUmjjPRMWF2dHu
      # 9mz15ii6kF73833btwb1/LuxtPy9UxxpHKTA8Xqpjb7ZXOZU67e0Z52CMgNBcB/U
      # aeo1GUZqDKi7swI9Ilrl5ZUAQ5PsS76ePjr4j4d6aTp0ry+1axdwvkcbJnW1okMe
      # qS242Q==
      # =5DLw
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 02 Aug 2022 05:57:21 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-semi-20220802' of https://gitlab.com/rth7680/qemu
      
      :
        target/mips: Advance pc after semihosting exception
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      b15bd453
  4. Aug 02, 2022
    • Richard Henderson's avatar
      target/mips: Advance pc after semihosting exception · d44971e7
      Richard Henderson authored
      Delay generating the exception until after we know the
      insn length, and record that length in env->error_code.
      
      Fixes: 8ec7e3c5 ("target/mips: Use an exception for semihosting")
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1126
      
      
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      d44971e7
    • Richard Henderson's avatar
      Merge tag 'pull-migration-20220802c' of https://gitlab.com/dagrh/qemu into staging · 430a388e
      Richard Henderson authored
      
      Migration fixes pull 2022-08-02
      
      Small migration (and virtiofsd) fixes.
      
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEERfXHG0oMt/uXep+pBRYzHrxb/ecFAmLpR80ACgkQBRYzHrxb
      # /edDiQ//VWx6VFpq3j/cFe+aZudCJWbHD5HI8e0wABoCAMzfYnRRq5pMP7DaVy/x
      # Su0Lr6AO7vqSZzAqjsSm4DLQJHYM28YXxo0un/aJvnOZFGiXJzFe9OIE1LUwekQe
      # g6OrsyhOAf7wHY9MsoC6RRitKdSo/z7YZYZY6wEv2cyIJDda1+b9jpD6mWADQ2z1
      # 7eU5T0Kxfg2nArgF1MwgMWzPzjw4xN6BbqLLkWKdf3RD8Vl0BOdwxfXPDECqouUi
      # 08vcNB4jRV7WSJ5mnOEW2EMQvgmUkSe9HUhMhkD39LmbeeJ4a84oRoKZkQuvrb1h
      # qsbwoMlWhg8nxqyqB7ChTUw/27V3lfzlr/k6r6ExXsDL+zUwJXg4LrFuzyaqWdb2
      # vH5cp/mZkSho+PcIF+KeFQMEj51yV/y0ucU4JWwyyKCnGoJYofmZnBWG2czGOotq
      # 2qX44srufFkTDISpZ+NVUsaFl06nTrS7W9aTZdISYpGuxzHphOtrnYj8Pqqdwv4B
      # F6CyNmUcVbLLnGIRASYYEYMByfptmiRQgGhOtv1IJyYgzIgg0PJQUR5Dbjgb96vR
      # 0jhvLucKAkBrQaxkxxMVuIUJ9JdLeVbyEaSrc38qfr3FinRt8rgNr0mnFPAcNS7s
      # oAy4Ei9jZ3MoAITs/JD+ODglC/f58o0oHaSA6RFrOxmxxkrXowk=
      # =b2BF
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 02 Aug 2022 08:50:37 AM PDT
      # gpg:                using RSA key 45F5C71B4A0CB7FB977A9FA90516331EBC5BFDE7
      # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>" [full]
      
      * tag 'pull-migration-20220802c' of https://gitlab.com/dagrh/qemu
      
      :
        virtiofsd: Disable killpriv_v2 by default
        migration: Define BLK_MIG_BLOCK_SIZE as unsigned long long
        migration: Assert that migrate_multifd_compression() returns an in-range value
        Revert "migration: Simplify unqueue_page()"
        migration: add remaining params->has_* = true in migration_instance_init()
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      430a388e
    • Vivek Goyal's avatar
      virtiofsd: Disable killpriv_v2 by default · a21ba54d
      Vivek Goyal authored
      
      We are having bunch of issues with killpriv_v2 enabled by default. First
      of all it relies on clearing suid/sgid bits as needed by dropping
      capability CAP_FSETID. This does not work for remote filesystems like
      NFS (and possibly others).
      
      Secondly, we are noticing other issues related to clearing of SGID
      which leads to failures for xfstests generic/355 and generic/193.
      
      Thirdly, there are other issues w.r.t caching of metadata (suid/sgid)
      bits in fuse client with killpriv_v2 enabled. Guest can cache that
      data for sometime even if cleared on server.
      
      Second and Third issue are fixable. Just that it might take a little
      while to get it fixed in kernel. First one will probably not see
      any movement for a long time.
      
      Given these issues, killpriv_v2 does not seem to be a good candidate
      for enabling by default. We have already disabled it by default in
      rust version of virtiofsd.
      
      Hence this patch disabled killpriv_v2 by default. User can choose to
      enable it by passing option "-o killpriv_v2".
      
      Signed-off-by: default avatarVivek Goyal <vgoyal@redhat.com>
      Message-Id: <YuPd0itNIAz4tQRt@redhat.com>
      Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      a21ba54d
    • Peter Maydell's avatar
      migration: Define BLK_MIG_BLOCK_SIZE as unsigned long long · 4bcb7de0
      Peter Maydell authored
      
      When we use BLK_MIG_BLOCK_SIZE in expressions like
      block_mig_state.submitted * BLK_MIG_BLOCK_SIZE, this multiplication
      is done as 32 bits, because both operands are 32 bits.  Coverity
      complains about possible overflows because we then accumulate that
      into a 64 bit variable.
      
      Define BLK_MIG_BLOCK_SIZE as unsigned long long using the ULL suffix.
      The only two current uses of it with this problem are both in
      block_save_pending(), so we could just cast to uint64_t there, but
      using the ULL suffix is simpler and ensures that we don't
      accidentally introduce new variants of the same issue in future.
      
      Resolves: Coverity CID 1487136, 1487175
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20220721115207.729615-3-peter.maydell@linaro.org>
      Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      4bcb7de0
    • Peter Maydell's avatar
      migration: Assert that migrate_multifd_compression() returns an in-range value · ead34f64
      Peter Maydell authored
      
      Coverity complains that when we use the return value from
      migrate_multifd_compression() as an array index:
        multifd_recv_state->ops = multifd_ops[migrate_multifd_compression()];
      
      that this might overrun the array (which is declared to have size
      MULTIFD_COMPRESSION__MAX).  This is because the function return type
      is MultiFDCompression, which is an autogenerated enum.  The code
      generator includes the "one greater than the maximum possible value"
      MULTIFD_COMPRESSION__MAX in the enum, even though this is not
      actually a valid value for the enum, and this makes Coverity think
      that migrate_multifd_compression() could return that __MAX value and
      index off the end of the array.
      
      Suppress the Coverity error by asserting that the value we're going
      to return is within range.
      
      Resolves: Coverity CID 1487239, 1487254
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20220721115207.729615-2-peter.maydell@linaro.org>
      Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      ead34f64
    • Thomas Huth's avatar
      Revert "migration: Simplify unqueue_page()" · 777f53c7
      Thomas Huth authored
      This reverts commit cfd66f30.
      
      The simplification of unqueue_page() introduced a bug that sometimes
      breaks migration on s390x hosts.
      
      The problem is not fully understood yet, but since we are already in
      the freeze for QEMU 7.1 and we need something working there, let's
      revert this patch for the upcoming release. The optimization can be
      redone later again in a proper way if necessary.
      
      Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2099934
      
      
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20220802061949.331576-1-thuth@redhat.com>
      Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      777f53c7
    • Leonardo Bras's avatar
      migration: add remaining params->has_* = true in migration_instance_init() · df67aa3e
      Leonardo Bras authored
      
      Some of params->has_* = true are missing in migration_instance_init, this
      causes migrate_params_check() to skip some tests, allowing some
      unsupported scenarios.
      
      Fix this by adding all missing params->has_* = true in
      migration_instance_init().
      
      Fixes: 69ef1f36 ("migration: define 'tls-creds' and 'tls-hostname' migration parameters")
      Fixes: 1d58872a ("migration: do not wait for free thread")
      Fixes: d2f1d29b ("migration: add support for a "tls-authz" migration parameter")
      Signed-off-by: default avatarLeonardo Bras <leobras@redhat.com>
      Message-Id: <20220726010235.342927-1-leobras@redhat.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      df67aa3e
    • 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
    • Rainer Müller's avatar
      linux-user: Use memfd for open syscall emulation · 5b63de6b
      Rainer Müller authored
      
      For certain paths in /proc, the open syscall is intercepted and the
      returned file descriptor points to a temporary file with emulated
      contents.
      
      If TMPDIR is not accessible or writable for the current user (for
      example in a read-only mounted chroot or container) tools such as ps
      from procps may fail unexpectedly. Trying to read one of these paths
      such as /proc/self/stat would return an error such as ENOENT or EROFS.
      
      To relax the requirement on a writable TMPDIR, use memfd_create()
      instead to create an anonymous file and return its file descriptor.
      
      Signed-off-by: default avatarRainer Müller <raimue@codingfarm.de>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20220729154951.76268-1-raimue@codingfarm.de>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      5b63de6b
    • 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
  5. Aug 01, 2022
    • Richard Henderson's avatar
      linux-user/riscv: Align signal frame to 16 bytes · 1eaa6342
      Richard Henderson authored
      Follow the kernel's alignment, as we already noted.
      
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1093
      
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-Id: <20220729201942.30738-1-richard.henderson@linaro.org>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      1eaa6342
    • Richard Henderson's avatar
      Merge tag 'pull-aspeed-20220801' of https://github.com/legoater/qemu into staging · 60205b71
      Richard Henderson authored
      aspeed queue:
      
      * Fix ownership of RAM regions on the fby35 machine
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEoPZlSPBIlev+awtgUaNDx8/77KEFAmLn1N8ACgkQUaNDx8/7
      # 7KHaVA//eh5wIZKeg1Qit8dhVoPXcO7b97KFpBreyCkfdREJpoLjoFe4y+rnKhnL
      # tJm6qx1YG5s0UN/ODcy4TyKV9CkpcjsRZ+BHuZ+jjiz3WzuarZUTbZx1jVSJP6z0
      # xcXc3CucKe/yyidGV1gKGiWetuXv2F6nYHzfvJ4auei6Rga8rwmiN7Rqf3Qfh6Lw
      # Islj/9axfLxGzuMV85uuRZdRrrlmTOjDgnF4mxwVXRrxjtLIaAbzKT6mc1p1FUry
      # cuE7bDjbZoT7ftBn5y4gQXV38M3XcWzB1KvzMslldkccU7cTbJg8620KSNiscOkJ
      # 03xEJiBJoAzy/X1PUmEODNYUV8a19xcsXEyqaRQiyYtO1XMBDcNkSaiaFacOnhFT
      # UxabJf3qvzf1QwAmgxGUdbR5usNXsr8Yrnpf1lew7Mvr3SwOYVXqb/JPp+j7uoV3
      # CVvvTFZm+hBQghaHC0wHBX+C3aLsTis4Jppn5loulo6fb9KZiosj2kPRwEIetVkt
      # ZgkBOLWRWtizdWKM7HImt7F+v/r7ClFlwAIJj8QQV0HTtVZ+gM6MXWj5oczKENJ8
      # vPkoP6AUoOWzKFEhBU5XtQ9DdwPSP9m6zAZXl4LD17tVPUPpsuSEDaxhH5hAEnIR
      # 39Mgx7hoK0uLHhM02RrNodD/NDmrZCPV3PwZ979z0Q/C8dttRkY=
      # =hAJg
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 01 Aug 2022 06:27:59 AM PDT
      # gpg:                using RSA key A0F66548F04895EBFE6B0B6051A343C7CFFBECA1
      # gpg: Good signature from "Cédric Le Goater <clg@kaod.org>" [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: A0F6 6548 F048 95EB FE6B  0B60 51A3 43C7 CFFB ECA1
      
      * tag 'pull-aspeed-20220801' of https://github.com/legoater/qemu
      
      :
        aspeed/fby35: Fix owner of the BMC RAM memory region
        aspeed: Remove unused fields from AspeedMachineState
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      60205b71
    • Richard Henderson's avatar
      Merge tag 'pull-target-arm-20220801' of... · 0e0c2cf6
      Richard Henderson authored
      Merge tag 'pull-target-arm-20220801' of https://git.linaro.org/people/pmaydell/qemu-arm into staging
      
      target-arm queue:
       * Fix KVM SVE ID register probe code
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmLn8rwZHHBldGVyLm1h
      # eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3seqD/sE4YU3qpovlyPhJJWsEFyH
      # JRheAwddoj8P/ufOeJVPh85PqGH8zR6MSLSJqzz32ADrN56CFA56c0TRAoL7F6Ru
      # iTibwP7hFloDxBCJIYVMZdbSw959LYADYHhdIN7UBkSryCoOC74AraUCwuYqzr9l
      # jgh3lnvaH2kj5460XQQYPX4Pkf1jZIV83nhs9kh6GohhuHWtyz9UucDe8VcgMyl2
      # 9jn7aobLWXI1LJyWTNYJHxQacGn4HK4HbVHczDRgf9PzmjliiTltGvol+T1XGyha
      # TGHXMNnMTRbWFz7LCENfEYhup5ScuZbBr5fWh4sBveodczgOActNwmFuy1sempWo
      # Cnzy/rwcNREj6EXoKvUkpATKuls9rtH9U4927mesxrk9S3bRJXU4C/EgpAn3qIBZ
      # 1iFTgSq7eqX+BaYmG1/dtEK+vFX6mhpmKCMhQyRtSFHHibovvlANaNhOHgnPnS0m
      # +Bb1pioolo31LLLxBpByOX/MxnXbG+GBnn2kmqX9MLkqamrYQq4g+ITUZcrLReId
      # HmvBtYENoiXfReuvT/zRH1nBax97dKrluOgejco2bJrhiYaDgJ94jDMegdoR9mSl
      # W/G3QHq18PJ5YOkrjmTn6IFjYNozLEvVqn5VwGXr6QZFxBuivAUoxOELrGULSlba
      # OPTBWo2kAbJ8FvKOr3RzhQ==
      # =hkV8
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 01 Aug 2022 08:35:24 AM PDT
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [full]
      
      * tag 'pull-target-arm-20220801' of https://git.linaro.org/people/pmaydell/qemu-arm
      
      :
        target/arm: Move sve probe inside kvm >= 4.15 branch
        target/arm: Set KVM_ARM_VCPU_SVE while probing the host
        target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      0e0c2cf6
Loading