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 Apr 3, 2015

  1. 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 Apr 3, 2015
    Copy the full SHA
    7136c57 View commit details
    Browse the repository at this point in the history
  2. 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 Apr 3, 2015
    Copy the full SHA
    dafed6d View commit details
    Browse the repository at this point in the history
  3. qcow2: support colo

    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 Apr 3, 2015
    Copy the full SHA
    36f71c7 View commit details
    Browse the repository at this point in the history
  4. 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 Apr 3, 2015
    Copy the full SHA
    5d0e4cb View commit details
    Browse the repository at this point in the history
  5. util/hbitmap: Add an API to reset all set bits in hbitmap

    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 Apr 3, 2015
    Copy the full SHA
    bc9c4e2 View commit details
    Browse the repository at this point in the history
  6. 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 Apr 3, 2015
    Copy the full SHA
    ac51ddb View commit details
    Browse the repository at this point in the history
  7. Allow creating backup jobs when opening BDS

    When opening BDS, we need to create backup jobs for
    image-fleecing. This feature is not used by qemu-img,
    qemu-io or qemu-nbd. So just adding the referenced
    functions to stubs.
    
    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 Apr 3, 2015
    Copy the full SHA
    9878fed View commit details
    Browse the repository at this point in the history
  8. 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 Apr 3, 2015
    Copy the full SHA
    0e700c4 View commit details
    Browse the repository at this point in the history
  9. NBD client: 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 Apr 3, 2015
    Copy the full SHA
    2b0fda8 View commit details
    Browse the repository at this point in the history
  10. 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 Apr 3, 2015
    Copy the full SHA
    1f7cc6b View commit details
    Browse the repository at this point in the history
  11. 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 Apr 3, 2015
    Copy the full SHA
    950aa29 View commit details
    Browse the repository at this point in the history
  12. 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().
    
    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 Apr 3, 2015
    Copy the full SHA
    08c4167 View commit details
    Browse the repository at this point in the history
  13. 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 Apr 3, 2015
    Copy the full SHA
    7196778 View commit details
    Browse the repository at this point in the history
  14. docs: block replication's description

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.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 Apr 3, 2015
    Copy the full SHA
    04b3766 View commit details
    Browse the repository at this point in the history
  15. virtio-blk: correctly dirty guest memory

    After qemu_iovec_destroy, the QEMUIOVector's size is zeroed and
    the zero size ultimately is used to compute virtqueue_push's len
    argument.  Therefore, reads from virtio-blk devices did not
    migrate their results correctly.  (Writes were okay).
    
    Save the size in virtio_blk_handle_request, and use it when the request
    is completed.
    
    Based on a patch by Wen Congyang.
    
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini authored and wencongyang committed Apr 3, 2015
    Copy the full SHA
    7bbc602 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2015

  1. Update version for v2.3.0-rc2 release

    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 2, 2015
    Copy the full SHA
    f2155a0 View commit details
    Browse the repository at this point in the history
  2. glib-compat: fix problems with not-quite glib 2.22

    Commit 89b516d ("glib: add
    compatibility interface for g_get_monotonic_time()") aimed
    at making qemu build with old glib versions. At least SLES11SP3,
    however, contains a backport of g_get_monotonic_time() while
    keeping the reported glib version at 2.22.
    
    Let's work around this by a strategically placed #define.
    
    Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    Message-id: 1427987865-433-2-git-send-email-cornelia.huck@de.ibm.com
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    cohuck authored and pm215 committed Apr 2, 2015
    Copy the full SHA
    14655e9 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into…

    … staging
    
    Another round of small fixes.  I am not including the
    virtio-blk fix, because Wen only posted a prototype and the changes
    I made were pretty large.  It definitely needs another pair of eyes
    (but it is a 2.3 regression and a blocker).
    
    # gpg: Signature made Thu Apr  2 14:59:56 2015 BST using RSA key ID 78C7AE83
    # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
    # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
    # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
    # gpg:          It is not certain that the signature belongs to the owner.
    # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
    #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
    
    * remotes/bonzini/tags/for-upstream:
      Use $(MAKE) for recursive make
      kvm-all: Sync dirty-bitmap from kvm before kvm destroy the corresponding dirty_bitmap
      util/qemu-config: fix regression of qmp_query_command_line_options
      target-i386: clear bsp bit when designating bsp
      qga: fitering out -fstack-protector-strong
      target-i386: save 64-bit CR3 in 64-bit SMM state save area
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 2, 2015
    Copy the full SHA
    a8a7ef1 View commit details
    Browse the repository at this point in the history
  4. Use $(MAKE) for recursive make

    On BSDs "make" is typically BSD make, while "gmake" is GNU make.
    
    Signed-off-by: Ed Maste <emaste@freebsd.org>
    Message-Id: <1427911118-21905-1-git-send-email-emaste@freebsd.org>
    [Fix $(INSTALLER) too as reported by Fam Zheng. - Paolo]
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    emaste authored and bonzini committed Apr 2, 2015
    Copy the full SHA
    fb8597b View commit details
    Browse the repository at this point in the history
  5. kvm-all: Sync dirty-bitmap from kvm before kvm destroy the correspond…

    …ing dirty_bitmap
    
    Sometimes, we destroy the dirty_bitmap in kvm_memory_slot before any sync action
    occur, this bit in dirty_bitmap will be missed, and which will lead the corresponding
    dirty pages to be missed in migration.
    
    This usually happens when do migration during VM's Start-up or Reboot.
    
    Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
    [Use s->migration_log instead of exec.c's in_migration. - Paolo]
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    colo-ft authored and bonzini committed Apr 2, 2015
    Copy the full SHA
    4cc856f View commit details
    Browse the repository at this point in the history
  6. util/qemu-config: fix regression of qmp_query_command_line_options

    Commit 49d2e64 (machine: remove qemu_machine_opts global list)
    made machine options specific to machine sub-type, leaving
    the qemu_machine_opts desc array empty. Sadly this is the place
    qmp_query_command_line_options is looking for supported options.
    
    As a fix for for 2.3 the machine_qemu_opts (the generic ones)
    are restored only for qemu-config scope.
    We need to find a better fix for 2.4.
    
    Reported-by: Tony Krowiak <akrowiak@linux.vnet.ibm.com>
    Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
    Message-Id: <1427906841-1576-1-git-send-email-marcel@redhat.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    marcel-apf authored and bonzini committed Apr 2, 2015
    Copy the full SHA
    0a7cf21 View commit details
    Browse the repository at this point in the history
  7. target-i386: clear bsp bit when designating bsp

    Since the BSP bit is writable on real hardware, during reset all the CPUs which
    were not chosen to be the BSP should have their BSP bit cleared. This fix is
    required for KVM to work correctly when it changes the BSP bit.
    
    An additional fix is required for QEMU tcg to allow software to change the BSP
    bit.
    
    Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
    Message-Id: <1427932716-11800-1-git-send-email-namit@cs.technion.ac.il>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    anadav authored and bonzini committed Apr 2, 2015
    Copy the full SHA
    9cb11fd View commit details
    Browse the repository at this point in the history
  8. qga: fitering out -fstack-protector-strong

    configure script may add -fstack-protector-strong option instead
    of -fstack-protector-all, depending on availability ( see
    commit 63678e1 ). Both options have to by filtered out for
    qga-vss.dll, otherwise MinGW cross-compilation fails at linking
    stage.
    
    Signed-off-by: Joseph Hindin <jhindin@daynix.com>
    Message-Id: <1427906337-20805-2-git-send-email-jhindin@daynix.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Joseph Hindin authored and bonzini committed Apr 2, 2015
    Copy the full SHA
    420957a View commit details
    Browse the repository at this point in the history
  9. target-i386: save 64-bit CR3 in 64-bit SMM state save area

    The x86_64 CR3 register is 64 bits wide, save all of them!
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini committed Apr 2, 2015
    Copy the full SHA
    cbea0c2 View commit details
    Browse the repository at this point in the history
  10. Merge remote-tracking branch 'remotes/armbru/tags/pull-hw-2015-04-02'…

    … into staging
    
    hw: Contain drive, serial, parallel, net misuse
    
    # gpg: Signature made Thu Apr  2 14:32:00 2015 BST using RSA key ID EB918653
    # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
    # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
    
    * remotes/armbru/tags/pull-hw-2015-04-02:
      sysbus: Make devices picking up backends unavailable with -device
      sdhci: Make device "sdhci-pci" unavailable with -device
      hw: Mark device misusing nd_table[] FIXME
      hw: Mark devices picking up char backends actively FIXME
      hw: Mark devices picking up block backends actively FIXME
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 2, 2015
    Copy the full SHA
    913fbe9 View commit details
    Browse the repository at this point in the history
  11. sysbus: Make devices picking up backends unavailable with -device

    Device models aren't supposed to go on fishing expeditions for
    backends.  They should expose suitable properties for the user to set.
    For onboard devices, board code sets them.
    
    A number of sysbus devices pick up block backends in their init() /
    instance_init() methods with drive_get_next() instead: sl-nand,
    milkymist-memcard, pl181, generic-sdhci.
    
    Likewise, a number of sysbus devices pick up character backends in
    their init() / realize() methods with qemu_char_get_next_serial():
    cadence_uart, digic-uart, etraxfs,serial, lm32-juart, lm32-uart,
    milkymist-uart, pl011, stm32f2xx-usart, xlnx.xps-uartlite.
    
    All these mistakes are already marked FIXME.  See the commit that
    added these FIXMEs for a more detailed explanation of what's wrong.
    
    Fortunately, only machines ppce500 and pseries-* support -device with
    sysbus devices, and none of the devices above is supported with these
    machines.
    
    Set cannot_instantiate_with_device_add_yet to preserve our luck.
    
    Cc: Andrzej Zaborowski <balrogg@gmail.com>
    Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Cc: Antony Pavlov <antonynpavlov@gmail.com>
    Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
    Cc: Michael Walle <michael@walle.cc>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Markus Armbruster committed Apr 2, 2015
    Copy the full SHA
    9f9bdf4 View commit details
    Browse the repository at this point in the history
  12. sdhci: Make device "sdhci-pci" unavailable with -device

    Device models aren't supposed to go on fishing expeditions for
    backends.  They should expose suitable properties for the user to set.
    For onboard devices, board code sets them.
    
    "sdhci-pci" picks up its block backend in its realize() method with
    drive_get_next() instead.  Already marked FIXME.  See the commit that
    added the FIXME for a more detailed explanation of what's wrong.
    
    We can't fix this in time for the release, but since the device is new
    in 2.3, we can set cannot_instantiate_with_device_add_yet to disable
    it before this mistake becomes ABI, and we have to support command
    lines like
    
        $ qemu -drive if=sd -drive if=sd,file=sd.img -device sdhci-pci -device sdhci-pci
    
    forever.
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Markus Armbruster committed Apr 2, 2015
    Copy the full SHA
    1910913 View commit details
    Browse the repository at this point in the history
  13. hw: Mark device misusing nd_table[] FIXME

    NICs defined with -net nic are for board initialization to wire up.
    Board code examines nd_table[] to find them, and creates devices with
    their qdev NIC properties set accordingly.
    
    Except "allwinner-a10" goes on a fishing expedition for NIC
    configuration instead of exposing the usual NIC properties for board
    code to set: it uses nd_table[0] in its instance_init() method.
    
    Picking up the first -net nic option's configuration that way works
    when the device is created by board code.  But it's inappropriate for
    -device and device_add.  Not only is it inconsistent with how the
    other block device models work (they get their configuration from
    properties "mac", "vlan", "netdev"), it breaks when nd_table[0] has
    been picked up by the board or a previous -device / device_add
    already.
    
    Example:
    
        $ qemu-system-arm -S -M cubieboard -device allwinner-a10
        qemu-system-arm: -device allwinner-a10: Property 'allwinner-emac.netdev' can't take value 'hub0port0', it's in use
        Aborted (core dumped)
    
    It also breaks in other entertaining ways:
    
        $ qemu-system-arm -M highbank -device allwinner-a10
        qemu-system-arm: -device allwinner-a10: Unsupported NIC model: xgmac
        $ qemu-system-arm -M highbank -net nic,model=allwinner-emac -device allwinner-a10
        qemu-system-arm: Unsupported NIC model: allwinner-emac
    
    Mark the mistake with a FIXME comment.
    
    Cc: Li Guang <lig.fnst@cn.fujitsu.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Markus Armbruster committed Apr 2, 2015
    Copy the full SHA
    19f33f1 View commit details
    Browse the repository at this point in the history
  14. hw: Mark devices picking up char backends actively FIXME

    Character devices defined with -serial and -parallel are for board
    initialization to wire up.  Board code examines serial_hds[] and
    parallel_hds[] to find them, and creates devices with their qdev
    chardev properties set accordingly.
    
    Except a few devices go on a fishing expedition for a suitable backend
    instead of exposing a chardev property for board code to set: they use
    serial_hds[] (often via qemu_char_get_next_serial()) or parallel_hds[]
    in their realize() or init() method to connect to a backend.
    
    Picking up backends that way works when the devices are created by
    board code.  But it's inappropriate for -device or device_add.  Not
    only is it inconsistent with how the other characrer device models
    work (they connect to a backend explicitly identified by a "chardev"
    property), it breaks when the backend has been picked up by the board
    or a previous -device / device_add already.
    
    Example:
    
        $ qemu-system-ppc64 -M bamboo -S -device i82378 -device pc87312 -device pc87312
        qemu-system-ppc64: -device pc87312: Property 'isa-parallel.chardev' can't take value 'parallel0', it's in use
    
    Mark them with suitable FIXME comments.
    
    Cc: Li Guang <lig.fnst@cn.fujitsu.com>
    Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Cc: Antony Pavlov <antonynpavlov@gmail.com>
    Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
    Cc: Michael Walle <michael@walle.cc>
    Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Cc: "Andreas Färber" <andreas.faerber@web.de>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Markus Armbruster committed Apr 2, 2015
    Copy the full SHA
    d71b22b View commit details
    Browse the repository at this point in the history
  15. hw: Mark devices picking up block backends actively FIXME

    Drives defined with if!=none are for board initialization to wire up.
    Board code calls drive_get() or similar to find them, and creates
    devices with their qdev drive properties set accordingly.
    
    Except a few devices go on a fishing expedition for a suitable backend
    instead of exposing a drive property for board code to set: they call
    driver_get() or drive_get_next() in their realize() or init() method
    to implicitly connect to the "next" backend with a certain interface
    type.
    
    Picking up backends that way works when the devices are created by
    board code.  But it's inappropriate for -device or device_add.  Not
    only is this inconsistent with how the other block device models work
    (they connect to a backend explicitly identified by a "drive"
    property), it breaks when the "next" backend has been picked up by the
    board already.
    
    Example:
    
        $ qemu-system-arm -S -M connex -pflash flash.img -device ssi-sd
        Aborted (core dumped)
    
    Mark them with suitable FIXME comments.
    
    Cc: Andrzej Zaborowski <balrogg@gmail.com>
    Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Cc: "Andreas Färber" <andreas.faerber@web.de>
    Cc: Michael Walle <michael@walle.cc>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Markus Armbruster committed Apr 2, 2015
    Copy the full SHA
    af9e40a View commit details
    Browse the repository at this point in the history
  16. hw/arm/vexpress: Don't double-free flash filename

    Commits 6e05a12 and db25a15 both attempt to fix the
    same "failed to free memory containing flash filename" bug,
    with the effect that when they were both applied we ended
    up freeing the memory twice. Delete the spurious extra free.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Stefan Weil <sw@weilnetz.de>
    Message-id: 1427968334-14527-1-git-send-email-peter.maydell@linaro.org
    pm215 committed Apr 2, 2015
    Copy the full SHA
    11f10cf View commit details
    Browse the repository at this point in the history
  17. hw/arm/virt: Fix corruption due to double free

    As 4de9a88(hw/arm/virt: Fix memory leak reported by Coverity)
    and 6e05a12(arm: fix memory leak) both handle the memory leak
    reported by Coverity, this cause qemu corruption due to
    double free.
    
    Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
    Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
    Reviewed-by: Stefan Weil <sw@weilnetz.de>
    Message-id: 1427944026-8968-1-git-send-email-zhaoshenglong@huawei.com
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    shannonz88 authored and pm215 committed Apr 2, 2015
    Copy the full SHA
    c408d27 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2015

  1. Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-2…

    …0150401' into staging
    
    target-arm:
     * Fix broken migration on AArch64 KVM
     * Fix minor memory leaks in virt, vexpress, highbank
     * Honour requested filename when loading highbank rom image
    
    # gpg: Signature made Wed Apr  1 18:06:09 2015 BST using RSA key ID 14360CDE
    # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
    
    * remotes/pmaydell/tags/pull-target-arm-20150401:
      target-arm: kvm64 fix save/restore of SPSR regs
      target-arm: kvm64 sync FP register state
      hw/intc: arm_gic_kvm.c restore config first
      target-arm: kvm: save/restore mp state
      target-arm: Store SPSR_EL1 state in banked_spsr[1] (SPSR_svc)
      hw/arm/virt: Fix memory leak reported by Coverity
      hw/arm/vexpress: Fix memory leak reported by Coverity
      hw/arm/highbank: Fix resource leak and wrong image loading
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Apr 1, 2015
    Copy the full SHA
    289494d View commit details
    Browse the repository at this point in the history
  2. target-arm: kvm64 fix save/restore of SPSR regs

    The current code was negatively indexing the cpu state array and not
    synchronizing banked spsr register state with the current mode's spsr
    state, causing occasional failures with migration.
    
    Some munging is done to take care of the aarch64 mapping and also to
    ensure the most current value of the spsr is updated to the banked
    registers (relevant for KVM<->TCG migration).
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    stsquad authored and pm215 committed Apr 1, 2015
    Copy the full SHA
    25b9fb1 View commit details
    Browse the repository at this point in the history
  3. target-arm: kvm64 sync FP register state

    For migration to work we need to sync all of the register state. This is
    especially noticeable when GCC starts using FP registers as spill
    registers even with integer programs.
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    stsquad authored and pm215 committed Apr 1, 2015
    Copy the full SHA
    0e4b586 View commit details
    Browse the repository at this point in the history
Older