Skip to content

Commits

Permalink
block-replicat…
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on May 8, 2015

  1. Implement new driver for block replication

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    9fa1464 View commit details
    Browse the repository at this point in the history
  2. quorum: allow ignoring child errors

    If the child is not ready, read/write/getlength/flush will
    return -errno. It is not critical error, and can be ignored:
    1. read/write:
       Just not report the error event.
    2. getlength:
       just ignore it. If all children's getlength return -errno,
       and be ignored, return -EIO.
    3. flush:
       Just ignore it. If all children's getlength return -errno,
       and be ignored, return 0.
    
    Usage: children.x.ignore-errors=true
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    01f56d2 View commit details
    Browse the repository at this point in the history
  3. quorum: implement block driver interfaces for block replication

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    dcefc14 View commit details
    Browse the repository at this point in the history
  4. skip nbd_target when starting block replication

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    d954af0 View commit details
    Browse the repository at this point in the history
  5. Add new block driver interfaces to control block replication

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Cc: Luiz Capitulino <lcapitulino@redhat.com>
    Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    92c7003 View commit details
    Browse the repository at this point in the history
  6. NBD client: connect to nbd server later

    The secondary qemu starts later than the primary qemu, so we
    cannot connect to nbd server in bdrv_open(). Introduce a new
    open flags to control it.
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    41eab06 View commit details
    Browse the repository at this point in the history
  7. Introduce a new -drive option to control whether to connect to remote…

    … target
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    430f4da View commit details
    Browse the repository at this point in the history
  8. NBD client: implement block driver interfaces to connect/disconnect N…

    …BD server
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    25f1439 View commit details
    Browse the repository at this point in the history
  9. Add new block driver interface to connect/disconnect the remote target

    In some cases, we want to connect/disconnect the remote target when
    we need, not in bdrv_open()/bdrv_close().
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    2cf0a5d View commit details
    Browse the repository at this point in the history
  10. Don't allow a disk use backing reference target

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    1667fba View commit details
    Browse the repository at this point in the history
  11. Backup: clear all bitmap when doing block checkpoint

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Cc: Jeff Cody <jcody@redhat.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    96aee77 View commit details
    Browse the repository at this point in the history
  12. block: Parse "backing_reference" option to reference existing BDS

    Usage:
    -drive file=xxx,id=Y, \
    -drive file=xxxx,id=X,backing_reference.drive_id=Y,backing_reference.hidden-disk.*
    
    It will create such backing chain:
                   {virtio-blk dev 'Y'}                                      {virtio-blk dev 'X'}
                             |                                                          |
                             |                                                          |
                             v                                                          v
    
        [base] <- [mid] <- ( Y )  <----------------- (hidden target) <--------------- ( X )
    
                             v                              ^
                             v                              ^
                             v                              ^
                             v                              ^
                             >>>> drive-backup sync=none >>>>
    
    X's backing file is hidden-disk, and hidden-disk's backing file is Y.
    Disk Y may be opened or reopened in read-write mode, so A block backup
    job is automatically created: source is Y and target is hidden disk.
    Active disk X, hidden disk, and Y are all on the same AioContext.
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    a1f3a56 View commit details
    Browse the repository at this point in the history
  13. Allow creating backup jobs when opening BDS

    When opening BDS, we need to create backup jobs for
    image-fleecing.
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Cc: Jeff Cody <jcody@redhat.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    23dfdad View commit details
    Browse the repository at this point in the history
  14. allow writing to the backing file

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    0730a3b View commit details
    Browse the repository at this point in the history
  15. docs: block replication's description

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    69f7e49 View commit details
    Browse the repository at this point in the history
  16. util/hbitmap: Add an API to reset all set bits in hbitmap

    The function bdrv_clear_dirty_bitmap() is updated to use
    faster hbitmap_reset_all() call.
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    wencongyang committed May 8, 2015
    Copy the full SHA
    013ee69 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2015

  1. Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into s…

    …taging
    
    Block patches
    
    # gpg: Signature made Thu Apr 30 19:51:16 2015 BST using RSA key ID C88F2FD6
    # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
    
    * remotes/kevin/tags/for-upstream:
      Enable NVMe start controller for Windows guest.
      MAINTAINERS: Add qemu-block list where missing
      MAINTAINERS: make block layer core Kevin Wolf's responsibility
      MAINTAINERS: make image fuzzer Stefan Hajnoczi's responsibility
      MAINTAINERS: make block I/O path Stefan Hajnoczi's responsibility
      MAINTAINERS: split out image formats
      MAINTAINERS: make virtio-blk Stefan Hajnoczi's responsibility
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 30, 2015
    Copy the full SHA
    5bccbb0 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2…

    …015-04-30' into staging
    
    trivial patches for 2015-04-30
    
    # gpg: Signature made Thu Apr 30 14:07:50 2015 BST using RSA key ID A4C3D7DB
    # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
    # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
    # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
    
    * remotes/mjt/tags/pull-trivial-patches-2015-04-30: (42 commits)
      openrisc: cpu: Remove unused cpu_get_pc
      microblaze: fix memory leak
      tcg: Delete unused cpu_pc_from_tb()
      kvm: Silence warning from valgrind
      vhost-user: remove superfluous '\n' around error_report()
      target-mips: fix memory leak
      qmp-commands: Fix typo
      linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it
      coroutine: remove unnecessary parentheses in qemu_co_queue_empty
      qemu-char: remove unused list node from FDCharDriver
      input: remove unused mouse_handlers list
      cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)
      microblaze: cpu: delete unused cpu_interrupts_enabled
      microblaze: cpu: Renumber EXCP_* constants to close gap
      microblaze: cpu: Delete EXCP_NMI
      microblaze: cpu: Remove unused CC_OP enum
      microblaze: cpu: Remote unused cpu_get_pc
      microblaze: mmu: Delete flip_um fn prototype
      defconfigs: Piggyback microblazeel on microblaze
      libcacard: do not use full paths for include files in the same dir
      ...
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 30, 2015
    Copy the full SHA
    f90f5b9 View commit details
    Browse the repository at this point in the history
  3. Enable NVMe start controller for Windows guest.

    Windows seems to send two separate calls to NVMe controller configuration. The
    first sends configuration info and the second the enable bit. I couldn't
    enable the Windows 8.1 in-box NVMe driver with base Qemu. I made the
    following change to store the configuration data and then handle enable and
    NVMe driver works on Windows 8.1.
    
    I am not a Windows expert and I'm not entirely sure this is the correct
    approach. I'm offering it for anyone who wishes to use NVMe on Windows 8.1
    using Qemu.
    
    I have tested this change with Linux and Windows guests with NVMe devices.
    
    Signed-off-by: Daniel Stekloff <dan@wendan.org>
    Acked-by: Keith Busch <keith.busch@intel.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Daniel Stekloff authored and Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    4a4d614 View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150430' int…

    …o staging
    
    First pile of s390x patches for 2.4, including:
    - some cleanup patches
    - sort most of the s390x devices into categories
    - support for the new STSI post handler, used to insert vm name and
      friends
    - support for the new MEM_OP ioctl (including access register mode)
      for accessing guest memory
    
    # gpg: Signature made Thu Apr 30 12:56:58 2015 BST using RSA key ID C6F02FAF
    # gpg: Good signature from "Cornelia Huck <huckc@linux.vnet.ibm.com>"
    # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
    
    * remotes/cohuck/tags/s390x-20150430:
      kvm: better advice for failed s390x startup
      s390x/kvm: Support access register mode for KVM_S390_MEM_OP ioctl
      s390x/mmu: Use ioctl for reading and writing from/to guest memory
      s390x/kvm: Put vm name, extended name and UUID into STSI322 SYSIB
      linux-headers: update
      s390x/mmu: Use access type definitions instead of magic values
      s390x/ipl: sort into categories
      sclp: sort into categories
      s390-virtio: sort into categories
      virtio-ccw: sort into categories
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 30, 2015
    Copy the full SHA
    4981475 View commit details
    Browse the repository at this point in the history
  5. MAINTAINERS: Add qemu-block list where missing

    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    c95e4c0 View commit details
    Browse the repository at this point in the history
  6. MAINTAINERS: make block layer core Kevin Wolf's responsibility

    Kevin is now sole maintainer of the core block layer, including
    BlockDriverState graphs and monitor commands.
    
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Stefan Hajnoczi authored and Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    17f1e8f View commit details
    Browse the repository at this point in the history
  7. MAINTAINERS: make image fuzzer Stefan Hajnoczi's responsibility

    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Stefan Hajnoczi authored and Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    abfe4e9 View commit details
    Browse the repository at this point in the history
  8. MAINTAINERS: make block I/O path Stefan Hajnoczi's responsibility

    The block I/O path includes the asynchronous I/O machinery and
    read/write/flush/discard processing.  It somewhat arbitrarily also
    includes block migration, which I've found myself reviewing patches for
    over the years.
    
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Stefan Hajnoczi authored and Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    d55053b View commit details
    Browse the repository at this point in the history
  9. MAINTAINERS: split out image formats

    Block driver submaintainers has proven to be a good model.  Kevin and
    Stefan are splitting up the unclaimed block drivers so each has a
    dedicated maintainer.
    
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Stefan Hajnoczi authored and Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    e7c6e63 View commit details
    Browse the repository at this point in the history
  10. MAINTAINERS: make virtio-blk Stefan Hajnoczi's responsibility

    Cc: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Stefan Hajnoczi authored and Kevin Wolf committed Apr 30, 2015
    Copy the full SHA
    b457a5f View commit details
    Browse the repository at this point in the history
  11. openrisc: cpu: Remove unused cpu_get_pc

    This function is not used by anything. Remove.
    
    Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
    Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    pcrost authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    5530293 View commit details
    Browse the repository at this point in the history
  12. microblaze: fix memory leak

    When not assign a -dtb argument, the variable dtb_filename
    storage returned from qemu_find_file(), which should be freed
    after use. Alternatively we define a local variable filename,
    with 'char *' type, free after use.
    
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    gongleiarei authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    4d85040 View commit details
    Browse the repository at this point in the history
  13. tcg: Delete unused cpu_pc_from_tb()

    No code uses the cpu_pc_from_tb() function. Delete from tricore and
    arm which each provide an unused implementation. Update the comment
    in tcg.h to reflect that this is obsoleted by synchronize_from_tb.
    
    Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    pcrost authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    fee068e View commit details
    Browse the repository at this point in the history
  14. kvm: Silence warning from valgrind

    valgrind complains here about uninitialized bytes with the following message:
    
    ==17814== Syscall param ioctl(generic) points to uninitialised byte(s)
    ==17814==    at 0x466A780: ioctl (in /usr/lib64/power8/libc-2.17.so)
    ==17814==    by 0x100735B7: kvm_vm_ioctl (kvm-all.c:1920)
    ==17814==    by 0x10074583: kvm_set_ioeventfd_mmio (kvm-all.c:574)
    
    Let's fix it by using a proper struct initializer in kvm_set_ioeventfd_mmio().
    
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    huth authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    2ed0c3d View commit details
    Browse the repository at this point in the history
  15. vhost-user: remove superfluous '\n' around error_report()

    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    gongleiarei authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    ab7c5aa View commit details
    Browse the repository at this point in the history
  16. target-mips: fix memory leak

    Coveristy reports that variable prom_buf/params_buf going
    out of scope leaks the storage it points to.
    
    Cc: Aurelien Jarno <aurelien@aurel32.net>
    Cc: Leon Alrae <leon.alrae@imgtec.com>
    Signed-off-by: Gonglei <arei.gonglei@huawei.com>
    Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    gongleiarei authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    3ad9fd5 View commit details
    Browse the repository at this point in the history
  17. qmp-commands: Fix typo

    Just a trivial patch to correct a QMP example in qmp-commands.hx.
    
    Signed-off-by: John Snow <jsnow@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    jnsnow authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    5403432 View commit details
    Browse the repository at this point in the history
  18. linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it

    Signed-off-by: Emilio G. Cota <cota@braap.org>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    cota authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    52a53af View commit details
    Browse the repository at this point in the history
  19. coroutine: remove unnecessary parentheses in qemu_co_queue_empty

    Signed-off-by: Emilio G. Cota <cota@braap.org>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    cota authored and Michael Tokarev committed Apr 30, 2015
    Copy the full SHA
    b1201ad View commit details
    Browse the repository at this point in the history
Older