Skip to content
Snippets Groups Projects
  1. Jul 06, 2020
  2. Apr 30, 2019
  3. Jul 17, 2017
  4. Jun 26, 2017
  5. Feb 21, 2017
  6. Oct 07, 2016
  7. Mar 22, 2016
  8. Feb 06, 2015
  9. Oct 20, 2014
  10. Jul 14, 2014
  11. Jun 16, 2014
  12. Sep 25, 2013
  13. Dec 19, 2012
  14. Aug 10, 2012
  15. Apr 05, 2012
  16. Feb 09, 2012
    • Stefan Hajnoczi's avatar
      qed: add .bdrv_co_write_zeroes() support · 0e71be19
      Stefan Hajnoczi authored
      
      Zero writes are a dedicated interface for writing regions of zeroes into
      the image file.  If clusters are not yet allocated it is possible to use
      an efficient metadata representation which keeps the image file compact
      and does not store individual zero bytes.
      
      Implementing this for the QED image format is fairly straightforward.
      The only issue is that when a zero write touches an existing cluster we
      have to allocate a bounce buffer and perform a regular write.
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      0e71be19
    • Stefan Hajnoczi's avatar
      qed: replace is_write with flags field · 6e4f59bd
      Stefan Hajnoczi authored
      
      Per-request attributes like read/write are currently implemented as bool
      fields in the QEDAIOCB struct.  This becomes unwiedly as the number of
      attributes grows.  For example, the qed_aio_setup() function would have
      to take multiple bool arguments and at call sites it would be hard to
      distinguish the meaning of each bool.
      
      Instead use a flags field with bitmask constants.  This will be used
      when zero write support is added.
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      6e4f59bd
  17. Nov 21, 2011
  18. May 18, 2011
    • Stefan Hajnoczi's avatar
      qed: Periodically flush and clear need check bit · 6f321e93
      Stefan Hajnoczi authored
      
      One strategy to limit the startup delay of consistency check when
      opening image files is to ensure that the file is marked dirty for as
      little time as possible.
      
      QED currently marks the image dirty when the first allocating write
      request is issued and clears the dirty bit again when the image is
      cleanly closed.  In practice that means the image is marked dirty for
      most of a guest's lifetime and prone to being in a dirty state upon
      crash or power failure.
      
      It is safe to clear the dirty bit after all allocating write requests
      have completed and a flush has been performed.  This patch adds a timer
      after the last allocating write request completes.  When the timer fires
      it will flush and then clear the dirty bit.  The timer is set to 5
      seconds and is cancelled upon arrival of a new allocating write request.
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      6f321e93
  19. Apr 27, 2011
  20. Apr 13, 2011
  21. Dec 17, 2010
Loading