Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 21, 2014
  1. lm32: remove lm32_sys

    authored
    Since we have now semihosting on the lm32 target, this device is no longer
    needed.  Remove it.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
  2. test: lm32: use semihosting for testing

    authored
    Instead of the lm32-sys device, use semihosting to print to the host
    console and exit the test.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
  3. target-lm32: add semihosting support

    authored
    Intercept certain system calls if semihosting is enabled. This should
    bahave like the GDB simulator.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
Commits on Feb 17, 2014
  1. test: lm32: make test cases independent

    authored
    Make test cases independent from from each other. Eg. if a test case needs
    a specific value in register A, don't rely on the fact that it is already
    set by the preceding test case.
    
    Signed-off-by: Michael Walle <michael@walle.cc>
  2. @brad0 @pm215

    Fix QEMU build on OpenBSD on x86 archs

    brad0 authored pm215 committed
    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>
Commits on Feb 15, 2014
  1. @pm215

    libvixl: fix 64bit constants usage

    Michael Tokarev authored pm215 committed
    Since commit 999b53e:
     Author: Claudio Fontana <claudio.fontana@linaro.org>
     Date:   Wed Feb 5 17:27:28 2014 +0000
    
        disas: Implement disassembly output for A64
    
        Use libvixl to implement disassembly output in debug
        logs for A64, for use with both AArch64 hosts and targets.
    
    disas/libvixl/ contains functions which uses 64bit constants
    without using appropriate suffixes, which fails on 32bits.
    
    Fix this by using ULL suffix.
    
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  2. @pm215

    Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-0…

    pm215 authored
    …2-15' into staging
    
    trivial patches for 2014-02-15
    
    # gpg: Signature made Sat 15 Feb 2014 12:10:46 GMT using RSA key ID 74F0C838
    # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
    # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
    # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
    # gpg: WARNING: This key is not certified with a trusted signature!
    # gpg:          There is no indication that the signature belongs to the owner.
    # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
    #      Subkey fingerprint: E190 8639 3B10 B51B AC2C  8B73 5253 C5AD 74F0 C838
    
    * remotes/mjt/tags/trivial-patches-2014-02-15:
      char/serial: Fix emptyness check
      gitignore: anchor all ignored names
      vl: trim includes
      vl: remove old, long-unused defines
      net: declare struct iovec in checksum.h to fix compiler warning
      linux-user: refactor do_socketcall()
      configure: add hints to a remedy for feature_not_found errors
      configure: add hint of libfdt to DTC dependency not found message
      sparc/leon3: Initialize stack pointer
      misc: Fix case Qemu -> QEMU
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  3. @pm215

    Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-reques…

    pm215 authored
    …t' into staging
    
    Block pull request
    
    # gpg: Signature made Fri 14 Feb 2014 17:26:30 GMT using RSA key ID 81AB73C8
    # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
    # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
    # gpg: WARNING: This key is not certified with a trusted signature!
    # gpg:          There is no indication that the signature belongs to the owner.
    # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
    
    * remotes/stefanha/tags/block-pull-request:
      block: Open by reference will try device then node_name.
      block: Relax bdrv_lookup_bs constraints.
      blockdev: Fix wrong usage of QDECREF causing snapshoted quorum to crash on close.
      block: mirror - use local_err to avoid NULL errp
      qemu-iotests: Don't run 005 on vmdk split formats
      block: qemu-iotests - add vhdx log replay tests for qemu-img
      block: qemu-iotests - fix test 070 (vhdx)
      block: Don't throw away errno via error_setg
      block: Add notes to iSCSI's .bdrv_open and .bdrv_reopen_prepare
      blockdev: Remove 'type' parameter from blockdev_init()
      sdhci: Drop unnecessary #include
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  4. @pm215

    Merge remote-tracking branch 'remotes/jliu/or32-ld-st' into staging

    pm215 authored
    * remotes/jliu/or32-ld-st:
      target-openrisc: Use new qemu_ld/st opcodes
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  5. @pm215

    Merge remote-tracking branch 'remotes/jovanovic/mips-ufrp' into staging

    pm215 authored
    * remotes/jovanovic/mips-ufrp:
      target-mips: add user-mode FR switch support for MIPS32r5
      target-mips: add support for CP0_Config5
      target-mips: add support for CP0_Config4
      target-mips: add CPU definition for MIPS32R5
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  6. @pete128

    char/serial: Fix emptyness check

    pete128 authored Michael Tokarev committed
    This was guarding against a full fifo rather than an empty fifo when
    popping. Fix.
    
    Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
    Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
    Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  7. gitignore: anchor all ignored names

    Michael Tokarev authored
    by default, patterns/names in .gitignore are applied
    recursively to all subdirectories.  So any name mentioned
    in .gitignore is ignored in all subdirectores.  This is good
    for, say. object files (*.o), but not good for particular
    names which should be ignored only in one directory.  For
    example, qemu-img.1 file is generated in the top directory,
    and it should be ignored only there, not in some subdir.
    
    At first, this might not matter much, but we have lots of
    examples already where it actually does not help at all.
    For example, top-level .gitignore ignores a file/dir named
    "patches" (which is very questionable by itself), but it
    is applied recursively, so git also ignores, for example,
    debian/patches/ which should not be ignored.
    
    So anchor all the names where appropriate.  .gitignore
    should be cleaned up further, which will be addressed in
    a subsequent patch.
    
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  8. vl: trim includes

    Michael Tokarev authored
    Over time, lots of stuff moved from vl.c into separate
    files.  But include statements has never been cleaned,
    and they continue to carry lots of anymore-unused stuff.
    
    Remove includes which are not relevant for vl.c anymore.
    Apparently there are more includes like this, because
    many are included from qemu-common.h and the like, or,
    for example, I don't see were we use win32-specific
    stuff in vl.c (so that maybe #include <windows.h> might
    be removed too).
    
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  9. vl: remove old, long-unused defines

    Michael Tokarev authored
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  10. net: declare struct iovec in checksum.h to fix compiler warning

    Michael Tokarev authored
    The checksum calculation header exports a function that refers to
    struct iov defined in iov.h.  Without including the former, build
    fails like this:
    
      In file included from hw/net/fsl_etsec/rings.c:24:0:
      include/net/checksum.h:51:31: error: ‘struct iovec’ declared inside parameter list [-Werror]
      include/net/checksum.h:51:31: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
    
    Mention struct iovec there.
    
    Reported-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  11. linux-user: refactor do_socketcall()

    Michael Tokarev authored
    Refactor do_socketcall() to do argument conversion/checking first,
    according to a lookup table (which call has how many args) and
    by calling the right function second with ready-to-go arguments.
    
    This ensures that all arguments are handled as abi_long, according
    to socketcall prototype, and simplifies argument handling alot too.
    
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
  12. @stewart-ibm

    configure: add hints to a remedy for feature_not_found errors

    stewart-ibm authored Michael Tokarev committed
    Modify feature_not_found to accept an optional second parameter to be
    printed after the generic feature not found error.
    
    Modify most calls to feature_not_found to provide hints as to the
    packages that may be missing. The few calls remaining without a remedy
    are ones I couldn't work out how to remedy myself.
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  13. @stewart-ibm

    configure: add hint of libfdt to DTC dependency not found message

    stewart-ibm authored Michael Tokarev committed
    Most distros package it as libfdt, and mentioning libfdt here makes it
    much easier to find the package you're missing.
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
    Reviewed-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  14. @sebhub

    sparc/leon3: Initialize stack pointer

    sebhub authored Michael Tokarev committed
    A lot of real world LEON3 systems are shipped with the GRMON boot
    loader.  This boot loader initializes the stack pointer with the end of
    RAM address.  The application can use this to detect the RAM size of a
    particular board variant.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
    Reviewed-by: Fabien Chouteau <chouteau@adacore.com>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  15. @stweil

    misc: Fix case Qemu -> QEMU

    stweil authored Michael Tokarev committed
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Reviewed-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Commits on Feb 14, 2014
  1. @benoit-canet

    block: Open by reference will try device then node_name.

    benoit-canet authored Stefan Hajnoczi committed
    Since we introduced node_name for named bs of the graph modify the opening by
    reference to use it as a fallback.
    
    This patch also enforce the separation of the device id and graph node
    namespaces.
    
    Signed-off-by: Benoit Canet <benoit@irqsave.net>
    Reviewed-by: Max Reitz <mreitz@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  2. @benoit-canet

    block: Relax bdrv_lookup_bs constraints.

    benoit-canet authored Stefan Hajnoczi committed
    The following patch will reuse bdrv_lookup_bs in order to open images by
    references so the rules of usage of bdrv_lookup_bs must be relaxed a bit.
    
    Signed-off-by: Benoit Canet <benoit@irqsave.net>
    Reviewed-by: Max Reitz <mreitz@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  3. @benoit-canet

    blockdev: Fix wrong usage of QDECREF causing snapshoted quorum to cra…

    benoit-canet authored Stefan Hajnoczi committed
    …sh on close.
    
    As bdrv_open() documentation states:
    "The reference to the QDict belongs to the block layer
     * after the call (even on failure), so if the caller intends to reuse the
     * dictionary, it needs to use QINCREF() before calling bdrv_open."
    
    the optional options dict will not be reused after bdrv_open() and should
    belong to the block layer so remove the extra QDECREF(options).
    
    Signed-off-by: Benoit Canet <benoit@irqsave.net>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  4. @codyprime

    block: mirror - use local_err to avoid NULL errp

    codyprime authored Stefan Hajnoczi committed
    When starting a block job, commit_active_start() relies on whether *errp
    is set by mirror_start_job.  This allows it to determine if the mirror
    job start failed, so that it can clean up any changes to open flags from
    the bdrv_reopen().  If errp is NULL, then it will not be able to
    determine if mirror_start_job failed or not.
    
    To avoid this, use a local Error variable, and then propagate the error
    (if any) to errp.
    
    Reported-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Jeff Cody <jcody@redhat.com>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  5. @famz

    qemu-iotests: Don't run 005 on vmdk split formats

    famz authored Stefan Hajnoczi committed
    There would be too many extents that VMDK driver can't open all of them:
    
        005 0s ... - output mismatch (see 005.out.bad)
        --- 005.out     2013-12-24 09:27:27.608181030 +0800
        +++ 005.out.bad 2014-02-13 10:00:15.282184557 +0800
        @@ -4,10 +4,10 @@
         Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000
    
         small read
        -read 4096/4096 bytes at offset 1024
        -4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
        +qemu-io: can't open device /tmp/qemu-iotests/t.vmdk: Could not open '/tmp/qemu-iotests/t-s1016.vmdk': Too many open files
        +no file open, try 'help open'
    
         small write
        -wrote 4096/4096 bytes at offset 8192
        -4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
        +qemu-io: can't open device /tmp/qemu-iotests/t.vmdk: Could not open '/tmp/qemu-iotests/t-s1016.vmdk': Too many open files
        +no file open, try 'help open'
         *** done
    
    So disable the two subformats.
    
    Signed-off-by: Fam Zheng <famz@redhat.com>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  6. @codyprime

    block: qemu-iotests - add vhdx log replay tests for qemu-img

    codyprime authored Stefan Hajnoczi committed
    VHDX logs can now be replayed via 'qemu-img check -r all'.  Add
    tests to verify that the log replay is successful when using qemu-img.
    
    Signed-off-by: Jeff Cody <jcody@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  7. @codyprime

    block: qemu-iotests - fix test 070 (vhdx)

    codyprime authored Stefan Hajnoczi committed
    VHDX test 070 failed, due to different output from qemu-io / qemu
    when opening an image read-only that contains a log file.  Filter
    the output, and update the expected results to match the correct
    output.
    
    Signed-off-by: Jeff Cody <jcody@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  8. @codyprime

    block: Don't throw away errno via error_setg

    codyprime authored Stefan Hajnoczi committed
    There are a handful of places in the block layer where a failure path
    has a valid -errno value, yet error_setg() is used.  Those instances
    should instead use error_setg_errno(), to preserve as much error
    information as possible.
    
    This patch replaces those instances with error_setg_errno(), so that
    errno is passed up the stack in the error message.
    
    Reported-By: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Jeff Cody <jcody@redhat.com>
    Reviewed-by: Eric Blake <eblake@redhat.com>
    Reviewed-by: Fam Zheng <famz@redhat.com>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  9. @codyprime

    block: Add notes to iSCSI's .bdrv_open and .bdrv_reopen_prepare

    codyprime authored Stefan Hajnoczi committed
    iSCSI currently does not need to do any actions to support the
    current usage of bdrv_reopen().  However, it is important to note
    a couple of things: 1.) A connection will not be re-established to
    an iSCSI target, and 2.) If iscsi_open() is changed to parse 'flags',
    then iscsi_reopen_prepare() may need to be more than a stub.
    
    In light of the above, this commit adds comments above both of the
    functions to bring attention to these facts.
    
    Signed-off-by: Jeff Cody <jcody@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  10. blockdev: Remove 'type' parameter from blockdev_init()

    Kevin Wolf authored Stefan Hajnoczi committed
    blockdev-add doesn't know about the device that the backend will be
    attached to, this is a legacy -drive concept. Move the remaining checks
    that use it to drive_init().
    
    [Fam Zheng <famz@redhat.com> suggested line-wrapping to 80 chars as
    required by the coding standard.  I have fixed this.
    --Stefan]
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  11. sdhci: Drop unnecessary #include

    Kevin Wolf authored Stefan Hajnoczi committed
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Reviewed-by: Fam Zheng <famz@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  12. @agraf @pm215

    PPC: KVM: Add missing address space to ldl_phys helper

    agraf authored pm215 committed
    We now have to pass an address space to our _phys helpers. During the
    transition apparently the EPR exit path missed out, so let's put it there.
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Commits on Feb 13, 2014
  1. @pm215

    Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into sta…

    pm215 authored
    …ging
    
    acpi,pc,pci fixes and enhancements
    
    Most changes here are hotplug related:
    
    This merges hotplug infrastructure changes by Igor,
    some acpi related fixes, and PC fixes.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    
    # gpg: Signature made Mon 10 Feb 2014 09:13:26 GMT using RSA key ID D28D5469
    # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
    # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
    # gpg: WARNING: This key is not certified with a trusted signature!
    # gpg:          There is no indication that the signature belongs to the owner.
    # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
    #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
    
    * remotes/mst/tags/for_upstream:
      ACPI: Remove commented-out code from HPET._CRS
      hw/pci: switch to a generic hotplug handling for PCIDevice
      pci/pcie: convert PCIE hotplug to use hotplug-handler API
      pci/shpc: convert SHPC hotplug to use hotplug-handler API
      acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API
      qdev:pci: refactor PCIDevice to use generic "hotpluggable" property
      hw/acpi: move typeinfo to the file end
      qdev: add "hotpluggable" property to Device
      qdev: add to BusState "hotplug-handler" link
      define hotplug interface
      loader: document that errno is set
      pc.c: better error message on initrd sizing failure
      pc_piix: enable legacy hotplug for Xen
      qtest: don't report signals if qtest driver enabled
      hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug
      pcihp: remove unused AcpiPciHpPciStatus.device_present field
      pcihp: make pci_read() mmio calback compatible with legacy ACPI hotplug
      pcihp: make PCI hotplug mmio handlers indifferent to PCI_HOTPLUG_ADDR
      pcihp: replace enable|disable_device() with oneliners
      pcihp: reduce number of device check events
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  2. @pm215

    Merge remote-tracking branch 'remotes/afaerber/tags/prep-for-upstream…

    pm215 authored
    …' into staging
    
    PReP machine and devices
    
    * Cleanups for Raven PCI host bridge
    * Removal of PReP machine and devices from qemu-system-ppcemb
    
    # gpg: Signature made Mon 10 Feb 2014 16:19:03 GMT using RSA key ID 3E7E013F
    # gpg: Good signature from "Andreas Färber <afaerber@suse.de>"
    # gpg:                 aka "Andreas Färber <afaerber@suse.com>"
    
    * remotes/afaerber/tags/prep-for-upstream:
      prep: Drop from ppcemb-softmmu
      raven: Use constant PCI_NUM_PINS instead of 4
      prep: Kill get_system_io() usage
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Commits on Feb 12, 2014
  1. @pm215

    Merge remote-tracking branch 'remotes/alon/pull-libcacard.glusterfs' …

    pm215 authored
    …into staging
    
    * remotes/alon/pull-libcacard.glusterfs:
      libcacard: Don't link with all libraries QEMU links to
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Something went wrong with that request. Please try again.