1. 28 3月, 2017 3 次提交
    • P
      tests/virtio-9p-test: Don't call le*_to_cpus on fields of packed struct · 34ef723c
      Peter Maydell 提交于
      For a packed struct like 'P9Hdr' the fields within it may not be
      aligned as much as the natural alignment for their types.  This means
      it is not valid to pass the address of such a field to a function
      like le32_to_cpus() which operate on uint32_t* and assume alignment.
      Doing this results in a SIGBUS on hosts like SPARC which have strict
      alignment requirements.
      
      Use ldl_le_p() instead, which is specified to correctly handle
      unaligned pointers.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NGreg Kurz <groug@kaod.org>
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      34ef723c
    • L
      9pfs: fix file descriptor leak · d63fb193
      Li Qiang 提交于
      The v9fs_create() and v9fs_lcreate() functions are used to create a file
      on the backend and to associate it to a fid. The fid shouldn't be already
      in-use, otherwise both functions may silently leak a file descriptor or
      allocated memory. The current code doesn't check that.
      
      This patch ensures that the fid isn't already associated to anything
      before using it.
      Signed-off-by: NLi Qiang <liqiang6-s@360.cn>
      (reworded the changelog, Greg Kurz)
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      d63fb193
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · eb06c9e2
      Peter Maydell 提交于
      * MTTCG fix for win32
      * virtio-scsi assertion failure
      * mem-prealloc coverity fix
      * x86 migration revert which requires more thought
      * x86 instruction limit (avoids >2 page translation blocks)
      * nbd dead code cleanup
      * small memory.c logic fix
      
      # gpg: Signature made Mon 27 Mar 2017 17:03:04 BST
      # gpg:                using RSA key 0xBFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream:
        scsi-generic: Fill in opt_xfer_len in INQUIRY reply if it is zero
        Revert "apic: save apic_delivered flag"
        nbd: drop unused NBDClientSession.is_unix field
        win32: replace custom mutex and condition variable with native primitives
        mem-prealloc: fix sysconf(_SC_NPROCESSORS_ONLN) failure case.
        tcg/i386: Check the size of instruction being translated
        virtio-scsi: Fix acquire/release in dataplane handlers
        virtio-scsi: Make virtio_scsi_acquire/release public
        clear pending status before calling memory commit
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      eb06c9e2
  2. 27 3月, 2017 17 次提交
  3. 24 3月, 2017 13 次提交
  4. 23 3月, 2017 7 次提交
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.9-20170323' into staging · 032e95af
      Peter Maydell 提交于
      ppc patch queue for 2017-03-23
      
      Just a single bugfix in this batch.  It's not strictly in ppc code,
      though it's for the pseries machine's benefit.  Eduardo suggested it
      go through my tree however.
      
      # gpg: Signature made Thu 23 Mar 2017 10:09:17 GMT
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.9-20170323:
        numa,spapr: align default numa node memory size to 256MB
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      032e95af
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20170323' into staging · 21c84c91
      Peter Maydell 提交于
      Fix linux-user vs. cpu models.
      
      # gpg: Signature made Thu 23 Mar 2017 09:56:13 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-20170323:
        target/s390x: Fix broken user mode
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      21c84c91
    • P
      Merge remote-tracking branch 'remotes/gonglei/tags/cryptodev-next-20170323' into staging · b79fbb2d
      Peter Maydell 提交于
      cryptodev fixes
      
      # gpg: Signature made Thu 23 Mar 2017 09:22:44 GMT
      # gpg:                using RSA key 0x2ED7FDE9063C864D
      # gpg: Good signature from "Gonglei <arei.gonglei@huawei.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: 3EF1 8E53 3459 E6D1 963A  3C05 2ED7 FDE9 063C 864D
      
      * remotes/gonglei/tags/cryptodev-next-20170323:
        cryptodev: fix asserting single queue
        cryptodev: setiv only when really need
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b79fbb2d
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2017-03-22-v3' into staging · d81d857f
      Peter Maydell 提交于
      QAPI patches for 2017-03-22
      
      # gpg: Signature made Wed 22 Mar 2017 18:25:15 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-qapi-2017-03-22-v3:
        qapi: Fix QemuOpts visitor regression on unvisited input
        qom: Avoid unvisited 'id'/'qom-type' in user_creatable_add_opts
        tests: Expose regression in QemuOpts visitor
        test-qobject-input-visitor: Cover visit_type_uint64()
        Revert "hostmem: fix QEMU crash by 'info memdev'"
        qapi: Fix string input visitor regression for empty lists
        qapi2texi: Fix translation of *strong* and _emphasized_
        tests/qapi-schema: Systematic positive doc comment tests
        tests/qapi-schema: Make test-qapi.py print docs again
        qapi: Drop unused QAPIDoc member optional
        qapi2texi: Fix to actually fail when 'doc-required' is false
        qapi: Drop excessive Make dependencies on qapi2texi.py
        MAINTAINERS: Add myself for files I touched recently
        keyval: Document issues with 'any' and alternate types
        test-keyval: Cover alternate and 'any' type
        keyval: Improve some comments
        test-keyval: Tweaks to improve list coverage
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d81d857f
    • P
      Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging · e6ebebc2
      Peter Maydell 提交于
      # gpg: Signature made Wed 22 Mar 2017 17:28:56 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:
        blockjob: add devops to blockjob backends
        block-backend: add drained_begin / drained_end ops
        blockjob: add block_job_start_shim
        blockjob: avoid recursive AioContext locking
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e6ebebc2
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 2077cabc
      Peter Maydell 提交于
      virtio, pc: fixes
      
      virtio and misc fixes for 2.9.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Wed 22 Mar 2017 16:29:50 GMT
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream:
        hw/acpi/vmgenid: prevent more than one vmgenid device
        hw/acpi/vmgenid: prevent device realization on pre-2.5 machine types
        virtio: always use handle_aio_output if registered
        virtio: Fix error handling in virtio_bus_device_plugged
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2077cabc
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging · ad3c6418
      Peter Maydell 提交于
      # gpg: Signature made Wed 22 Mar 2017 12:54:29 GMT
      # gpg:                using RSA key 0x9CA4ABB381AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * remotes/stefanha/tags/block-pull-request:
        parallels: fix default options parsing
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ad3c6418