1. 08 8月, 2017 2 次提交
  2. 07 8月, 2017 1 次提交
  3. 02 8月, 2017 1 次提交
  4. 01 8月, 2017 2 次提交
  5. 31 7月, 2017 2 次提交
  6. 25 7月, 2017 2 次提交
  7. 24 7月, 2017 3 次提交
    • K
      block: Skip implicit nodes in query-block/blockstats · d3c8c674
      Kevin Wolf 提交于
      Commits 0db832f4 and 6cdbceb1 introduced the automatic insertion of filter
      nodes above the top layer of mirror and commit block jobs. The
      assumption made there was that since libvirt doesn't do node-level
      management of the block layer yet, it shouldn't be affected by added
      nodes.
      
      This is true as far as commands issued by libvirt are concerned. It only
      uses BlockBackend names to address nodes, so any operations it performs
      still operate on the root of the tree as intended.
      
      However, the assumption breaks down when you consider query commands,
      which return data for the wrong node now. These commands also return
      information on some child nodes (bs->file and/or bs->backing), which
      libvirt does make use of, and which refer to the wrong nodes, too.
      
      One of the consequences is that oVirt gets wrong information about the
      image size and stops the VM in response as long as a mirror or commit
      job is running:
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1470634
      
      This patch fixes the problem by hiding the implicit nodes created
      automatically by the mirror and commit block jobs in the output of
      query-block and BlockBackend-based query-blockstats as long as the user
      doesn't indicate that they are aware of those nodes by providing a node
      name for them in the QMP command to start the block job.
      
      The node-based commands query-named-block-nodes and query-blockstats
      with query-nodes=true still show all nodes, including implicit ones.
      This ensures that users that are capable of node-level management can
      still access the full information; users that only know BlockBackends
      won't use these commands.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Tested-by: NEric Blake <eblake@redhat.com>
      d3c8c674
    • E
      qcow2: Fix sector calculation in qcow2_measure() · 24bae02b
      Eric Blake 提交于
      We used MAX() instead of the intended MIN() when computing how many
      sectors to view in the current loop iteration of qcow2_measure(),
      and passed in a value of INT_MAX sectors instead of our more usual
      limit of BDRV_REQUEST_MAX_SECTORS (the latter avoids 32-bit overflow
      on conversion to bytes).  For small files, the bug is harmless:
      bdrv_get_block_status_above() clamps its *pnum answer to the BDS
      size, regardless of any insanely larger input request.  However, for
      any file at least 2T in size, we can very easily end up going into an
      infinite loop (the maximum of 0x100000000 sectors and INT_MAX is a
      64-bit quantity, which becomes 0 when assigned to int; once nb_sectors
      is 0, we never make progress).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      24bae02b
    • E
      dirty-bitmap: Report BlockDirtyInfo.count in bytes, as documented · 6c98c57a
      Eric Blake 提交于
      We've been documenting the value in bytes since its introduction
      in commit b9a9b3a4 (v1.3), where it was actually reported in bytes.
      
      Commit e4654d2d (v2.0) then removed things from block/qapi.c, in
      preparation for a rewrite to a list of dirty sectors in the next
      commit 21b56835 in block.c, but the new code mistakenly started
      reporting in sectors.
      
      Fixes: https://bugzilla.redhat.com/1441460
      
      CC: qemu-stable@nongnu.org
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6c98c57a
  8. 21 7月, 2017 1 次提交
  9. 18 7月, 2017 15 次提交
  10. 17 7月, 2017 11 次提交