Permalink
Commits on Nov 16, 2011
  1. WIP: Merge with linaro's master branch (linaro 2011.11).

    Open issues:
    * Investigate rewrite TrustZone memory protection emulation in terms of MemoryRegion API
    * General code cleanup (e.g. remove unused duplicate of CP registers in target-arm/cpu.h)
    * Lots of testing :)
      (Currently we are able to boot older versions of TU Dresden's Fiasco L4 kernel
       which still contain their basic TrustZone patches ....)
    * ...
    committed Nov 16, 2011
Commits on Nov 11, 2011
  1. BUGFIX: ARM TrustZone: Properly handle the CP15 TLS registers in the …

    …translator.
    
    This patch adds properly handling of secure/nonsecure world register
    banks to the dynamic translator. The previous code only considered
    banked registers which were implemented by means of helper functions
    in target-arm/helper.c.
    
    The previous patches missed the CP15 TLS registers (which are directly
    handled in the translator for efficieny reasons) which causes
    guests like modified Linux kernels or TU Dresden's Fiasco L4 micro-kernel
    to fail without this bugfix.
    committed Nov 11, 2011
Commits on Nov 10, 2011
  1. Complain loudly on attempts to write the Interrupt Status Register.

    Thanks to Andreas Niederl for catching this one.
    committed Nov 10, 2011
Commits on Nov 8, 2011
  1. hw/omap_gpio: Fix infinite recursion when doing 8/16 bit reads

    Fix a long-standing bug which meant that any attempt to do an
    8 or 16 bit read from the OMAP GPIO module would cause qemu to
    crash due to an infinite recursion.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Nov 7, 2011
  2. Merge qemu upstream into qemu-linaro

    (NB: upstream merge point is 1.0rc1)
    pm215 committed Nov 8, 2011
Commits on Nov 7, 2011
  1. Update version for v1.0-rc1

    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori committed Nov 7, 2011
  2. console: Fix rendering of VGA underline

    vga_putcharxy()'s underline code sets font_data to 0xffff instead of
    0xff.  vga_putcharxy() then reads dmask16[0xffff >> 4] and
    dmask4[0xffff >> 6].  In practice, these out-of-bounds subscripts
    "only" put a few crap bits into the display surface.
    
    For 32 bit pixels, there's no array access.  font_data's extra bits go
    straight into the display surface.
    
    Broken when commit 6d6f7c2 implemented underline.
    
    Spotted by Coverity.
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Markus Armbruster committed with Anthony Liguori Nov 4, 2011
  3. qemu_timedate_diff() shouldn't modify its argument.

    The caller of qemu_timedate_diff() does not expect that tm it passes to
    the function will be modified, but mktime() is destructive and modifies
    its argument. Pass a copy of tm to it and set tm_isdst so that mktime()
    will not rely on it since its value may be outdated.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gleb Natapov committed with Anthony Liguori Nov 6, 2011
  4. reenable vm_clock when resuming all vcpus

    We disable vm_clock when pausing all vcpus, but we forget to
    reenable it when resuming all vcpus. It will cause that the
    guest can not be rebooted.
    
    Tested-by: Zhi Yong Wu <zwu.kernel@gmai.com>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    wencongyang committed with Anthony Liguori Nov 4, 2011
  5. qxl: fix vga port initialization.

    Commit 0a039dc broke vga modes for
    qxl-vga by loosing vga_ioport_read windup.  qxl needs to hook into
    vga port writes only and used to realize that by letting vga_init() do
    the work for both reads and writes, then overwrite the write function.
    That little detail was missed while doing the conversion ...
    
    This patch fixes it.  It also switch qxl vga ioport registration to
    portio lists while being at it.
    
    Cc: Hans de Goede <hdegoede@redhat.com>
    Acked-by: Alon Levy <alevy@redhat.com>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    kraxel committed with Anthony Liguori Nov 3, 2011
  6. ac97: don't override the pci subsystem id

    This patch removes the code lines which set the subsystem id for the
    emulated ac97 card to 8086:0000.  Due to the device id being zero the
    subsystem id isn't vaild anyway.  With the patch applied the sound card
    gets the default qemu subsystem id (1af4:1100) instead.
    
    [ v2: old & broken id is maintained for -M pc-$oldqemuversion ]
    
    Cc: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    kraxel committed with Anthony Liguori Nov 7, 2011
  7. pc: add 1.0 machine type

    This patch adds a pc-1.0 machine type.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    kraxel committed with Anthony Liguori Nov 7, 2011
  8. disable automatic loading of sgabios when -nographic

    sgabios hasn't gotten a lot of coverage since it was not shipped.  For 1.0,
    let's disable the automatic loading of the option ROM in -nographic
    mode.  We can put it back for 1.1.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    bonzini committed with Anthony Liguori Nov 3, 2011
  9. add sgabios blob and submodule

    The rom was not added together with the sgabios device and is
    not installed.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    bonzini committed with Anthony Liguori Nov 3, 2011
  10. xen-platform: Fix IO port read/write functions

    Somehow, the read/write functions handle an offset that does not exist anymore.
    
    Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    sheep committed with Stefan Hajnoczi Nov 4, 2011
  11. readline: Fix buffer overrun on re-add to history

    readline_hist_add() moves the history entry to the end of history.  It
    uses memmove() to move rs->history[idx + 1..] to rs->history[idx..].
    However, its size argument is off by two array elements, so it writes
    one element beyond rs->history[], and reads two.
    
    On my system, this clobbers rs->hist_entry and the hole right after
    it.  Since the function assigns to rs->hist_entry in time, the bug has
    no ill effects for me.
    
    Spotted by Coverity.
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Markus Armbruster committed with Stefan Hajnoczi Nov 4, 2011
  12. cmd: Fix potential memory leak

    Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    pborzenkov committed with Stefan Hajnoczi Oct 31, 2011
  13. cmd: Fix potential NULL pointer dereference

    Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    pborzenkov committed with Stefan Hajnoczi Oct 31, 2011
  14. cmd: Fix coding style in cmd.c

    Before the next patches, fix coding style of the affected functions.
    
    Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    pborzenkov committed with Stefan Hajnoczi Oct 31, 2011
