1. 07 3月, 2012 1 次提交
  2. 29 2月, 2012 3 次提交
  3. 23 2月, 2012 1 次提交
  4. 09 2月, 2012 8 次提交
    • M
      sheepdog: fix co_recv coroutine context · 6d1acda8
      MORITA Kazutaka 提交于
      The co_recv coroutine has two things that will try to enter it:
      
        1. The select(2) read callback on the sheepdog socket.
        2. The aio_add_request() blocking operations, including a coroutine
           mutex.
      
      This patch fixes it by setting NULL to co_recv before sending data.
      
      In future, we should make the sheepdog driver fully coroutine-based
      and simplify request handling.
      Signed-off-by: NMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6d1acda8
    • K
      qcow2: Keep unknown header extension when rewriting header · 75bab85c
      Kevin Wolf 提交于
      If we want header extensions to work as compatible extensions, we can't
      destroy yet unknown header extensions when rewriting the header (e.g.
      for changing the backing file). Save all unknown header extensions in a
      list of blobs and include them in a new header.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      75bab85c
    • K
      qcow2: Update whole header at once · e24e49e6
      Kevin Wolf 提交于
      In order to switch the backing file, qcow2 issues multiple write
      requests that only changed a part of the image header. Any failure after
      the first one would leave the header in an corrupted state. With this
      patch, the whole header is written at once, so we can't fail in the
      middle.
      
      At the same time, this gives us a reusable functions that updates all
      fields of the qcow2 header and not only the backing file.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e24e49e6
    • K
      vpc: Round up image size during fixed image creation · ecd880d9
      Kevin Wolf 提交于
      The geometry calculation algorithm from the VHD spec rounds the image
      size down if it doesn't exactly match a geometry. During image
      conversion, this causes the image to be truncated. For dynamic images,
      we already have code in place to round up instead, let's do the same for
      fixed images.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      ecd880d9
    • C
      vpc: Add support for Fixed Disk type · 24da78db
      Charles Arnold 提交于
      The Virtual Hard Disk Image Format Specification allows for three
      types of hard disk formats, Fixed, Dynamic, and Differencing.  Qemu
      currently only supports Dynamic disks.  This patch adds support for
      the Fixed Disk format.
      
      Usage:
          Example 1: qemu-img create -f vpc -o type=fixed <filename> [size]
          Example 2: qemu-img convert -O vpc -o type=fixed <input filename> <output filename>
      
      While it is also allowed to specify '-o type=dynamic', the default disk type
      remains Dynamic and is what is used when the type is left unspecified.
      Signed-off-by: NCharles Arnold <carnold@suse.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      24da78db
    • R
      iSCSI: add configuration variables for iSCSI · f9dadc98
      Ronnie Sahlberg 提交于
      This patch adds configuration variables for iSCSI to set
      initiator-name to use when logging in to the target,
      which type of header-digest to negotiate with the target
      and username and password for CHAP authentication.
      
      This allows specifying a initiator-name either from the command line
      -iscsi initiator-name=iqn.2004-01.com.example:test
      or from a configuration file included with -readconfig
          [iscsi]
            initiator-name = iqn.2004-01.com.example:test
            header-digest = CRC32C|CRC32C-NONE|NONE-CRC32C|NONE
            user = CHAP username
            password = CHAP password
      
      If you use several different targets, you can also configure this on a per
      target basis by using a group name:
          [iscsi "iqn.target.name"]
          ...
      
      The configuration file can be read using -readconfig.
      Example :
      qemu-system-i386 -drive file=iscsi://127.0.0.1/iqn.ronnie.test/1
       -readconfig iscsi.conf
      Signed-off-by: NRonnie Sahlberg <ronniesahlberg@gmail.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f9dadc98
    • S
      qed: add .bdrv_co_write_zeroes() support · 0e71be19
      Stefan Hajnoczi 提交于
      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: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      0e71be19
    • S
      qed: replace is_write with flags field · 6e4f59bd
      Stefan Hajnoczi 提交于
      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: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6e4f59bd
  5. 26 1月, 2012 8 次提交
  6. 14 1月, 2012 1 次提交
  7. 13 1月, 2012 1 次提交
  8. 22 12月, 2011 8 次提交
  9. 15 12月, 2011 6 次提交
  10. 06 12月, 2011 1 次提交
  11. 05 12月, 2011 2 次提交