Skip to content

Commits

Permalink
stable-2.0-sta…
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 Aug 18, 2014

  1. Update VERSION for 2.0.2 release

    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    mdroth committed Aug 18, 2014
    Copy the full SHA
    f053f6b View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2014

  1. audio: fmopl: drop INLINE macro

    This commit expands all uses of the INLINE macro and drop it.
    
    The reason for this is to avoid clashes with external libraries with
    bad name conventions and also because renaming keywords is not a good
    practice.
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    (cherry picked from commit 37f6be9)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Luiz Capitulino authored and mdroth committed Aug 17, 2014
    Copy the full SHA
    3d79eb5 View commit details
    Browse the repository at this point in the history
  2. fpu: softfloat: drop INLINE macro

    This commit expands all uses of the INLINE macro and drop it.
    
    The reason for this is to avoid clashes with external libraries with
    bad name conventions and also because renaming keywords is not a good
    practice.
    
    PS: I'm fine with this change to be licensed under softfloat-2a or
    softfloat-2b.
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    (cherry picked from commit a49db98)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Luiz Capitulino authored and mdroth committed Aug 17, 2014
    Copy the full SHA
    6ec48b0 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2014

  1. Update VERSION for 2.0.1 release

    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    mdroth committed Aug 15, 2014
    Copy the full SHA
    5433472 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2014

  1. mirror: Fix qiov size for short requests

    When mirroring an image of a size that is not a multiple of the
    mirror job granularity, the last request would have the right nb_sectors
    argument, but a qiov that is rounded up to the next multiple of the
    granularity. Don't do this.
    
    This fixes a segfault that is caused by raw-posix being confused by this
    and allocating a buffer with request length, but operating on it with
    qiov length.
    
    [s/Driver/Drive/ in qemu-iotests 041 as suggested by Eric
    --Stefan]
    
    Reported-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Tested-by: Eric Blake <eblake@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    (cherry picked from commit 5a0f6fd)
    
    Conflicts:
    	tests/qemu-iotests/041.out
    
    *updated 041.out to reflect tests missing from 2.0
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Kevin Wolf authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    3c548f6 View commit details
    Browse the repository at this point in the history
  2. qemu-iotests: Test 0-length image for mirror

    All behavior and invariant should hold for images with 0 length, so
    add a class to repeat all the tests in TestSingleDrive.
    
    Hide two unapplicable test methods that would fail with 0 image length
    because it's also used as cluster size.
    
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 3b9f27d)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    d0d83e8 View commit details
    Browse the repository at this point in the history
  3. block: make 'top' argument to block-commit optional

    Now that active layer block-commit is supported, the 'top' argument
    no longer needs to be mandatory.
    
    Change it to optional, with the default being the active layer in the
    device chain.
    
    [kwolf: Rebased and resolved conflict in tests/qemu-iotests/040]
    
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Reviewed-by: Benoit Canet <benoit@irqsave.net>
    Signed-off-by: Jeff Cody <jcody@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    (cherry picked from commit 7676e2c)
    
    Conflicts:
    	qapi/block-core.json
    
    *removed dependency on 1ad166b
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    codyprime authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    98103fa View commit details
    Browse the repository at this point in the history
  4. qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit

    There should be a BLOCK_JOB_READY event with active commit, regardless
    of image length. Let's test the 0 length image case, and make sure it
    goes through the ready->complete process.
    
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 8b9a30c)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    e5f0eb0 View commit details
    Browse the repository at this point in the history
  5. mirror: Go through ready -> complete process for 0 len image

    When mirroring or active committing a zero length image, BLOCK_JOB_READY
    is not reported now, instead the job completes because we short circuit
    the mirror job loop.
    
    This is inconsistent with non-zero length images, and only confuses
    management software.
    
    Let's do the same thing when seeing a 0-length image: report ready
    immediately; wait for block-job-cancel or block-job-complete; clear the
    cancel flag as existing non-zero image synced case (cancelled after
    ready); then jump to the exit.
    
    Reported-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 9e48b02)
    
    *removed dependency on bcada37
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    43ac708 View commit details
    Browse the repository at this point in the history
  6. blockjob: Add block_job_yield()

    This will unset busy flag and put coroutine to sleep, can be used to
    wait for QMP complete/cancel.
    
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit dc71ce4)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    8e09e20 View commit details
    Browse the repository at this point in the history
  7. mirror: Fix resource leak when bdrv_getlength fails

    The direct return will skip releasing of all the resouces at
    immediate_exit, don't miss that.
    
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 373df5b)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Aug 7, 2014
    Copy the full SHA
    520b341 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2014

  1. hw/arm/boot: Set PC correctly when loading AArch64 ELF files

    The code in do_cpu_reset() correctly handled AArch64 CPUs
    when running Linux kernels, but was missing code in the
    branch of the if() that deals with loading ELF files.
    Correctly jump to the ELF entry point on reset rather than
    leaving the reset PC at zero.
    
    Reported-by: Christopher Covington <cov@codeaurora.org>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Tested-by: Christopher Covington <cov@codeaurora.org>
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit a9047ec)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    e0efb02 View commit details
    Browse the repository at this point in the history
  2. hw/misc/imx_ccm.c: Add missing VMState list terminator

    The VMStateDescription for the imx_ccm device was missing its
    terminator. Found by static search of the codebase using
    a regex based on one suggested by Ian Jackson:
      pcregrep -rMi '(?s)VMStateField(?:(?!END_OF_LIST).)*?;' $(git grep -l 'VMStateField\[\]')
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit ef493d5)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    d56b0b8 View commit details
    Browse the repository at this point in the history
  3. vmstate_xhci_event: fix unterminated field list

    "vmstate_xhci_event" was introduced in commit 37352df ("xhci: add live
    migration support"), and first released in v1.6.0. The field list in this
    VMSD is not terminated with the VMSTATE_END_OF_LIST() macro.
    
    During normal use (ie. migration), the issue is practically invisible,
    because the "vmstate_xhci_event" object (with the unterminated field list)
    is only ever referenced -- via "vmstate_xhci_intr" -- if xhci_er_full()
    returns true, for the "ev_buffer" test. Since that field_exists() check
    (apparently) almost always returns false, we almost never traverse
    "vmstate_xhci_event" during migration, which hides the bug.
    
    However, Amit's vmstate checker forces recursion into this VMSD as well,
    and the lack of VMSTATE_END_OF_LIST() breaks the field list terminator
    check (field->name != NULL) in dump_vmstate_vmsd(). The result is
    undefined behavior, which in my case translates to infinite recursion
    (because the loop happens to overflow into "vmstate_xhci_intr", which then
    links back to "vmstate_xhci_event").
    
    Add the missing terminator.
    
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Amit Shah <amit.shah@redhat.com>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit 3afca1d)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    lersek authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    750f169 View commit details
    Browse the repository at this point in the history
  4. kvm-all: Use 'tmpcpu' instead of 'cpu' in sub-looping to avoid 'cpu' …

    …be NULL
    
    If kvm_arch_remove_sw_breakpoint() in CPU_FOREACH() always be fail, it
    will let 'cpu' NULL. And the next kvm_arch_remove_sw_breakpoint() in
    QTAILQ_FOREACH_SAFE() will get NULL parameter for 'cpu'.
    
    And kvm_arch_remove_sw_breakpoint() can assumes 'cpu' must never be NULL,
    so need define additional temporary variable for 'cpu' to avoid the case.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit dc54e25)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Chen-Gang authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    046e357 View commit details
    Browse the repository at this point in the history
  5. cadence_uart: check for serial backend before using it.

    This checks that s->chr is not NULL before using it.
    
    Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
    Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit af52fe8)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    konrad-fred authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    b1251db View commit details
    Browse the repository at this point in the history
  6. s390x/kvm: synchronize guest floating point registers

    Add code to kvm_arch_get_registers and kvm_arch_put_registers to
    save/restore floating point registers. This missing sync was
    unnoticed until migration of userspace that uses fprs.
    
    Signed-off-by: Jason J. Herne <jjherne@us.ibm.com>
    Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
    [Update patch to latest upstream]
    Cc: qemu-stable@nongnu.org
    Reviewed-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    
    (cherry picked from commit 85ad623)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Jason J. Herne authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    29cffd3 View commit details
    Browse the repository at this point in the history
  7. disas/libvixl: prepend the include path of libvixl header files

    Currently the Makefile of disas/libvixl appends
    -I$(SRC_PATH)/disas/libvixl to QEMU_CFLAGS. As a consequence C++ files
    that #include "utils.h", such as disas/libvixl/a64/instructions-a64.cc,
    are going to look for utils.h on all the other include paths first.
    
    When building QEMU as part of the Xen make system, another unrelated
    utils.h file is going to be chosen for inclusion, causing a build
    failure:
    
    In file included from disas/libvixl/a64/instructions-a64.cc:27:0:
    /qemu/disas/libvixl/a64/instructions-a64.h:88:64: error:
    'rawbits_to_float' was not declared in this scope
     const float kFP32PositiveInfinity = rawbits_to_float(0x7f800000);
    
    Fix the problem by prepending (rather than appending) the libvixl
    include path to QEMU_CFLAGS.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit 834fb1b)
    
    *added 2.0-specific fixup from Stefano in disas/Makefile.obj due to
     lack of 849d828
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Stefano Stabellini authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    5a782bb View commit details
    Browse the repository at this point in the history
  8. mc146818rtc: register the clock reset notifier on the right clock

    Commit 884f17c (aio / timers: Convert rtc_clock to be a QEMUClockType,
    2013-08-21) erroneously changed an occurrence of rtc_clock to
    QEMU_CLOCK_REALTIME, which broke the RTC reset notifier in
    mc146818rtc.  Fix this.
    
    I redid the patch myself since the original reporter did not sign
    off on his.
    
    Cc: qemu-stable@nongnu.org
    Reported-by: Lb peace <peaceustc@gmail.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 13c0cba)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    bonzini authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    ad0d183 View commit details
    Browse the repository at this point in the history
  9. pci: assign devfn to pci_dev before calling pci_device_iommu_address_…

    …space()
    
    In function do_pci_register_device() in file hw/pci/pci.c, move the assignment
    of pci_dev->devfn to the position before the call to
    pci_device_iommu_address_space(pci_dev) which will use the value of
    pci_dev->devfn.
    
    Fixes: 9eda7d3
        pci: Introduce helper to retrieve a PCI device's DMA address space
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Le Tan <tamlokveer@gmail.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    (cherry picked from commit efc8188)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    tamlok authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    210ec8f View commit details
    Browse the repository at this point in the history
  10. Allow mismatched virtio config-len

    Commit 'virtio: validate config_len on load' restricted config_len
    loaded from the wire to match the config_len that the device had.
    
    Unfortunately, there are cases where this isn't true, the one
    we found it on was the wce addition in virtio-blk.
    
    Allow mismatched config-lengths:
       *) If the version on the wire is shorter then fine
       *) If the version on the wire is longer, load what we have space
          for and skip the rest.
    
    (This is mst@redhat.com's rework of what I originally posted)
    
    Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    (cherry picked from commit 2f5732e)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    dagrh authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    55103ab View commit details
    Browse the repository at this point in the history
  11. virtio: validate config_len on load

    Malformed input can have config_len in migration stream
    exceed the array size allocated on destination, the
    result will be heap overflow.
    
    To fix, that config_len matches on both sides.
    
    CVE-2014-0182
    
    Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Juan Quintela <quintela@redhat.com>
    
    --
    
    v2: use %ix and %zx to print config_len values
    Signed-off-by: Juan Quintela <quintela@redhat.com>
    (cherry picked from commit a890a2f)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    mstsirkin authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    3bb84a6 View commit details
    Browse the repository at this point in the history
  12. virtio: out-of-bounds buffer write on invalid state load

    CVE-2013-4151 QEMU 1.0 out-of-bounds buffer write in
    virtio_load@hw/virtio/virtio.c
    
    So we have this code since way back when:
    
        num = qemu_get_be32(f);
    
        for (i = 0; i < num; i++) {
            vdev->vq[i].vring.num = qemu_get_be32(f);
    
    array of vqs has size VIRTIO_PCI_QUEUE_MAX, so
    on invalid input this will write beyond end of buffer.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Signed-off-by: Juan Quintela <quintela@redhat.com>
    (cherry picked from commit cc45995)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    mstsirkin authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    48935f0 View commit details
    Browse the repository at this point in the history
  13. hw: Fix qemu_allocate_irqs() leaks

    Replace qemu_allocate_irqs(foo, bar, 1)[0]
    with qemu_allocate_irq(foo, bar, 0).
    
    This avoids leaking the dereferenced qemu_irq *.
    
    Cc: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    [PC Changes:
     * Applied change to instance in sh4/sh7750.c
    ]
    Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Reviewed-by: Kirill Batuzov <batuzovk@ispras.ru>
    [AF: Fix IRQ index in sh4/sh7750.c]
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    
    (cherry picked from commit f3c7d03)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    afaerber authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    3477445 View commit details
    Browse the repository at this point in the history
  14. sdhci: Fix misuse of qemu_free_irqs()

    It does a g_free() on the pointer, so don't pass a local &foo reference.
    
    Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    (cherry picked from commit 127a4e1)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    afaerber authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    7be09af View commit details
    Browse the repository at this point in the history
  15. pc: make isapc and pc-0.10 to pc-0.13 have 1.7.0 memory layout

    QEMU 2.0 changed memory layout for isapc and pc-0.10 to pc-0.13.
    This prevents migration from QEMU 1.7.0 for these
    machine types when -m 3.5G is specified.
    
    Paolo Bonzini asked that:
    
        smbios_legacy_mode = true;
        has_reserved_memory = false;
        option_rom_has_mr = true;
        rom_file_has_mr = false;
    
    also be done.
    
    Cc: qemu-stable@nongnu.org
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Don Slutz <dslutz@verizon.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Fixes: https://bugs.launchpad.net/qemu/+bug/1334307
    Tested-by: "Slutz, Donald Christopher" <dslutz@verizon.com>
    (cherry picked from commit 5f8632d)
    
    Conflicts:
    	hw/i386/pc_piix.c
    
    *removed dependency on c97294e: smbios_legacy_mode always true pre-2.1.0
    *removed dependency on de268e1: has_reserved_memory always false pre-2.1.0
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Don Slutz authored and mdroth committed Aug 6, 2014
    Copy the full SHA
    cab7dfc View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2014

  1. SMBIOS: Rename symbols to better reflect future use

    Rename the following symbols:
    
      - smbios_set_type1_defaults() to the more general smbios_set_defaults();
      - bool smbios_type1_defaults to the more general smbios_defaults;
      - smbios_get_table() to smbios_get_table_legacy();
    
    This patch contains no functional changes.
    
    Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    (cherry picked from commit e6667f7)
    
    Conflicts:
    	hw/i386/pc_piix.c
    	hw/i386/pc_q35.c
    
    *removed dependency on 3458b2b
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    gsomlo authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    b5706a7 View commit details
    Browse the repository at this point in the history
  2. nbd: Shutdown socket before closing.

    This forces finishing data sending to client before closing the socket like in
    exports listing or replying with NBD_REP_ERR_UNSUP cases.
    
    Signed-off-by: Hani Benhabiles <kroosec@gmail.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 27e5eae)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    kroosec authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    4197181 View commit details
    Browse the repository at this point in the history
  3. nbd: Close socket on negotiation failure.

    Otherwise, the nbd client may hang waiting for the server response.
    
    Signed-off-by: Hani Benhabiles <hani@linux.com>
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    (cherry picked from commit 36af599)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    kroosec authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    3f977a5 View commit details
    Browse the repository at this point in the history
  4. nbd: Don't validate from and len in NBD_CMD_DISC.

    These values aren't used in this case.
    
    Currently, the from field in the request sent by the nbd kernel module leading
    to a false error message when ending the connection with the client.
    
    $ qemu-nbd some.img -v
    // After nbd-client -d /dev/nbd0
    nbd.c:nbd_trip():L1031: From: 18446744073709551104, Len: 0, Size: 20971520,
    Offset: 0
    nbd.c:nbd_trip():L1032: requested operation past EOF--bad client?
    nbd.c:nbd_receive_request():L638: read failed
    
    Signed-off-by: Hani Benhabiles <kroosec@gmail.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 8c5d1ab)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    kroosec authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    80cfe4a View commit details
    Browse the repository at this point in the history
  5. nbd: Don't export a block device with no medium.

    The device is exported with erroneous values and can't be read.
    
    Before the patch:
    $ sudo nbd-client localhost -p 10809 /dev/nbd0 -name floppy0
    Negotiation: ..size = 17592186044415MB
    bs=1024, sz=18446744073709547520 bytes
    
    $ sudo mount /dev/nbd0 /mnt/tmp/
    mount: block device /dev/nbd0 is write-protected, mounting read-only
    mount: /dev/nbd0: can't read superblock
    
    After the patch:
    (qemu) nbd_server_add ide0-hd0
    (qemu) nbd_server_add floppy0
    Device 'floppy0' has no medium
    
    Signed-off-by: Hani Benhabiles <kroosec@gmail.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 60fe4fa)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    kroosec authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    01083f1 View commit details
    Browse the repository at this point in the history
  6. virtio-serial: don't migrate the config space

    The device configuration is set at realize time and never changes. It
    should not be migrated as it is done today. For the sake of compatibility,
    let's just skip them at load time.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    [ added missing casts to uint16_t *,
      added From, SoB and commit message,
      Greg Kurz <gkurz@linux.vnet.ibm.com> ]
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    
    (cherry picked from commit e38e943)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    agraf authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    9221efd View commit details
    Browse the repository at this point in the history
  7. virtio-net: byteswap virtio-net header

    TCP connectivity fails when the guest has a different endianness.
    The packets are silently dropped on the host by the tap backend
    when they are read from user space because the endianness of the
    virtio-net header is in the wrong order. These lines may appear
    in the guest console:
    
    [  454.709327] skbuff: bad partial csum: csum=8704/4096 len=74
    [  455.702554] skbuff: bad partial csum: csum=8704/4096 len=74
    
    The issue that got first spotted with a ppc64le PowerKVM guest,
    but it also exists for the less common case of a x86_64 guest run
    by a big-endian ppc64 TCG hypervisor.
    
    Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
    [ Ported from PowerKVM,
      Greg Kurz <gkurz@linux.vnet.ibm.com> ]
    Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    
    (cherry picked from commit 032a74a)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Cédric Le Goater authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    4ce91be View commit details
    Browse the repository at this point in the history
  8. target-i386: Filter FEAT_7_0_EBX TCG features too

    The TCG_7_0_EBX_FEATURES macro was defined but never used (it even had a
    typo that was never noticed). Make the existing TCG feature filtering
    code use it.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    (cherry picked from commit d0a70f4)
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    ehabkost authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    b2f0e92 View commit details
    Browse the repository at this point in the history
  9. target-i386: Make TCG feature filtering more readable

    Instead of an #ifdef in the middle of the code, just set
    TCG_EXT2_FEATURES to a different value depending on TARGET_X86_64.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    (cherry picked from commit a42d993)
    
    Conflicts:
    	target-i386/cpu.c
    
    *removed dependency on 77549a7
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    ehabkost authored and mdroth committed Aug 5, 2014
    Copy the full SHA
    f9ac1dc View commit details
    Browse the repository at this point in the history
Older