1. 17 10月, 2016 9 次提交
    • G
      9pfs: fsdev: drop useless extern annotation for functions · bc70a592
      Greg Kurz 提交于
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      bc70a592
    • L
      9pfs: fix potential host memory leak in v9fs_read · e95c9a49
      Li Qiang 提交于
      In 9pfs read dispatch function, it doesn't free two QEMUIOVector
      object thus causing potential memory leak. This patch avoid this.
      Signed-off-by: NLi Qiang <liqiang6-s@360.cn>
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      e95c9a49
    • L
      9pfs: allocate space for guest originated empty strings · ba42ebb8
      Li Qiang 提交于
      If a guest sends an empty string paramater to any 9P operation, the current
      code unmarshals it into a V9fsString equal to { .size = 0, .data = NULL }.
      
      This is unfortunate because it can cause NULL pointer dereference to happen
      at various locations in the 9pfs code. And we don't want to check str->data
      everywhere we pass it to strcmp() or any other function which expects a
      dereferenceable pointer.
      
      This patch enforces the allocation of genuine C empty strings instead, so
      callers don't have to bother.
      
      Out of all v9fs_iov_vunmarshal() users, only v9fs_xattrwalk() checks if
      the returned string is empty. It now uses v9fs_string_size() since
      name.data cannot be NULL anymore.
      Signed-off-by: NLi Qiang <liqiang6-s@360.cn>
      [groug, rewritten title and changelog,
       fix empty string check in v9fs_xattrwalk()]
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      ba42ebb8
    • P
      Merge remote-tracking branch 'remotes/famz/tags/for-upstream' into staging · ad728364
      Peter Maydell 提交于
      # gpg: Signature made Mon 17 Oct 2016 03:08:28 BST
      # 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:
        tests/docker/Makefile.include: add a generic docker-run target
        tests/docker: make test-mingw honour TARGET_LIST
        tests/docker: test-build script
        tests/docker: add travis dockerfile
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ad728364
    • P
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20161014' into staging · 4378caf5
      Peter Maydell 提交于
      migration/next for 20161014
      
      # gpg: Signature made Fri 14 Oct 2016 16:24:13 BST
      # gpg:                using RSA key 0xF487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>"
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>"
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * remotes/juanquintela/tags/migration/20161014:
        docs/xbzrle: correction
        migrate: move max-bandwidth and downtime-limit to migrate_set_parameter
        migration: Fix seg with missing port
        migration/postcopy: Explicitly disallow huge pages
        RAMBlocks: Store page size
        Postcopy vs xbzrle: Don't send xbzrle pages once in postcopy [for 2.8]
        migrate: Fix bounds check for migration parameters in migration.c
        migrate: Use boxed qapi for migrate-set-parameters
        migrate: Share common MigrationParameters struct
        migrate: Fix cpu-throttle-increment regression in HMP
        migration/rdma: Don't flag an error when we've been told about one
        migration: Make failed migration load set file error
        migration/rdma: Pass qemu_file errors across link
        migration: Report values for comparisons
        migration: report an error giving the failed field
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      4378caf5
    • A
      tests/docker/Makefile.include: add a generic docker-run target · e86c9a64
      Alex Bennée 提交于
      This re-factors the docker makefile to include a docker-run target which
      can be controlled entirely from environment variables specified on the
      make command line. This allows us to run against any given docker image
      we may have in our repository, for example:
      
          make docker-run TEST="test-quick" IMAGE="debian:arm64" \
               EXECUTABLE=./aarch64-linux-user/qemu-aarch64
      
      The existing docker-foo@bar targets still work but the inline
      verification has been dropped because we already don't hit that due to
      other pattern rules in rules.mak.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      
      Message-Id: <20161011161625.9070-5-alex.bennee@linaro.org>
      Message-Id: <20161011161625.9070-6-alex.bennee@linaro.org>
      [Squash in the verification removal patch. - Fam]
      Signed-off-by: NFam Zheng <famz@redhat.com>
      e86c9a64
    • A
      tests/docker: make test-mingw honour TARGET_LIST · 86a17cb3
      Alex Bennée 提交于
      The other builders honour this variable, so should the mingw build.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20161011161625.9070-4-alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      86a17cb3
    • A
      tests/docker: test-build script · bdecba6e
      Alex Bennée 提交于
      Much like test-quick but only builds. This is useful for some of the
      build targets like ThreadSanitizer that don't yet pass "make check".
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      
      Message-Id: <20161011161625.9070-3-alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      bdecba6e
    • A
      tests/docker: add travis dockerfile · 8b9b3177
      Alex Bennée 提交于
      This target grabs the latest Travis containers from their repository at
      quay.io and then installs QEMU's build dependencies. With this it is
      possible to run on broadly the same setup as they have on travis-ci.org.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20161011161625.9070-2-alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      8b9b3177
  2. 13 10月, 2016 31 次提交