Skip to content

Commits

Permalink
stable-1.6-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 Dec 10, 2013

  1. Update VERSION for 1.6.2 release

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

Commits on Dec 9, 2013

  1. scsi_target_send_command(): amend stable-1.6 port of the CVE-2013-4344

    …fix
    
    The originally suggested fix for CVE-2013-4344 introduced a regression in
    scsi_target_send_command() / REQUEST_SENSE; the third argument passed to
    scsi_device_get_sense() -- for the "len" parameter -- ignored the
    possibility of the guest SCSI driver requesting truncated (or shorter than
    full) sense data.
    
    This could result in (r->len > req->cmd.xfer) on return, which is not
    valid SCSI.
    
    The problem was addressed in the second round, and the commit on the
    master branch (8464243) is correct. However the stable-1.6 branch (the
    v1.6.1 release) has the original, regressive fix (commit fdcbe7d); let's
    update it.
    
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    lersek authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    192d2f4 View commit details
    Browse the repository at this point in the history
  2. qemu-ga: execute fsfreeze-freeze in reverse order of mounts

    Currently, fsfreeze-freeze may cause deadlock if a guest has loopback mounts
    of image files in its disk; e.g.:
    
        # mount | grep ^/
        /dev/vda1 / type ext4 (rw,noatime,seclabel,data=ordered)
        /tmp/disk.img on /mnt type ext4 (rw,relatime,seclabel)
    
    To avoid the deadlock, this freezes filesystems in reverse order of mounts.
    
    Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    *fix up commit msg
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    (cherry picked from commit e5d9adb)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    tsekiyama authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    9388fdb View commit details
    Browse the repository at this point in the history
  3. target-mips: fix 64-bit FPU config for user-mode emulation

    FR bit should be initialized to 1 for MIPS64, under condition that this
    bit is writable and that CPU has an FPU unit. It should be initialized to
    zero for MIPS32.
    This fixes different MIPS32 issues with FPU instructions whose behaviour
    defaulted to 64-bit FPU mode.
    
    Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    (cherry picked from commit 4d66261)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    petar-jovanovic authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    68a1ac1 View commit details
    Browse the repository at this point in the history
  4. seccomp: add kill() to the syscall whitelist

    The kill() syscall is triggered with the following command:
    
     # qemu -sandbox on -monitor stdio \
            -device intel-hda -device hda-duplex -vnc :0
    
    The resulting syslog/audit message:
    
     # ausearch -m SECCOMP
     ----
     time->Wed Nov 20 09:52:08 2013
     type=SECCOMP msg=audit(1384912328.482:6656): auid=0 uid=0 gid=0 ses=854
      subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12087
      comm="qemu-kvm" sig=31 syscall=62 compat=0 ip=0x7f7a1d2abc67 code=0x0
     # scmp_sys_resolver 62
     kill
    
    Reported-by: CongLi <coli@redhat.com>
    Tested-by: CongLi <coli@redhat.com>
    Signed-off-by: Paul Moore <pmoore@redhat.com>
    Acked-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
    (cherry picked from commit e9eecb5)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pcmoore authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    08dde5b View commit details
    Browse the repository at this point in the history
  5. vmdk: Fix creating big description file

    The buffer for description file was 4096 which only covers a few
    hundred of extents. This changes the buffer to dynamic allocated with
    g_strdup_printf in order to support bigger cases.
    
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    (cherry picked from commit af057fe)
    
    Conflicts:
    
    	block/vmdk.c
    	tests/qemu-iotests/059
    	tests/qemu-iotests/059.out
    
    *removed dependencies on 4823970 and 4f6fd34
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    12f7410 View commit details
    Browse the repository at this point in the history
  6. qcow2: Zero-initialise first cluster for new images

    Strictly speaking, this is only required for has_zero_init() == false,
    but it's easy enough to just do a cluster-aligned write that is padded
    with zeros after the header.
    
    This fixes that after 'qemu-img create' header extensions are attempted
    to be parsed that are really just random leftover data.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Reviewed-by: Fam Zheng <famz@redhat.com>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    (cherry picked from commit f8413b3)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Kevin Wolf authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    982c8c5 View commit details
    Browse the repository at this point in the history
  7. vfio-pci: Release all MSI-X vectors when disabled

    We were relying on msix_unset_vector_notifiers() to release all the
    vectors when we disable MSI-X, but this only happens when MSI-X is
    still enabled on the device.  Perform further cleanup by releasing
    any remaining vectors listed as in-use after this call.  This caused
    a leak of IRQ routes on hotplug depending on how the guest OS prepared
    the device for removal.
    
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit 3e40ba0)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    awilliam authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    d90ff19 View commit details
    Browse the repository at this point in the history
  8. rng-egd: offset the point when repeatedly read from the buffer

    The buffer content might be read out more than once, currently
    we just repeatedly read the first data block, buffer offset is
    missing.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Amos Kong <akong@redhat.com>
    Message-id: 1385023371-8198-3-git-send-email-akong@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@amazon.com>
    (cherry picked from commit 1eb1bd9)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    amoskong authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    7cfd037 View commit details
    Browse the repository at this point in the history
  9. pci: unregister vmstate_pcibus on unplug

    PCIBus registers a vmstate during init. Unregister it upon
    removal/unplug.
    
    Signed-off-by: Bandan Das <bsd@redhat.com>
    Cc: qemu-stable@nongnu.org
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    (cherry picked from commit 5c39724)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    whitebrandy authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    0f62987 View commit details
    Browse the repository at this point in the history
  10. qdev-monitor: Unref device when device_add fails

    qdev_device_add() leaks the created device upon failure.  I suspect this
    problem crept in because qdev_free() unparents the device but does not
    drop a reference - confusing name.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    (cherry picked from commit ee6abeb)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Stefan Hajnoczi authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    03060dc View commit details
    Browse the repository at this point in the history
  11. qdev-monitor: Fix crash when device_add is called with abstract driver

    User is able to crash running QEMU when following monitor
    command is called:
    
     device_add intel-hda-generic
    
    Crash is caused by assertion in object_initialize_with_type()
    when type is abstract.
    
    Checking if type is abstract before instance is created in
    qdev_device_add() allows to prevent crash on incorrect user input.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Igor Mammedov <imammedo@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    (cherry picked from commit 2fa4e56)
    
    Conflicts:
    
    	qdev-monitor.c
    
    *updated to reflect different 1.6 variable names
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Igor Mammedov authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    2cafbbf View commit details
    Browse the repository at this point in the history
  12. qom: Fix memory leak in object_property_set_link()

    Save the result of the call to object_get_canonical_path()
    so we can free it.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
    Reviewed-by: Amos Kong <akong@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    (cherry picked from commit 2d3aa28)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Vlad Yasevich authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    991a5f3 View commit details
    Browse the repository at this point in the history
  13. virtio-net: fix the memory leak in rxfilter_notify()

    object_get_canonical_path() returns a gchar*, it should be freed by the
    caller.
    
    Signed-off-by: Amos Kong <akong@redhat.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Reviewed-by: Vlad Yasevich <vyasevic@redhat.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
    (cherry picked from commit 96e3504)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    amoskong authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    817a872 View commit details
    Browse the repository at this point in the history
  14. vfio-pci: Fix multifunction=on

    When an assigned device is initialized it copies the device config
    space into the emulated config space.  Unfortunately multifunction is
    setup prior to the device initfn and gets clobbered.  We need to
    restore it just like pci-assign does.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 8d07d6c)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    awilliam authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    37da395 View commit details
    Browse the repository at this point in the history
  15. qcow2: fix possible corruption when reading multiple clusters

    if multiple sectors spanning multiple clusters are read the
    function count_contiguous_clusters should ensure that the
    cluster type should not change between the clusters.
    
    Especially the for-loop should break when we have one
    or more normal clusters followed by a compressed cluster.
    
    Unfortunately the wrong macro was used in the mask to
    compare the flags.
    
    This was discovered while debugging a data corruption
    issue when converting a compressed qcow2 image to raw.
    qemu-img reads 2MB chunks which span multiple clusters.
    
    CC: qemu-stable@nongnu.org
    Signed-off-by: Peter Lieven <pl@kamp.de>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 78a52ad)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    plieven authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    4d2f39a View commit details
    Browse the repository at this point in the history
  16. qcow2: count_contiguous_clusters and compression

    The function is not intended to be used on compressed clusters and will
    not work correctly, if used anyway, since L2E_OFFSET_MASK is not the
    right mask for determining the offset of compressed clusters. Therefore,
    assert that the first cluster is not compressed and always include the
    compression flag in the mask of significant flags, i.e., stop the search
    as soon as a compressed cluster occurs.
    
    Signed-off-by: Max Reitz <mreitz@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 15684a4)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    XanClic authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    4a5bf69 View commit details
    Browse the repository at this point in the history
  17. Fix pc migration from qemu <= 1.5

    The following commit introduced a migration incompatibility:
    
    commit 568f069
    Author: David Gibson <david@gibson.dropbear.id.au>
    Date:   Thu Jun 6 18:48:49 2013 +1000
    
        pci: Replace pci_find_domain() with more general pci_root_bus_path()
    
    The issue is that i440fx savevm idstr went from 0000:00:00.0/I440FX to
    0000:00.0/I440FX. Unfortunately we are stuck with the breakage for
    1.6 machine types.
    
    Add a compat property to maintain the busted idstr for the 1.6 machine
    types, but revert to the old style format for 1.7+, and <= 1.5.
    
    Tested with migration from qemu 1.5, qemu 1.6, and qemu.git.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Cole Robinson <crobinso@redhat.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    (cherry picked from commit 04c7d8b)
    
    Conflicts:
    
    	include/hw/i386/pc.h
    
    *removed 1.6 compat properties
    *enabled short_root_bus by default to enable for 1.6 (no 1.6 compat
     fields to do so in 1.6.x)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    crobinso authored and mdroth committed Dec 9, 2013
    Copy the full SHA
    53e8cf9 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2013

  1. exec: fix breakpoint_invalidate when pc may not be translated

    This fixes qemu abort with the following message:
    
        include/qemu/int128.h:22: int128_get64: Assertion `!a.hi' failed.
    
    which happens due to attempt to invalidate breakpoint by virtual address
    for which get_phys_page_debug couldn't find mapping.
    
    For more details see
    http://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg04582.html
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit e8262a1)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    jcmvbkbc authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    2c81874 View commit details
    Browse the repository at this point in the history
  2. virtio-net: only delete bh that existed

    We delete without check whether it existed during exit. This will lead NULL
    pointer deference since it was created conditionally depends on guest driver
    status and features. So add a check of existence before trying to delete it.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Message-id: 1383728288-28469-1-git-send-email-jasowang@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@amazon.com>
    (cherry picked from commit fe2dafa)
    
    Conflicts:
    
    	hw/net/virtio-net.c
    
    *modified to reflect timer function names for 1.6
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    jasowang authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    5326636 View commit details
    Browse the repository at this point in the history
  3. linux-user: Fix stat64 syscall for SPARC64

    Some targets use a stat64 structure for the stat64 syscall while others
    use a stat structure. SPARC64 used the wrong kind.
    
    Instead of extending the conditional compilation in syscall.c, now a
    macro TARGET_HAS_STRUCT_STAT64 is defined whenever a target has a
    target_stat64.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Erik de Castro Lopo <erikd@mega-nerd.com>
    (cherry picked from commit 20d155b)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    3bd74d1 View commit details
    Browse the repository at this point in the history
  4. configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0

    Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
    explicitly specifying everything and not relying on any default
    variables or rules. However we were accidentally relying on the
    default ARFLAGS ("rv"). This went unnoticed because of a bug in
    GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
    only affected submakes, not the currently running instance.
    Explicitly set ARFLAGS in config-host.mak, in the same way we
    handle CFLAGS and LDFLAGS; this will allow us to work with
    Make 4.0.
    
    Thanks to Paul Smith for analyzing this bug for us.
    
    Cc: qemu-stable@nongnu.org
    Reported-by: Ken Moffat <zarniwhoop@ntlworld.com>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 45d285a)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    c554ddb View commit details
    Browse the repository at this point in the history
  5. tests: fix memleak in error path test for input visitor

    Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Message-id: 1383676551-18806-3-git-send-email-xiawenc@linux.vnet.ibm.com
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Anthony Liguori <aliguori@amazon.com>
    (cherry picked from commit 8aa15b6)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Wenchao Xia authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    c1fecf2 View commit details
    Browse the repository at this point in the history
  6. qapi: fix memleak by adding implict struct functions in dealloc visitor

    Otherwise member "base" is leaked in a qapi_free_STRUCTURE() call.
    
    Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Message-id: 1383676551-18806-2-git-send-email-xiawenc@linux.vnet.ibm.com
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Anthony Liguori <aliguori@amazon.com>
    (cherry picked from commit 3dce9ca)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Wenchao Xia authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    08e2f35 View commit details
    Browse the repository at this point in the history
  7. configure: detect endian via compile test

    This avoids needing to execute a program and keeping an (incomplete)
    list when cross-compiling.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Tested-by: James Hogan <james.hogan@imgtec.com> [mips]
    Message-id: 1372649418-4987-1-git-send-email-vapier@gentoo.org
    Signed-off-by: Anthony Liguori <aliguori@amazon.com>
    (cherry picked from commit 61cc919)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    vapier authored and mdroth committed Dec 4, 2013
    Copy the full SHA
    ba3b29e View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2013

  1. Adjust qapi-visit for python-2.4.3

    We say we support python 2.4, but python 2.4.3 does not
    support the "expr if test else expr" syntax used here.
    
    This allows QEMU to compile on RHEL 5.3, the last release for ia64.
    
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    (cherry picked from commit 7b75d9d)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    rth7680 authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    0ca1774 View commit details
    Browse the repository at this point in the history
  2. memory: fix 128 arithmetic in info mtree

    mtree_print_mr() calls int128_get64() in 3 places but only 2 places
    handle 2^64 correctly.
    
    This fixes the third call of int128_get64().
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit a66670c)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    aik authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    bd821a9 View commit details
    Browse the repository at this point in the history
  3. monitor: eliminate monitor_event_state_lock

    This lock does not protect anything that the BQL does not already
    protect.  Furthermore, with -nodefaults and no monitor, the mutex
    is not initialized but monitor_protocol_event_queue is called
    anyway, which causes a crash under mingw (and only works by luck.
    under Linux or other POSIX OSes).
    
    Reported-by: Orx Goshen <orx.goshen@intel.com>
    Cc: Daniel Berrange <berrange@redhat.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    (cherry picked from commit c20b7fa)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    bonzini authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    7bda855 View commit details
    Browse the repository at this point in the history
  4. audio: honor QEMU_AUDIO_TIMER_PERIOD instead of waking up every *nano…

    …* second
    
    Now that we no longer have MIN_REARM_TIMER_NS a bug in the audio subsys has
    clearly shown it self by trying to make a timer fire every nano second.
    
    Note we have a similar problem in 1.6, 1.5 and older but there
    MIN_REARM_TIMER_NS limits the wakeups caused by audio being active to
    4000 times / second. This still causes a host cpu load of 50 % for simply
    playing audio, where as with this patch git master is at 13%, so we should
    backport this to 1.5 and 1.6 too.
    
    Note this will not apply to 1.5 and 1.6 as is.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    (cherry picked from commit b4350de)
    
    Conflicts:
    
    	audio/audio.c
    
    *fixed to reflect 1.6 timer function/clock names
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    jwrdegoede authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    91a2cf3 View commit details
    Browse the repository at this point in the history
  5. vmdk: Fix vmdk_parse_extents

    An extra 'p++' after while loop when *p == '\n' will move p to unknown
    data position, risking parsing junk data or memory access violation.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 899f1ae)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Fam Zheng authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    b685f6a View commit details
    Browse the repository at this point in the history
  6. xen_disk: mark ioreq as mapped before unmapping in error case

    Commit 4472beae modified the semantics of ioreq_{un,}map so that they are
    idempotent if called when they're not needed (ie., twice in a row). However,
    it neglected to handle the case where batch mapping is not being used (the
    default), and one of the grants fails to map. In this case, ioreq_unmap will
    be called to unwind and unmap any mappings already performed, but ioreq_unmap
    simply returns due to the aforementioned change (the ioreq has not already
    been marked as mapped).
    
    The frontend user can therefore force xen_disk to leak grant mappings, a
    per-domain limited resource.
    
    Fix by marking the ioreq as mapped before calling ioreq_unmap in this
    situation.
    
    Signed-off-by: Matthew Daley <mattjd@gmail.com>
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    (cherry picked from commit a76f48e)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Matthew Daley authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    99b5b99 View commit details
    Browse the repository at this point in the history
  7. qemu-char: Fix potential out of bounds access to local arrays

    Latest gcc-4.8 supports a new option -fsanitize=address which activates
    an AddressSanitizer. This AddressSanitizer stops the QEMU system emulation
    very early because two character arrays of size 8 are potentially written
    with 9 bytes.
    
    Commit 6ea314d added the code.
    
    There is no obvious reason why width or height could need 8 characters,
    so reduce it to 7 characters which together with the terminating '\0'
    fit into the arrays.
    
    Cc: qemu-stable <qemu-stable@nongnu.org>
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Alex Bennée <alex@bennee.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    (cherry picked from commit 49aa405)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    78bd79f View commit details
    Browse the repository at this point in the history
  8. misc: Use new rotate functions

    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    (cherry picked from commit 3df2b8f)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    a2c9dc5 View commit details
    Browse the repository at this point in the history
  9. bitops: Add rotate functions (rol8, ror8, ...)

    These functions were copies from include/linux/bitopts.h.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    (cherry picked from commit 6aa25b4)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    927fab3 View commit details
    Browse the repository at this point in the history
  10. tci: Add implementation of rotl_i64, rotr_i64

    It is used by qemu-ppc64 when running Debian's busybox-static.
    
    Cc: qemu-stable <qemu-stable@nongnu.org>
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    (cherry picked from commit d285bf7)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Dec 3, 2013
    Copy the full SHA
    2c34244 View commit details
    Browse the repository at this point in the history
Older