1. 12 7月, 2018 5 次提交
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180712' into staging · ff82d3c7
      Peter Maydell 提交于
      - fix confusion around sizes in storage attribute migration
      - remove NULL check on error_propagate() in virtio-ccw
      
      # gpg: Signature made Thu 12 Jul 2018 10:27:28 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-20180712:
        error: Remove NULL checks on error_propagate() calls
        s390x/storage attributes: fix CMMA_BLOCK_SIZE usage
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ff82d3c7
    • P
      Merge remote-tracking branch 'remotes/awilliam/tags/vfio-fixes-20180711.1' into staging · 87130a0d
      Peter Maydell 提交于
      VFIO fixes 2018-07-11
      
       - Avoid RAMBlock segfault in option ROM teardown for vfio-pci devices
         (Cédric Le Goater)
      
      # gpg: Signature made Wed 11 Jul 2018 20:44:44 BST
      # gpg:                using RSA key 239B9B6E3BB08B22
      # 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-fixes-20180711.1:
        vfio/pci: do not set the PCIDevice 'has_rom' attribute
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      87130a0d
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2018-07-11' into staging · 7411faed
      Peter Maydell 提交于
      Monitor patches for 2018-07-11
      
      # gpg: Signature made Wed 11 Jul 2018 20:12:31 BST
      # gpg:                using RSA key 3870B400EB918653
      # 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-monitor-2018-07-11:
        monitor: fix double-free of request error
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7411faed
    • C
      vfio/pci: do not set the PCIDevice 'has_rom' attribute · 26c0ae56
      Cédric Le Goater 提交于
      PCI devices needing a ROM allocate an optional MemoryRegion with
      pci_add_option_rom(). pci_del_option_rom() does the cleanup when the
      device is destroyed. The only action taken by this routine is to call
      vmstate_unregister_ram() which clears the id string of the optional
      ROM RAMBlock and now, also flags the RAMBlock as non-migratable. This
      was recently added by commit b895de50 ("migration: discard
      non-migratable RAMBlocks"), .
      
      VFIO devices do their own loading of the PCI option ROM in
      vfio_pci_size_rom(). The memory region is switched to an I/O region
      and the PCI attribute 'has_rom' is set but the RAMBlock of the ROM
      region is not allocated. When the associated PCI device is deleted,
      pci_del_option_rom() calls vmstate_unregister_ram() which tries to
      flag a NULL RAMBlock, leading to a SEGV.
      
      It seems that 'has_rom' was set to have memory_region_destroy()
      called, but since commit 469b046e ("memory: remove
      memory_region_destroy") this is not necessary anymore as the
      MemoryRegion is freed automagically.
      
      Remove the PCIDevice 'has_rom' attribute setting in vfio.
      
      Fixes: b895de50 ("migration: discard non-migratable RAMBlocks")
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
      26c0ae56
    • M
      monitor: fix double-free of request error · 42eab8db
      Marc-André Lureau 提交于
      qmp_error_response() will free the given error. Fix double-free in
      later qmp_request_free().
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20180705164201.9853-1-marcandre.lureau@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Fixes: 1cc37471Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      42eab8db
  2. 11 7月, 2018 4 次提交
    • P
      error: Remove NULL checks on error_propagate() calls · 78dcf512
      Philippe Mathieu-Daudé 提交于
      Patch created mechanically by rerunning:
      
        $  spatch --sp-file scripts/coccinelle/error_propagate_null.cocci \
                  --macro-file scripts/cocci-macro-file.h \
                  --dir . --in-place
      Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-Id: <20180705155811.20366-3-f4bug@amsat.org>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      78dcf512
    • C
      s390x/storage attributes: fix CMMA_BLOCK_SIZE usage · 17f45666
      Claudio Imbrenda 提交于
      The macro CMMA_BLOCK_SIZE was defined but not used, and a hardcoded
      value was instead used in the code.
      
      This patch fixes the value of CMMA_BLOCK_SIZE and uses it in the
      appropriate place in the code, and fixes another case of hardcoded
      value in the KVM backend, replacing it with the more appropriate
      constant KVM_S390_CMMA_SIZE_MAX.
      Signed-off-by: NClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
      Message-Id: <1530787170-3101-1-git-send-email-imbrenda@linux.vnet.ibm.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      17f45666
    • P
      Update version for v3.0.0-rc0 release · c447afd5
      Peter Maydell 提交于
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c447afd5
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 7851f1a7
      Peter Maydell 提交于
      Block layer patches:
      
      - Copy offloading fixes for when the copy increases the image size
      - Temporary revert of the removal of deprecated -drive options
      - Fix request serialisation in the image fleecing scenario
      - Fix copy-on-read crash with unaligned image size
      - Fix another drain crash
      
      # gpg: Signature made Tue 10 Jul 2018 16:37:52 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: (24 commits)
        block: Use common write req handling in truncate
        block: Fix bdrv_co_truncate overlap check
        block: Use common req handling in copy offloading
        block: Use common req handling for discard
        block: Fix handling of image enlarging write
        block: Extract common write req handling
        block: Use uint64_t for BdrvTrackedRequest byte fields
        block: Use BdrvChild to discard
        block: Add copy offloading trace points
        block: Prefix file driver trace points with "file_"
        Revert "block: Remove deprecated -drive geometry options"
        Revert "block: Remove deprecated -drive option addr"
        Revert "block: Remove deprecated -drive option serial"
        Revert "block: Remove dead deprecation warning code"
        block/blklogwrites: Make sure the log sector size is not too small
        qapi/block-core.json: Add missing documentation for blklogwrites log-append option
        block/backup: fix fleecing scheme: use serialized writes
        block: add BDRV_REQ_SERIALISING flag
        block: split flags in copy_range
        block/io: fix copy_range
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7851f1a7
  3. 10 7月, 2018 31 次提交