Commits on Nov 6, 2011
  1. arm_gic: handle banked enable bits for per-cpu interrupts

    The first enable set/clear register (which controls the PPIs and SGIs)
    is supposed to be banked for each processor.  Currently it is just
    handled globally and this prevents recent SMP Linux kernels from
    booting, because CPU0 stops receiving localtimer interrupts when CPU1
    disables them locally.
    
    To fix this, allow the enable bits to be enabled per-cpu.  For SPIs,
    always enable/disable ALL_CPU_MASK.
    
    Signed-off-by: Rabin Vincent <rabin@rab.in>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    rabinv committed with pm215 Nov 6, 2011
Commits on Nov 4, 2011
  1. vvfat: reorganize computation of disk geometry

    First determine FAT12/16/32, then compute geometry from that for both
    FDD and HDD.  For 1.44MB floppies, and 2.88MB floppies using FAT16,
    change to 1 sector/cluster.  The default remains 2.88MB with FAT12
    and 2 sectors/cluster.  Both DOS and mkdosfs by default format a 2.88MB
    floppy as FAT12.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    bonzini committed with Kevin Wolf Nov 4, 2011
  2. vvfat: do not hardcode sector counts in error message

    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    bonzini committed with Kevin Wolf Oct 5, 2011
  3. vvfat: unify and correct computation of sector count

    The sector count is stored in the partition and hence must not include the
    sectors before its start.  At the same time, remove the useless special
    casing for 1.44 MB floppies.  This fixes fsck on VVFAT hard disks,
    which otherwise tries to seek past the end of the disk.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    bonzini committed with Kevin Wolf Oct 5, 2011
  4. vvfat: need to use first_sectors_number to distinguish fdd/hdd

    This is consistent with what "real" floppies have, so file(1)
    now actually recognizes the VVFAT image as a 1.44 MB floppy.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    bonzini committed with Kevin Wolf Oct 5, 2011
  5. vvfat: do not fail if the disk has spare sectors

    If the number of "faked sectors" + the number of sectors that are
    part of a cluster does not sum up to the total number of sectors,
    qemu-img convert fails.  Read these spare sectors as all zeros.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    bonzini committed with Kevin Wolf Oct 5, 2011
  6. vvfat: fix out of bounds array_get usage

    When reading the address of the first free entry, you cannot
    use array_get without first marking all entries as occupied.
    
    This is visible if you change the sectors per cluster on a
    floppy from 2 to 1.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    bonzini committed with Kevin Wolf Oct 5, 2011
  7. block/cloop: Use g_free instead of free

    Fix mismatching allocation and deallocation: g_free should be used to pair with
    g_malloc.
    
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Reviewed_by: Ray Wang <raywang@linux.vnet.ibm.com>
    Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    pickick committed with Kevin Wolf Nov 2, 2011
  8. block/cloop: Fix coding style

    Fix coding style in block/cloop.c.
    
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Reviewed_by: Ray Wang <raywang@linux.vnet.ibm.com>
    Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    pickick committed with Kevin Wolf Nov 2, 2011
  9. dma: Avoid reentrancy in DMA transfer handlers

    With the conversion of the block layer to coroutines, bdrv_read/write
    have changed to run a nested event loop that calls qemu_bh_poll.
    Consequently a scheduled BH can be called while a DMA transfer handler
    runs and this means that DMA_run becomes reentrant.
    
    Devices haven't been designed to cope with that, so instead of running a
    nested transfer handler just wait for the next invocation of the BH from the
    main loop.
    
    This fixes some problems with the floppy device.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Kevin Wolf committed Oct 28, 2011
  10. qemu-io: Fix multiwrite_f error handling

    Without this fix, some qiovs can be leaked if an error occurs. Also a semicolon
    at the end of the command line would make the code walk beyond the end of argv.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Kevin Wolf committed Oct 31, 2011
  11. qemu-io: Handle create_iovec errors

    Callers of create_iovec() didn't check for failure and continued with
    uninitialised data in error cases. This patch adds checks to each call.
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Kevin Wolf committed Oct 31, 2011