Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: iaik-trustzone…
Commits on Nov 16, 2011
  1. WIP: Merge with linaro's master branch (linaro 2011.11).

    authored
    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 ....)
    * ...
Commits on Nov 11, 2011
  1. BUGFIX: ARM TrustZone: Properly handle the CP15 TLS registers in the …

    authored
    …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.
Commits on Nov 10, 2011
  1. Complain loudly on attempts to write the Interrupt Status Register.

    authored
    Thanks to Andreas Niederl for catching this one.
Commits on Nov 8, 2011
  1. @pm215

    hw/omap_gpio: Fix infinite recursion when doing 8/16 bit reads

    pm215 authored
    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>
  2. @pm215
  3. @pm215

    Merge qemu upstream into qemu-linaro

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

    Anthony Liguori authored
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  2. console: Fix rendering of VGA underline

    Markus Armbruster authored Anthony Liguori committed
    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>
  3. qemu_timedate_diff() shouldn't modify its argument.

    Gleb Natapov authored Anthony Liguori committed
    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>
  4. @wencongyang

    reenable vm_clock when resuming all vcpus

    wencongyang authored Anthony Liguori committed
    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>
  5. @kraxel

    qxl: fix vga port initialization.

    kraxel authored Anthony Liguori committed
    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>
  6. @kraxel

    ac97: don't override the pci subsystem id

    kraxel authored Anthony Liguori committed
    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>
  7. @kraxel

    pc: add 1.0 machine type

    kraxel authored Anthony Liguori committed
    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>
  8. @bonzini

    disable automatic loading of sgabios when -nographic

    bonzini authored Anthony Liguori committed
    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>
  9. @bonzini

    add sgabios blob and submodule

    bonzini authored Anthony Liguori committed
    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>
  10. xen-platform: Fix IO port read/write functions

    Anthony PERARD authored Stefan Hajnoczi committed
    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>
  11. readline: Fix buffer overrun on re-add to history

    Markus Armbruster authored Stefan Hajnoczi committed
    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>
  12. @pborzenkov

    cmd: Fix potential memory leak

    pborzenkov authored Stefan Hajnoczi committed
    Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  13. @pborzenkov

    cmd: Fix potential NULL pointer dereference

    pborzenkov authored Stefan Hajnoczi committed
    Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  14. @pborzenkov

    cmd: Fix coding style in cmd.c

    pborzenkov authored Stefan Hajnoczi committed
    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>
Commits on Nov 6, 2011
  1. @rabinv @pm215

    arm_gic: handle banked enable bits for per-cpu interrupts

    rabinv authored pm215 committed
    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>
Commits on Nov 4, 2011
  1. @bonzini

    vvfat: reorganize computation of disk geometry

    bonzini authored Kevin Wolf committed
    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>
  2. @bonzini

    vvfat: do not hardcode sector counts in error message

    bonzini authored Kevin Wolf committed
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  3. @bonzini

    vvfat: unify and correct computation of sector count

    bonzini authored Kevin Wolf committed
    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>
  4. @bonzini

    vvfat: need to use first_sectors_number to distinguish fdd/hdd

    bonzini authored Kevin Wolf committed
    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>
  5. @bonzini

    vvfat: do not fail if the disk has spare sectors

    bonzini authored Kevin Wolf committed
    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>
  6. @bonzini

    vvfat: fix out of bounds array_get usage

    bonzini authored Kevin Wolf committed
    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>
  7. @pickick

    block/cloop: Use g_free instead of free

    pickick authored Kevin Wolf committed
    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>
  8. @pickick

    block/cloop: Fix coding style

    pickick authored Kevin Wolf committed
    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>
  9. dma: Avoid reentrancy in DMA transfer handlers

    Kevin Wolf authored
    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>
  10. qemu-io: Fix multiwrite_f error handling

    Kevin Wolf authored
    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>
  11. qemu-io: Handle create_iovec errors

    Kevin Wolf authored
    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>
Something went wrong with that request. Please try again.