1. 09 2月, 2012 3 次提交
    • S
      block: add .bdrv_co_write_zeroes() interface · f08f2dda
      Stefan Hajnoczi 提交于
      The ability to zero regions of an image file is a useful primitive for
      higher-level features such as image streaming or zero write detection.
      
      Image formats may support an optimized metadata representation instead
      of writing zeroes into the image file.  This allows zero writes to be
      potentially faster than regular write operations and also preserve
      sparseness of the image file.
      
      The .bdrv_co_write_zeroes() interface should be implemented by block
      drivers that wish to provide efficient zeroing.
      
      Note that this operation is different from the discard operation, which
      may leave the contents of the region indeterminate.  That means
      discarded blocks are not guaranteed to contain zeroes and may contain
      junk data instead.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f08f2dda
    • S
      cutils: extract buffer_is_zero() from qemu-img.c · 1a6d39fd
      Stefan Hajnoczi 提交于
      The qemu-img.c:is_not_zero() function checks if a buffer contains all
      zeroes.  This function will come in handy for zero-detection in the
      block layer, so clean it up and move it to cutils.c.
      
      Note that the function now returns true if the buffer is all zeroes.
      This avoids the double-negatives (i.e. !is_not_zero()) that the old
      function can cause in callers.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      1a6d39fd
    • P
      ARM devboards: Set arm_sysctl properties before init, not after · 7a65c8cc
      Peter Maydell 提交于
      The ARM devboard models (vexpress-a9, realview, versatilepb, etc)
      were accidentally trying to set one of the arm_sysctl properties
      after device init. This has now become a fatal error; set the property
      before device init where it should be done instead.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7a65c8cc
  2. 08 2月, 2012 6 次提交
    • A
      Merge remote-tracking branch 'bonzini/qdev-props-for-anthony' into staging · a6421530
      Anthony Liguori 提交于
      * bonzini/qdev-props-for-anthony: (25 commits)
        qdev: remove unused fields from PropertyInfo
        qdev: initialize properties via QOM
        qdev: inline qdev_prop_set into qdev_prop_set_ptr
        qdev: access properties via QOM
        qdev: fix off-by-one
        qdev: let QOM free properties
        qdev: remove parse/print methods for pointer properties
        qdev: make the non-legacy pci address property accept an integer
        qdev: remove parse/print methods for mac properties
        qdev: remove print/parse methods from LostTickPolicy properties
        qdev: remove parse method for string properties
        qdev: allow reusing get/set for legacy property
        qdev: remove direct calls to print/parse
        qom: add property get/set wrappers for links
        qom: fix canonical paths vs. interfaces
        qom: use object_resolve_path_type for links
        qom: add object_resolve_path_type
        qom: fix off-by-one
        qom: add property get/set wrappers for C types
        qom: add QObject-based property get/set wrappers
        ...
      a6421530
    • A
      Merge remote-tracking branch 'aneesh/for-upstream' into staging · dc717bfd
      Anthony Liguori 提交于
      * aneesh/for-upstream:
        hw/9pfs: Remove O_NOATIME flag from 9pfs open() calls in readonly mode
        hw/9pfs: Update MAINTAINERS file
        fsdev: Fix parameter parsing for proxy helper
        hw/9pfs: Fix crash when mounting with synthfs
        hw/9pfs: Preserve S_ISGID
        hw/9pfs: Add new security model mapped-file.
      dc717bfd
    • A
      Merge remote-tracking branch 'sweil/w32' into staging · a283b1b8
      Anthony Liguori 提交于
      * sweil/w32:
        w32: Initialise critical section before starting thread (fix #922131)
        w32: Build windows and console executables
      a283b1b8
    • M
      Restore consistent formatting · cf4dc461
      malc 提交于
      Signed-off-by: Nmalc <av1474@comtv.ru>
      cf4dc461
    • S
      w32: Initialise critical section before starting thread (fix #922131) · edc1de97
      Stefan Weil 提交于
      This patch was contributed by Bogdan Harjoc. I added some assertions.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      edc1de97
    • S
      w32: Build windows and console executables · 0fa5491e
      Stefan Weil 提交于
      System emulation executables with SDL are typically windows
      executables. Sometimes console executables are more useful,
      so create both variants if linker option -mwindows was detected.
      
      v2:
      This version uses QEMU_PROGW / QEMU_PROG instead of QEMU_PROG / QEMU_PROGC.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      0fa5491e
  3. 07 2月, 2012 28 次提交
  4. 05 2月, 2012 2 次提交
  5. 04 2月, 2012 1 次提交