1. 16 9月, 2014 2 次提交
    • P
      Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging · cc35a44c
      Peter Maydell 提交于
      * remotes/qmp-unstable/queue/qmp:
        exec: file_ram_alloc(): print error when prealloc fails
        monitor: fix debug print compiling error
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      cc35a44c
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · f2bcdc8d
      Peter Maydell 提交于
      Block patches
      
      # gpg: Signature made Fri 12 Sep 2014 16:09:43 BST using RSA key ID C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      
      * remotes/kevin/tags/for-upstream: (22 commits)
        qcow2: Add falloc and full preallocation option
        raw-posix: Add falloc and full preallocation option
        qapi: introduce PreallocMode and new PreallocModes full and falloc.
        block: don't convert file size to sector size
        block: round up file size to nearest sector
        iotests: Send the correct fd in socket_scm_helper
        blockdev: Refuse to drive_del something added with blockdev-add
        block: extend BLOCK_IO_ERROR with reason string
        dataplane: fix virtio_blk_data_plane_create() op blocker error path
        qemu-iotests: Run 025 for Archipelago block driver
        block/archipelago: Implement bdrv_truncate()
        block: Make the block accounting functions operate on BlockAcctStats
        block: rename BlockAcctType members to start with BLOCK_ instead of BDRV_
        block: Extract the block accounting code
        block: Extract the BlockAcctStats structure
        IDE: MMIO IDE device control should be little endian
        thread-pool: Drop unnecessary includes
        xen: Drop redundant bdrv_close() from pci_piix3_xen_ide_unplug()
        xen_disk: Plug memory leak on error path
        qemu-io: Clean up openfile() after commit 2e40134b
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f2bcdc8d
  2. 15 9月, 2014 3 次提交
  3. 12 9月, 2014 34 次提交
  4. 11 9月, 2014 1 次提交
    • M
      blockdev: Refuse to drive_del something added with blockdev-add · 48f364dd
      Markus Armbruster 提交于
      For some device models, the guest can prevent unplug.  Some users need a
      way to forcibly revoke device model access to the block backend then, so
      the underlying images can be safely used for something else.
      
      drive_del lets you do that.  Unfortunately, it conflates revoking access
      with destroying the backend.
      
      Commit 9063f814 made drive_del immediately destroy the root BDS.  Nice:
      the device name becomes available for reuse immediately.  Not so nice:
      the device model's pointer to the root BDS dangles, and we're prone to
      crash when the memory gets reused.
      
      Commit d22b2f41 fixed that by hiding the root BDS instead of destroying
      it.  Destruction only happens on unplug.  "Hiding" means removing it
      from bdrv_states and graph_bdrv_states; see bdrv_make_anon().
      
      This "destroy on revoke" is a misfeature we don't want to carry
      forward to blockdev-add, just like "destroy on unplug" (commit
      2d246f01).  So make drive_del fail on anything added with blockdev-add.
      
      We'll add separate QMP commands to revoke device model access and to
      destroy backends.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      48f364dd