Skip to content

Commits

Permalink
v1.7.1
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 Mar 3, 2014

  1. Update VERSION for 1.7.1 release

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

Commits on Feb 27, 2014

  1. KVM: Use return value for error print

    Commit 94ccff1 introduced a more verbose failure message and retry
    operations on KVM VM creation. However, it ended up using a variable
    for its failure message that hasn't been initialized yet.
    
    Fix it to use the value it meant to set.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 521f438)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    agraf authored and mdroth committed Feb 27, 2014
    Copy the full SHA
    d689974 View commit details
    Browse the repository at this point in the history
  2. hw/intc/arm_gic: Fix GIC_SET_LEVEL

    The GIC_SET_LEVEL macro unfortunately overwrote the entire level
    bitmask instead of just or'ing on the necessary bits, causing active
    level PPIs on a core to clear PPIs on other cores.
    
    Cc: qemu-stable@nongnu.org
    Reported-by: Rob Herring <rob.herring@linaro.org>
    Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
    Message-id: 1393031030-8692-1-git-send-email-christoffer.dall@linaro.org
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit 6453fa9)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    chazy authored and mdroth committed Feb 27, 2014
    Copy the full SHA
    e50218c View commit details
    Browse the repository at this point in the history
  3. hw/arm/musicpal: Remove nonexistent CDTP2, CDTP3 registers

    The ethernet device in the musicpal only has two tx queues,
    but we modelled it with four CTDP registers, presumably a
    cut and paste from the rx queue registers. Since the tx_queue[]
    array is only 2 entries long this allowed a guest to overrun
    this buffer. Remove the nonexistent registers.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Message-id: 1392737293-10073-1-git-send-email-peter.maydell@linaro.org
    Acked-by: Jan Kiszka <jan.kiszka@web.de>
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit cf143ad)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Feb 27, 2014
    Copy the full SHA
    fa98e47 View commit details
    Browse the repository at this point in the history
  4. hw/intc/exynos4210_combiner: Don't overrun output_irq array in init

    The Exynos4210 combiner has IIC_NIRQ inputs and IIC_NGRP outputs;
    use the correct constant in the loop initializing our output
    sysbus IRQs so that we don't overrun the output_irq[] array.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Message-id: 1392659611-8439-1-git-send-email-peter.maydell@linaro.org
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit fce0a82)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Feb 27, 2014
    Copy the full SHA
    ff51a1d View commit details
    Browse the repository at this point in the history
  5. hw/timer/arm_timer: Avoid array overrun for bad addresses

    The integrator's timer read/write functions log an error for
    bad addresses in guest accesses, but were falling through and
    using an out of bounds array index rather than returning early.
    Fix this.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Message-id: 1392647854-8067-4-git-send-email-peter.maydell@linaro.org
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit cba933b)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Feb 27, 2014
    Copy the full SHA
    5444df1 View commit details
    Browse the repository at this point in the history
  6. hw/misc/arm_sysctl: Fix bad boundary check on mb clock accesses

    Fix incorrect use of sizeof() rather than ARRAY_SIZE() to guard
    accesses into the mb_clock[] array, which was allowing a malicious
    guest to overwrite the end of the array.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Message-id: 1392647854-8067-2-git-send-email-peter.maydell@linaro.org
    Cc: qemu-stable@nongnu.org
    (cherry picked from commit ec1efab)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Feb 27, 2014
    Copy the full SHA
    e498311 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2014

  1. qga: Fix memory allocation pasto

    qmp_guest_file_seek() allocates memory for a GuestFileRead object
    instead of the GuestFileSeek object it actually uses.  Harmless,
    because the GuestFileRead is slightly larger.
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    (cherry picked from commit 10b7c5d)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Markus Armbruster authored and mdroth committed Feb 25, 2014
    Copy the full SHA
    4736fb3 View commit details
    Browse the repository at this point in the history
  2. qga: vss-win32: Fix interference with snapshot deletion by other VSS …

    …request
    
    When a VSS requester such as vshadow.exe or diskshadow.exe requests to
    delete snapshots, qemu-ga VSS provider's DeleteSnapshots() is also called
    and returns E_NOTIMPL, that makes the deletion fail.
    To avoid this issue, return S_OK and set values that represent no snapshots
    are deleted by qemu-ga VSS provider.
    
    Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
    Reviewed-by: Gal Hammer <ghammer@redhat.com>
    Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    (cherry picked from commit d9e1f57)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    tsekiyama authored and mdroth committed Feb 25, 2014
    Copy the full SHA
    6d0a48a View commit details
    Browse the repository at this point in the history
  3. qga: vss-win32: Fix interference with snapshot creation by other VSS …

    …requesters
    
    When a VSS requester such as vshadow.exe or diskshadow.exe requests to
    create disk snapshots, Windows may choose qemu-ga VSS provider if it is
    only provider registered on the system. However, because it provides only a
    function to freeze the filesystem, the snapshotting fails.
    
    This patch adds a check into CQGAVssProvider::IsVolumeSupported() to reject
    the request from other VSS requesters, so that the other provider is chosen.
    
    The check of requester is done by confirming event channels between
    qemu-ga's requester and provider established. To ensure that the events are
    initialized when CQGAVssProvider::IsVolumeSupported() is called, it moves
    the initialization earlier.
    
    Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
    Reviewed-by: Gal Hammer <ghammer@redhat.com>
    Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    (cherry picked from commit ff8adbc)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    tsekiyama authored and mdroth committed Feb 25, 2014
    Copy the full SHA
    5e5d4fc View commit details
    Browse the repository at this point in the history
  4. qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and Crea…

    …teEvent
    
    OpenEvent and CreateEvent WinAPI return NULL when failed to open/create
    events handles, instead of INVALID_HANDLE_VALUE (although their return
    types are HANDLE).
    This replaces INVALID_HANDLE_VALUE related to event handles with NULL.
    
    Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
    Reviewed-by: Gal Hammer <ghammer@redhat.com>
    Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    (cherry picked from commit 4c1b8f1)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    tsekiyama authored and mdroth committed Feb 25, 2014
    Copy the full SHA
    68e3bb1 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2014

  1. adlib: fix patching of port I/O addresses

    Commit 2b21fb5 (adlib: sort offsets in portio registration, 2013-08-14)
    fixed the offsets in adlib_portio_list, but forgot the matching indices
    in adlib_realizefn.
    
    Reported at http://virtuallyfun.superglobalmegacorp.com/?p=3616 by
    "neozeed".
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    (cherry picked from commit 7f0ba7b)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    bonzini authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    c885105 View commit details
    Browse the repository at this point in the history
  2. tcg-arm: The shift count of op_rotl_i32 is in args[2] not args[1].

    It's this that should be subtracted from 0x20 when converting to a right rotate.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Huw Davies <huw@codeweavers.com>
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    (cherry picked from commit 7a3a009)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    hdmdavies authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    2cd72ad View commit details
    Browse the repository at this point in the history
  3. memory: fix limiting of translation at a page boundary

    Commit 360e607 (address_space_translate: do not cross page boundaries,
    2014-01-30) broke MMIO accesses in cases where the section is shorter
    than the full register width.  This can happen for example with the
    Bochs DISPI registers, which are 16 bits wide but have only a 1-byte
    long MemoryRegion (if you write to the "second byte" of the register
    your access is discarded; it doesn't write only to half of the register).
    
    Restrict the action of commit 360e607 to direct RAM accesses.  This
    is enough for Xen, since MMIO will not go through the mapcache.
    
    Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit a87f395)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    bonzini authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    819ddf7 View commit details
    Browse the repository at this point in the history
  4. Update OpenBIOS images

    Update OpenBIOS images to SVN r1246 built from submodule.
    
    Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    (cherry picked from commit fbb9c59)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    mcayland authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    ec6428b View commit details
    Browse the repository at this point in the history
  5. linux-user: Fix trampoline code for CRIS

    __put_user can write bytes, words (2 bytes) or longwords (4 bytes).
    Here obviously words should have been written, but bytes were written,
    so values like 0x9c5f were truncated to 0x5f.
    
    Fix this by changing retcode from uint8_t to to uint16_t in
    target_signal_frame and also in the unused rt_signal_frame.
    
    This problem was reported by static code analysis (smatch).
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Acked-by: Riku Voipio <riku.voipio@linaro.org>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
    Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
    Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
    (cherry picked from commit 8cfc114)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    4243889 View commit details
    Browse the repository at this point in the history
  6. i386: Add missing include file for QEMU_PACKED

    Instead of packing BiosLinkerLoaderEntry, an unused global variable called
    QEMU_PACKED was created (detected by smatch static code analysis).
    
    Including qemu-common.h gets the right definition and also includes some
    standard include files which now can be removed here.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    (cherry picked from commit c428c5a)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    6b579c8 View commit details
    Browse the repository at this point in the history
  7. KVM: Retry KVM_CREATE_VM on EINTR

    Upstreaming this change from Android (https://android-review.googlesource.com/54211).
    
    On heavily loaded machines with many VM instances we see KVM_CREATE_VM
    failing with EINTR on this path:
    
    kvm_dev_ioctl_create_vm -> kvm_create_vm -> kvm_init_mmu_notifier -> mmu_notifier_register ->  do_mmu_notifier_register -> mm_take_all_locks
    
    which checks if any signals have been raised while it was attaining locks
    and returns EINTR.  Retrying the system call greatly improves reliability.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: thomas knych <thomaswk@google.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 94ccff1)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    thomaswk authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    47c6edc View commit details
    Browse the repository at this point in the history
  8. virtio-scsi: Prevent assertion on missed events

    In some cases, an unplug can cause events to be dropped, which
    leads to an assertion failure when preparing to notify the guest
    kernel.
    
    Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 49fb65c)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Eric Farman authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    a5221ee View commit details
    Browse the repository at this point in the history
  9. virtio-scsi: Cleanup of I/Os that never started

    There is still a small window that occurs when a cancel I/O affects
    an asynchronous I/O operation that hasn't started.  In other words,
    when the residual data length equals the expected data length.
    
    Today, the routine virtio_scsi_command_complete fails because the
    VirtIOSCSIReq pointer (from the hba_private field in SCSIRequest)
    was cleared earlier when virtio_scsi_complete_req was called by
    the virtio_scsi_request_cancelled routine.  As a result, the
    virtio_scsi_command_complete routine needs to simply return when
    it is processing a SCSIRequest block that was marked canceled.
    
    Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit e9c0f0f)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Eric Farman authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    30a0fc3 View commit details
    Browse the repository at this point in the history
  10. scsi: Assign cancel_io vector for scsi_disk_emulate_ops

    Some emulated disk operations (MODE SELECT, UNMAP, WRITE SAME)
    can trigger asynchronous I/Os.  Provide the cancel_io callback
    to ensure that AIOCBs are properly cleaned up.
    
    Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
    Cc: qemu-stable@nongnu.org
    [Tweak commit message. - Paolo]
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 33325a5)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    bonzini authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    ad0a644 View commit details
    Browse the repository at this point in the history
  11. scsi: Support TEST UNIT READY in the dummy LUN0

    SeaBIOS waits for LUN0 to respond to the TEST UNIT READY command
    in order to decide whether it should part of the boot sequence.
    If LUN0 does not respond to the command, boot is delayed by up
    to 5 seconds.  This currently happens when there is no LUN0 on
    a target.  Fix that by adding a trivial implementation of the
    command.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 1cb27d9)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    bonzini authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    6b7ed87 View commit details
    Browse the repository at this point in the history
  12. block/curl: Implement the libcurl timer callback interface

    libcurl versions 7.16.0 and later have a timer callback interface which
    must be implemented in order for libcurl to make forward progress (it
    will sometimes rely on being called back on the timeout if there are
    no file descriptors registered). Implement the callback, and use a
    QEMU AIO timer to ensure we prod libcurl again when it asks us to.
    
    Based on Peter's original patch plus my fix to add curl_multi_timeout_do.
    Should compile just fine even on older versions of libcurl.
    
    I also tried copy-on-read and streaming:
    
        $ ./qemu-img create -f qcow2 -o \
             backing_file=http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso \
             foo.qcow2 1G
        $ x86_64-softmmu/qemu-system-x86_64 \
             -drive if=none,file=foo.qcow2,copy-on-read=on,id=cd \
             -device ide-cd,drive=cd --enable-kvm -m 1024
    
    Direct http usage is probably too slow, but with copy-on-read ultimately
    the image does boot!
    
    After some time, streaming gets canceled by an EIO, which needs further
    investigation.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    (cherry picked from commit 031fd1b)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    pm215 authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    b54720b View commit details
    Browse the repository at this point in the history
  13. 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 Feb 21, 2014
    Copy the full SHA
    c426a2d View commit details
    Browse the repository at this point in the history
  14. migration: qmp_migrate(): keep working after syntax error

    If a user or QMP client enter a bad syntax for the migrate
    command in QMP/HMP, then the migrate command will never succeed
    from that point on.
    
    For example, if you enter:
    
    (qemu) migrate tcp;0:4444
    migrate: Parameter 'uri' expects a valid migration protocol
    
    Then the migrate command will always fail from now on:
    
    (qemu) migrate tcp:0:4444
    migrate: There's a migration process in progress
    
    The problem is that qmp_migrate() sets the migration status to
    MIG_STATE_SETUP and doesn't reset it on syntax error. This bug
    was introduced by commit 29ae8a4.
    
    Reviewed-by: Michael R. Hines <mrhines@us.ibm.com>
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    (cherry picked from commit c950114)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Luiz Capitulino authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    15a14f2 View commit details
    Browse the repository at this point in the history
  15. mainstone: Fix duplicate array values for key 'space'

    cgcc reported a duplicate initialisation. Mainstone includes a matrix
    keyboard where two different positions map to 'space'.
    
    QEMU uses the reversed mapping and does not map 'space' to two different
    matrix positions.
    
    Some other keys are either missing or might be mapped wrongly (cf. Linux
    kernel code). Don't fix these until someone can test them with real
    hardware, but add TODO comments.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    (cherry picked from commit 7dbc115)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    stweil authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    88d08de View commit details
    Browse the repository at this point in the history
  16. seccomp: exit if seccomp_init() fails

    This fixes a bug where we weren't exiting if seccomp_init() failed.
    
    Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
    Acked-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
    Acked-by: Paul Moore <pmoore@redhat.com>
    (cherry picked from commit 2a13f99)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    Corey Bryant authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    109b243 View commit details
    Browse the repository at this point in the history
  17. s390x/kvm: Fix diagnose handling.

    The instruction intercept handler for diagnose used only the displacement
    when trying to calculate the function code. This is only correct for base
    0, however; we need to perform a complete base/displacement address
    calculation and use bits 48-63 as the function code.
    
    Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
    Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
    Signed-off-by: Alexander Graf <agraf@suse.de>
    (cherry picked from commit 638129f)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    cohuck authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    c2f6dc6 View commit details
    Browse the repository at this point in the history
  18. qemu_opts_parse(): always check return value

    qemu_opts_parse() can always return NULL, even if the QemuOptsList.desc in
    question would be trivial to satisfy (eg. because it's empty). For
    example:
    
    qemu_opts_parse()
      opts_parse()
        qemu_opts_create()
          id_wellformed()
    
    In practice:
    
      $ .../qemu-system-x86_64 -acpitable id=3
      qemu-system-x86_64: -acpitable id=3: Parameter 'id' expects an identifier
      **
      ERROR:vl.c:3491:main: assertion failed: (opts != NULL)
      Aborted (core dumped)
    
      $ .../qemu-system-x86_64 -smbios id=3
      qemu-system-x86_64: -smbios id=3: Parameter 'id' expects an identifier
      Segmentation fault (core dumped)
    
    I checked all qemu_opts_parse() invocations (and all drive_def()
    invocations too, because it blindly forwards the former's retval). Only
    the two above examples look problematic.
    
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-id: 1385658779-7529-1-git-send-email-lersek@redhat.com
    Signed-off-by: Anthony Liguori <aliguori@amazon.com>
    (cherry picked from commit f46e720)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    lersek authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    dc9e1e7 View commit details
    Browse the repository at this point in the history
  19. block/iscsi: use a bh to schedule co reentrance

    this fixes a potential segfault and performance regression.
    
    If the coroutine is reentered directly in the iscsi_co_generic_cb
    iscsi_process_{read,write} are interrupted and reentered any
    time later. One the one hand this could happen after an iscsi_close
    where the iscsi context is already gone (segfault). On the
    other hand this limits the number of processed callbacks
    in each aio_dispatch to one (potential performance regression).
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Peter Lieven <pl@kamp.de>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    (cherry picked from commit 8b9dfe9)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    plieven authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    02e1c55 View commit details
    Browse the repository at this point in the history
  20. hpet: fix build with CONFIG_HPET off

    make hpet_find inline so we don't need
    to build hpet.c to check if hpet is enabled.
    
    Fixes link error with CONFIG_HPET off.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    (cherry picked from commit 142e095)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    mstsirkin authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    9692bad View commit details
    Browse the repository at this point in the history
  21. tcg/optimize: fix known-zero bits for right shift ops

    32-bit versions of sar and shr ops should not propagate known-zero bits
    from the unused 32 high bits. For sar it could even lead to wrong code
    being generated.
    
    Cc: qemu-stable@nongnu.org
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    (cherry picked from commit e46b225)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    aurel32 authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    6ec62b7 View commit details
    Browse the repository at this point in the history
  22. Fix QEMU build on OpenBSD on x86 archs

    This resolves the build issue with building the ROMs on OpenBSD on x86 archs.
    As of OpenBSD 5.3 the compiler builds PIE binaries by default and thus the
    whole OS/packages and so forth. The ROMs need to have PIE disabled.
    Check in configure whether the compiler supports the flags for disabling
    PIE, and if it does then use them for building the ROMs. This fixes the
    following buildbot failure:
    
    >From the OpenBSD buildbots..
      Building optionrom/multiboot.img
    ld: multiboot.o: relocation R_X86_64_16 can not be used when making a shared object; recompile with -fPIC
    
    Signed-off by: Brad Smith <brad@comstyle.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    (cherry picked from commit 46eef33)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    brad0 authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    0e282ac View commit details
    Browse the repository at this point in the history
  23. linux-user: create target_structs header to place ipc_perm and shmid_ds

    Creating target_structs header in linux-user/$arch/ and making
    target_ipc_perm and target_shmid_ds its first inhabitants.
    The struct defintions may/should be further fine-tuned by arch maintainers.
    
    Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
    Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
    (cherry picked from commit 55a2b16)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    petar-jovanovic authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    75b4b74 View commit details
    Browse the repository at this point in the history
  24. linux-user: pass correct parameter to do_shmctl()

    Fix shmctl issue by passing correct parameter buf to do_shmctl().
    
    Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
    Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
    (cherry picked from commit a292678)
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
    petar-jovanovic authored and mdroth committed Feb 21, 2014
    Copy the full SHA
    0bc4142 View commit details
    Browse the repository at this point in the history
Older