1. 28 2月, 2017 6 次提交
  2. 27 2月, 2017 8 次提交
  3. 26 2月, 2017 9 次提交
    • P
      slirp: tcp_listen(): Don't try to close() an fd we never opened · bd5d2353
      Peter Maydell 提交于
      Coverity points out (CID 1005725) that an error-exit path in tcp_listen()
      will try to close(s) even if the reason it got there was that the
      qemu_socket() failed and s was never opened.  Not only that, this isn't even
      the right function to use, because we need closesocket() to do the right
      thing on Windows.  Change to using the right function and only calling it if
      needed.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      bd5d2353
    • P
      slirp: Convert mbufs to use g_malloc() and g_free() · 70f2e64e
      Peter Maydell 提交于
      The mbuf code currently doesn't check the result of doing a malloc()
      or realloc() of its data (spotted by Coverity, CID 1238946).
      Since the m_inc() API assumes that extending an mbuf must succeed,
      just convert to g_malloc() and g_free().
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      70f2e64e
    • P
      slirp: Check qemu_socket() return value in udp_listen() · 4577b09a
      Peter Maydell 提交于
      Check the return value from qemu_socket() rather than trying to
      pass it to bind() as an fd argument even if it's negative.
      This wouldn't have caused any negative consequences, because
      it won't be a valid fd number and the bind call will fail;
      but Coverity complains (CID 1005723).
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      4577b09a
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 6b4e463f
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Fri 24 Feb 2017 18:08:26 GMT
      # gpg:                using RSA key 0x7F09B272C88F2FD6
      # 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:
        tests: Use opened block node for block job tests
        vvfat: Use opened node as backing file
        block: Add bdrv_new_open_driver()
        block: Factor out bdrv_open_driver()
        block: Use BlockBackend for image probing
        block: Factor out bdrv_open_child_bs()
        block: Attach bs->file only during .bdrv_open()
        block: Pass BdrvChild to bdrv_truncate()
        mirror: Resize active commit base in mirror_run()
        qcow2: Use BB for resizing in qcow2_amend_options()
        blockdev: Use BlockBackend to resize in qmp_block_resize()
        iotests: Fix another race in 030
        qemu-img: Improve documentation for PREALLOC_MODE_FALLOC
        qemu-img: Truncate before full preallocation
        qemu-img: Add tests for raw image preallocation
        qemu-img: Do not truncate before preallocation
        qemu-iotests: redirect nbd server stdout to /dev/null
        qemu-iotests: add ability to exclude certain protocols from tests
        qemu-iotests: Test 137 only supports 'file' protocol
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6b4e463f
    • P
      Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging · 6528a4c1
      Peter Maydell 提交于
      # gpg: Signature made Fri 24 Feb 2017 17:45:53 GMT
      # gpg:                using RSA key 0xBDBE7B27C0DE3057
      # 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:
        RBD: Add support readv,writev for rbd
        block/nfs: try to avoid the bounce buffer in pwritev
        block/nfs: convert to preadv / pwritev
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6528a4c1
    • P
      Merge remote-tracking branch 'remotes/yongbok/tags/mips-20170224-2' into staging · 6d3f4c6d
      Peter Maydell 提交于
      MIPS patches 2017-02-24-2
      
      CHanges:
      * Add the Boston board with fixing the make check issue on 32-bit hosts.
      
      # gpg: Signature made Fri 24 Feb 2017 11:43:45 GMT
      # gpg:                using RSA key 0x2238EB86D5F797C2
      # gpg: Good signature from "Yongbok Kim <yongbok.kim@imgtec.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 8600 4CF5 3415 A5D9 4CFA  2B5C 2238 EB86 D5F7 97C2
      
      * remotes/yongbok/tags/mips-20170224-2:
        hw/mips: MIPS Boston board support
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6d3f4c6d
    • P
      Merge remote-tracking branch 'remotes/stsquad/tags/pull-mttcg-240217-1' into staging · 28f997a8
      Peter Maydell 提交于
      This is the MTTCG pull-request as posted yesterday.
      
      # gpg: Signature made Fri 24 Feb 2017 11:17:51 GMT
      # gpg:                using RSA key 0xFBD0DB095A9E2A44
      # gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>"
      # Primary key fingerprint: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44
      
      * remotes/stsquad/tags/pull-mttcg-240217-1: (24 commits)
        tcg: enable MTTCG by default for ARM on x86 hosts
        hw/misc/imx6_src: defer clearing of SRC_SCR reset bits
        target-arm: ensure all cross vCPUs TLB flushes complete
        target-arm: don't generate WFE/YIELD calls for MTTCG
        target-arm/powerctl: defer cpu reset work to CPU context
        cputlb: introduce tlb_flush_*_all_cpus[_synced]
        cputlb: atomically update tlb fields used by tlb_reset_dirty
        cputlb: add tlb_flush_by_mmuidx async routines
        cputlb and arm/sparc targets: convert mmuidx flushes from varg to bitmap
        cputlb: introduce tlb_flush_* async work.
        cputlb: tweak qemu_ram_addr_from_host_nofail reporting
        cputlb: add assert_cpu_is_self checks
        tcg: handle EXCP_ATOMIC exception for system emulation
        tcg: enable thread-per-vCPU
        tcg: enable tb_lock() for SoftMMU
        tcg: remove global exit_request
        tcg: drop global lock during TCG code execution
        tcg: rename tcg_current_cpu to tcg_current_rr_cpu
        tcg: add kick timer for single-threaded vCPU emulation
        tcg: add options for enabling MTTCG
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      28f997a8
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20170224' into staging · 2421f381
      Peter Maydell 提交于
      A selection of s390x patches:
      - cleanups, fixes and improvements
      - program check loop detection (useful with the corresponding kernel
        patch)
      - wire up virtio-crypto for ccw
      - and finally support many virtqueues for virtio-ccw
      
      # gpg: Signature made Fri 24 Feb 2017 09:19:19 GMT
      # gpg:                using RSA key 0xDECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20170224:
        s390x/css: handle format-0 TIC CCW correctly
        s390x/arch_dump: pass cpuid into notes sections
        s390x/arch_dump: use proper note name and note size
        virtio-ccw: support VIRTIO_QUEUE_MAX virtqueues
        s390x: bump ADAPTER_ROUTES_MAX_GSI
        virtio-ccw: check flic->adapter_routes_max_batch
        s390x: add property adapter_routes_max_batch
        virtio-ccw: Check the number of vqs in CCW_CMD_SET_IND
        virtio-ccw: add virtio-crypto-ccw device
        virtio-ccw: handle virtio 1 only devices
        s390x/flic: fail migration on source already
        s390x/kvm: detect some program check loops
        s390x/s390-virtio: get rid of DPRINTF
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2421f381
    • P
      Merge remote-tracking branch 'remotes/famz/tags/for-upstream' into staging · f62ab6bb
      Peter Maydell 提交于
      Docker testing and shippable patches
      
      Hi Peter,
      
      These are testing and build automation patches:
      
      - Shippable.com powered CI config
      - Docker cross build
      - Fixes and MAINTAINERS tweaks.
      
      # gpg: Signature made Fri 24 Feb 2017 06:31:10 GMT
      # gpg:                using RSA key 0xCA35624C6A9171C6
      # gpg: Good signature from "Fam Zheng <famz@redhat.com>"
      # 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: 5003 7CB7 9706 0F76 F021  AD56 CA35 624C 6A91 71C6
      
      * remotes/famz/tags/for-upstream:
        docker: Install python2 explicitly in docker image
        MAINTAINERS: merge Build and test automation with Docker tests
        .shippable.yml: new CI provider
        new: debian docker targets for cross-compiling
        tests/docker: add basic user mapping support
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f62ab6bb
  4. 25 2月, 2017 5 次提交
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-util-2017-02-23' into staging · d7941f4e
      Peter Maydell 提交于
      option cutils: Fix and clean up number conversions
      
      # gpg: Signature made Thu 23 Feb 2017 19:41:17 GMT
      # gpg:                using RSA key 0x3870B400EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653
      
      * remotes/armbru/tags/pull-util-2017-02-23: (24 commits)
        option: Fix checking of sizes for overflow and trailing crap
        util/cutils: Change qemu_strtosz*() from int64_t to uint64_t
        util/cutils: Return qemu_strtosz*() error and value separately
        util/cutils: Let qemu_strtosz*() optionally reject trailing crap
        qemu-img: Wrap cvtnum() around qemu_strtosz()
        test-cutils: Drop suffix from test_qemu_strtosz_simple()
        test-cutils: Use qemu_strtosz() more often
        util/cutils: Drop QEMU_STRTOSZ_DEFSUFFIX_* macros
        util/cutils: New qemu_strtosz()
        util/cutils: Rename qemu_strtosz() to qemu_strtosz_MiB()
        util/cutils: New qemu_strtosz_metric()
        test-cutils: Cover qemu_strtosz() around range limits
        test-cutils: Cover qemu_strtosz() with trailing crap
        test-cutils: Cover qemu_strtosz() invalid input
        test-cutils: Add missing qemu_strtosz()... endptr checks
        option: Fix to reject invalid and overflowing numbers
        util/cutils: Clean up control flow around qemu_strtol() a bit
        util/cutils: Clean up variable names around qemu_strtol()
        util/cutils: Rename qemu_strtoll(), qemu_strtoull()
        util/cutils: Rewrite documentation of qemu_strtol() & friends
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d7941f4e
    • T
      RBD: Add support readv,writev for rbd · 1d393bde
      tianqing 提交于
      Rbd can do readv and writev directly, so wo do not need to transform
      iov to buf or vice versa any more.
      Signed-off-by: Ntianqing <tianqing@unitedstack.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      1d393bde
    • P
      block/nfs: try to avoid the bounce buffer in pwritev · ef503a84
      Peter Lieven 提交于
      if the passed qiov contains exactly one iov we can
      pass the buffer directly.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Message-id: 1487349541-10201-3-git-send-email-pl@kamp.de
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      ef503a84
    • P
      block/nfs: convert to preadv / pwritev · 69785a22
      Peter Lieven 提交于
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Message-id: 1487349541-10201-2-git-send-email-pl@kamp.de
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      69785a22
    • P
      Merge remote-tracking branch 'remotes/awilliam/tags/vfio-updates-20170223.0' into staging · 6959e452
      Peter Maydell 提交于
      VFIO updates 2017-02-23
      
       - Report qdev_unplug errors (Alex Williamson)
       - Fix ecap ID 0 handling, improve comment (Alex Williamson)
       - Disable IGD stolen memory in UPT mode too (Xiong Zhang)
      
      # gpg: Signature made Thu 23 Feb 2017 19:04:17 GMT
      # gpg:                using RSA key 0x239B9B6E3BB08B22
      # gpg: Good signature from "Alex Williamson <alex.williamson@redhat.com>"
      # gpg:                 aka "Alex Williamson <alex@shazbot.org>"
      # gpg:                 aka "Alex Williamson <alwillia@redhat.com>"
      # gpg:                 aka "Alex Williamson <alex.l.williamson@gmail.com>"
      # Primary key fingerprint: 42F6 C04E 540B D1A9 9E7B  8A90 239B 9B6E 3BB0 8B22
      
      * remotes/awilliam/tags/vfio-updates-20170223.0:
        vfio/pci-quirks.c: Disable stolen memory for igd VFIO
        vfio/pci: Improve extended capability comments, skip masked caps
        vfio/pci: Report errors from qdev_unplug() via device request
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6959e452
  5. 24 2月, 2017 12 次提交