1. 09 4月, 2018 15 次提交
  2. 05 4月, 2018 6 次提交
  3. 04 4月, 2018 7 次提交
    • L
      tcg: fix 16-byte vector operations detection · 74912f6d
      Laurent Vivier 提交于
      configure tries to detect if the compiler
      supports 16-byte vector operations.
      
      As stated in the comment of the detection
      program, there is a problem with the system
      compiler on GCC on Centos 7.
      
      This program doesn't actually detect the problem
      with GCC on RHEL7 on PPC64LE (Red Hat 4.8.5-28).
      
      This patch updates the test to look more like
      it is in QEMU helpers, and now detects the problem.
      
      The error reported is:
      
        CC      ppc64-softmmu/accel/tcg/tcg-runtime-gvec.o
        ..//accel/tcg/tcg-runtime-gvec.c: In function ‘helper_gvec_shl8i’:
        ../accel/tcg/tcg-runtime-gvec.c:558:26: internal compiler error: in emit_move_insn, at expr.c:3495
                 *(vec8 *)(d + i) = *(vec8 *)(a + i) << shift;
                                  ^
      Fixes: db432672 "tcg: Add generic vector expanders"
      Signed-off-by: NLaurent Vivier <lvivier@redhat.com>
      Reviewed-by: NMiroslav Rezanina <mrezanin@redhat.com>
      Message-id: 20180328133152.24623-1-lvivier@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      74912f6d
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · fd69ad86
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Tue 03 Apr 2018 16:48:53 BST
      # gpg:                using RSA key 7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream:
        iotests: Test abnormally large size in compressed cluster descriptor
        qemu-iotests: Use ppc64 qemu_arch on ppc64le host
        iotests: Test preallocated truncate of 2G image
        block/file-posix: Fix fully preallocated truncate
        iotests: fix 208 for luks format
        iotests: Update 186 after commit ac64273c
        iotests: Update 051 and 186 after commit 14545097
        block: handle invalid lseek returns gracefully
        gluster: Fix blockdev-add with server.N.type=unix
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      fd69ad86
    • P
      Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging · e5efa1f5
      Peter Maydell 提交于
      # gpg: Signature made Tue 03 Apr 2018 17:10:22 BST
      # gpg:                using RSA key BDBE7B27C0DE3057
      # gpg: Good signature from "Jeffrey Cody <jcody@redhat.com>"
      # gpg:                 aka "Jeffrey Cody <jeff@codyprime.org>"
      # gpg:                 aka "Jeffrey Cody <codyprime@gmail.com>"
      # Primary key fingerprint: 9957 4B4D 3474 90E7 9D98  D624 BDBE 7B27 C0DE 3057
      
      * remotes/cody/tags/block-pull-request:
        gluster: Fix blockdev-add with server.N.type=unix
        blockjob: use qapi enum helpers
        blockjob: leak fix, remove from txn when failing early
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e5efa1f5
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' into staging · 094b62cd
      Peter Maydell 提交于
      Fix memory leaks when using object_property_get_str()
      
      # gpg: Signature made Tue 03 Apr 2018 15:00:10 BST
      # gpg:                using RSA key 2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/x86-next-pull-request:
        sev/i386: fix memory leak in sev_guest_init()
        exec: fix memory leak in find_max_supported_pagesize()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      094b62cd
    • P
      Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-2.12-pull-request' into staging · 71ad102b
      Peter Maydell 提交于
      # gpg: Signature made Tue 03 Apr 2018 11:33:31 BST
      # gpg:                using RSA key F30C38BD3F2FBE3C
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>"
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>"
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>"
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/linux-user-for-2.12-pull-request:
        linux-user: fix TARGET___O_TMPFILE for sparc
        linux-user: define TARGET_ARCH_HAS_KA_RESTORER
        linux-user: fix alpha signal emulation
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      71ad102b
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180403' into staging · f7481f65
      Peter Maydell 提交于
      - fix a memory leak in the ipl code introduced with this release
      - increase timeout in the bios to avoid hangs during migration (and
        rebuild bios to activate the change)
      
      # gpg: Signature made Tue 03 Apr 2018 09:28:30 BST
      # gpg:                using RSA key DECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>"
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>"
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20180403:
        pc-bios/s390-ccw: update image
        pc-bios/s390-ccw: Increase virtio timeout to 30 seconds
        hw/s390x: fix memory leak in s390_init_ipl_dev()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f7481f65
    • P
      Merge remote-tracking branch 'remotes/xtensa/tags/20180402-xtensa' into staging · 9abfc88a
      Peter Maydell 提交于
      xtensa-specific fixes for linux-user:
      
      - fix flushing registers for signal processing in call8 and call12 frames;
      - fix PC value for restarted syscalls;
      - fix sysv IPC structures;
      - fix fadvise64 syscall;
      
      generic fixes for linux-user:
      
      - fix QEMU assertion in multithreaded application by calling cpu_copy
        under clone_lock;
      - fix mq_getsetattr implementation;
      - fix error propagation in clock_gettime;
      - implement clock_settime.
      
      # gpg: Signature made Mon 02 Apr 2018 18:07:08 BST
      # gpg:                using RSA key 51F9CC91F83FA044
      # gpg: Good signature from "Max Filippov <filippov@cadence.com>"
      # gpg:                 aka "Max Filippov <max.filippov@cogentembedded.com>"
      # gpg:                 aka "Max Filippov <jcmvbkbc@gmail.com>"
      # Primary key fingerprint: 2B67 854B 98E5 327D CDEB  17D8 51F9 CC91 F83F A044
      
      * remotes/xtensa/tags/20180402-xtensa:
        target/xtensa: linux-user: fix fadvise64 call
        linux-user: implement clock_settime
        linux-user: fix error propagation in clock_gettime
        target/xtensa: linux-user: fix sysv IPC structures
        linux-user: fix mq_getsetattr implementation
        linux-user: call cpu_copy under clone_lock
        target/xtensa: linux-user: rewind pc for restarted syscall
        target/xtensa: fix flush_window_regs
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9abfc88a
  4. 03 4月, 2018 12 次提交
    • K
      Merge remote-tracking branch 'mreitz/tags/pull-block-2018-04-03' into queue-block · 9c1386d3
      Kevin Wolf 提交于
      A fix for preallocated truncation, a new iotest, and a fix to make the iotests work more comfortably on ppc64
      
      # gpg: Signature made Tue Apr  3 17:40:57 2018 CEST
      # gpg:                using RSA key F407DB0061D5CF40
      # gpg: Good signature from "Max Reitz <mreitz@redhat.com>"
      # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1  1829 F407 DB00 61D5 CF40
      
      * mreitz/tags/pull-block-2018-04-03:
        iotests: Test abnormally large size in compressed cluster descriptor
        qemu-iotests: Use ppc64 qemu_arch on ppc64le host
        iotests: Test preallocated truncate of 2G image
        block/file-posix: Fix fully preallocated truncate
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      9c1386d3
    • A
      iotests: Test abnormally large size in compressed cluster descriptor · abd3622c
      Alberto Garcia 提交于
      L2 entries for compressed clusters have a field that indicates the
      number of sectors used to store the data in the image.
      
      That's however not the size of the compressed data itself, just the
      number of sectors where that data is located. The actual data size is
      usually not a multiple of the sector size, and therefore cannot be
      represented with this field.
      
      The way it works is that QEMU reads all the specified sectors and
      starts decompressing the data until there's enough to recover the
      original uncompressed cluster. If there are any bytes left that
      haven't been decompressed they are simply ignored.
      
      One consequence of this is that even if the size field is larger than
      it needs to be QEMU can handle it just fine: it will read more data
      from disk but it will ignore the extra bytes.
      
      This test creates an image with two compressed clusters that use 5
      sectors (2.5 KB) each, increases the size field to the maximum (8192
      sectors, or 4 MB) and verifies that the data can be read without
      problems.
      
      This test is important because while the decompressed data takes
      exactly one cluster, the maximum value allowed in the compressed size
      field is twice the cluster size. So although QEMU won't produce images
      with such large values we need to make sure that it can handle them.
      
      Another effect of increasing the size field is that it can make
      it include data from the following host cluster(s). In this case
      'qemu-img check' will detect that the refcounts are not correct, and
      we'll need to rebuild them.
      
      Additionally, this patch also tests that decreasing the size corrupts
      the image since the original data can no longer be recovered. In this
      case QEMU returns an error when trying to read the compressed data,
      but 'qemu-img check' doesn't see anything wrong if the refcounts are
      consistent.
      
      One possible task for the future is to make 'qemu-img check' verify
      the sizes of the compressed clusters, by trying to decompress the data
      and checking that the size stored in the L2 entry is correct.
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Message-id: 20180329120745.11154-1-berto@igalia.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      abd3622c
    • L
      qemu-iotests: Use ppc64 qemu_arch on ppc64le host · 96914159
      Lukáš Doktor 提交于
      The qemu target does not always correspond to the host machine type. For
      example ppc64le machine target is ppc64. Let's introduce "qemu_arch"
      variable to store the matching qemu architecture related to the current
      architecture and use it when auto-detecting the default qemu binary.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      Message-id: 20180329112053.5399-2-ldoktor@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      96914159
    • M
      iotests: Test preallocated truncate of 2G image · 733d1dce
      Max Reitz 提交于
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Message-id: 20180228131315.30194-3-mreitz@redhat.com
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      733d1dce
    • M
      block/file-posix: Fix fully preallocated truncate · 82b45e0a
      Max Reitz 提交于
      Storing the lseek() result in an int results in it overflowing when the
      file is at least 2 GB big.  Then, we have a 50 % chance of the result
      being "negative" and thus thinking an error occurred when actually
      everything went just fine.
      
      So we should use the correct type for storing the result: off_t.
      Reported-by: NDaniel P. Berrange <berrange@redhat.com>
      Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1549231
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Message-id: 20180228131315.30194-2-mreitz@redhat.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      82b45e0a
    • V
      iotests: fix 208 for luks format · eb42e719
      Vladimir Sementsov-Ogievskiy 提交于
      Support luks images creatins like in 205
      Signed-off-by: NVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      eb42e719
    • P
      Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2018-04-02' into staging · 13b65ec5
      Peter Maydell 提交于
      nbd patches for 2018-04-02
      
      - Eric Blake: nbd: Fix 32-bit compilation on BLOCK_STATUS
      - Eric Blake: nbd/client: Correctly handle bad server REP_META_CONTEXT
      - Eric Blake: nbd: trace meta context negotiation
      
      # gpg: Signature made Mon 02 Apr 2018 15:15:01 BST
      # gpg:                using RSA key A7A16B4A2527436A
      # gpg: Good signature from "Eric Blake <eblake@redhat.com>"
      # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>"
      # gpg:                 aka "[jpeg image of size 6874]"
      # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
      
      * remotes/ericb/tags/pull-nbd-2018-04-02:
        nbd: trace meta context negotiation
        nbd/client: Correctly handle bad server REP_META_CONTEXT
        nbd: Fix 32-bit compilation on BLOCK_STATUS
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      13b65ec5
    • A
      iotests: Update 186 after commit ac64273c · 627f607e
      Alberto Garcia 提交于
      Commit ac64273c modified the output of iotest 186, changing
      the QOM path of floppy drives from /machine/unattached/device[17] to
      /machine/unattached/device[13].
      
      Instead of updating the test output to reflect this change, this patch
      adds a new filter that hides all QOM paths from the 'Attached to:'
      line of the 'info block' command.
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      627f607e
    • A
      iotests: Update 051 and 186 after commit 14545097 · 242c1721
      Alberto Garcia 提交于
      SCSI controllers are no longer created automatically for
      -drive if=scsi, so this patch updates the tests that relied
      on that.
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Cc: Thomas Huth <thuth@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      242c1721
    • K
      gluster: Fix blockdev-add with server.N.type=unix · 9dae635a
      Kevin Wolf 提交于
      The legacy command line interface gets the socket path from an option
      called 'socket'. QAPI in contract uses SocketAddress, where the
      corresponding option is called 'path'.
      
      Fix the gluster block driver to accept both 'socket' and 'path', with
      'path' being the preferred syntax.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1545155
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Message-id: 20180403110810.25624-1-kwolf@redhat.com
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      9dae635a
    • M
      blockjob: use qapi enum helpers · 604343ce
      Marc-André Lureau 提交于
      QAPI generator provide #define helpers for looking up enum string.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 20180327153011.29569-1-marcandre.lureau@redhat.com
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      604343ce
    • M
      blockjob: leak fix, remove from txn when failing early · a865cebb
      Marc-André Lureau 提交于
      This fixes leaks found by ASAN such as:
        GTESTER tests/test-blockjob
      =================================================================
      ==31442==ERROR: LeakSanitizer: detected memory leaks
      
      Direct leak of 24 byte(s) in 1 object(s) allocated from:
          #0 0x7f88483cba38 in __interceptor_calloc (/lib64/libasan.so.4+0xdea38)
          #1 0x7f8845e1bd77 in g_malloc0 ../glib/gmem.c:129
          #2 0x7f8845e1c04b in g_malloc0_n ../glib/gmem.c:360
          #3 0x5584d2732498 in block_job_txn_new /home/elmarco/src/qemu/blockjob.c:172
          #4 0x5584d2739b28 in block_job_create /home/elmarco/src/qemu/blockjob.c:973
          #5 0x5584d270ae31 in mk_job /home/elmarco/src/qemu/tests/test-blockjob.c:34
          #6 0x5584d270b1c1 in do_test_id /home/elmarco/src/qemu/tests/test-blockjob.c:57
          #7 0x5584d270b65c in test_job_ids /home/elmarco/src/qemu/tests/test-blockjob.c:118
          #8 0x7f8845e40b69 in test_case_run ../glib/gtestutils.c:2255
          #9 0x7f8845e40f29 in g_test_run_suite_internal ../glib/gtestutils.c:2339
          #10 0x7f8845e40fd2 in g_test_run_suite_internal ../glib/gtestutils.c:2351
          #11 0x7f8845e411e9 in g_test_run_suite ../glib/gtestutils.c:2426
          #12 0x7f8845e3fe72 in g_test_run ../glib/gtestutils.c:1692
          #13 0x5584d270d6e2 in main /home/elmarco/src/qemu/tests/test-blockjob.c:377
          #14 0x7f8843641f29 in __libc_start_main (/lib64/libc.so.6+0x20f29)
      
      Add an assert to make sure that the job doesn't have associated txn before free().
      
      [Jeff Cody: N.B., used updated patch provided by John Snow]
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      a865cebb