1. 07 May, 2014 10 commits
    • Chen Gang's avatar
      arch_init: Be sure of only one exit entry with DPRINTF() for ram_load() · 4798fe55
      Chen Gang authored
      When DPRINTF() has effect, the original author wants to print all
      ram_load() calling results. So need use 'goto' instead of 'return'
      within ram_load(), just like other areas have done.
      Signed-off-by: default avatarChen Gang <gang.chen.5i5j@gmail.com>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      4798fe55
    • Peter Maydell's avatar
      tests/tcg: Fix compilation of test_path · ad0a118f
      Peter Maydell authored
      The test_path binary is (unlike the other test binaries in tests/tcg)
      actually intended to be compiled with the same compiler used to build
      the main QEMU executables. It actually #includes a number of the
      QEMU source files in an attempt to unit-test the util/path.c functions,
      and so if it is not compiled with the same compiler used by configure
      to set CONFIG_ settings then it is liable to fail to build.
      Fix the makefile to build it with the default C compiler rules, not
      CC_I386, and fix the test itself not to include a lot of unnecessary
      trace related source files which cause the build to fail if the trace
      backend is anything other than 'simple'.
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      ad0a118f
    • Stefan Weil's avatar
      qga: Fix typo (plural) in comment · 8e8be266
      Stefan Weil authored
      Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      8e8be266
    • Michael Tokarev's avatar
      configure: remove bashism · 4fc00556
      Michael Tokarev authored
      Commit e26110cf added a check for shacmd to create a hash
      for modules.  This check in configure is using bash construct &>
      to redirect both stdout and stderr, which does fun things on some
      shells.  Get rid of it, use standard redirection instead.
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: default avatarFam Zheng <famz@redhat.com>
      4fc00556
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20140507' into staging · 8d1dc5d1
      Peter Maydell authored
      Some improvements for s390.
      
      Two patches deal with address translation, one fixes a problem in the
      channel subsystem code.
      
      # gpg: Signature made Wed 07 May 2014 09:29:30 BST using RSA key ID C6F02FAF
      # gpg: Can't check signature: public key not found
      
      * remotes/cohuck/tags/s390x-20140507:
        s390x/css: Don't save orb in subchannel.
        s390x/helper: Added format control bit to MMU translation
        s390x/helper: Fixed real-to-absolute address translation
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      8d1dc5d1
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20140505' into staging · c9541f67
      Peter Maydell authored
      migration/next for 20140505
      
      # gpg: Signature made Mon 05 May 2014 21:27:24 BST using RSA key ID 5872D723
      # gpg: Can't check signature: public key not found
      
      * remotes/juanquintela/tags/migration/20140505: (36 commits)
        migration: expose xbzrle cache miss rate
        migration: expose the bitmap_sync_count to the end
        migration: Add counts of updating the dirty bitmap
        XBZRLE: Fix one XBZRLE corruption issues
        migration: remove duplicate code
        Coverity: Fix failure path for qemu_accept in migration
        Init the XBZRLE.lock in ram_mig_init
        Provide init function for ram migration
        Count used RAMBlock pages for migration_dirty_pages
        Make qemu_peek_buffer loop until it gets it's data
        Disallow outward migration while awaiting incoming migration
        virtio: validate config_len on load
        virtio-net: out-of-bounds buffer write on load
        openpic: avoid buffer overrun on incoming migration
        ssi-sd: fix buffer overrun on invalid state load
        savevm: Ignore minimum_version_id_old if there is no load_state_old
        usb: sanity check setup_index+setup_len in post_load
        vmstate: s/VMSTATE_INT32_LE/VMSTATE_INT32_POSITIVE_LE/
        virtio-scsi: fix buffer overrun on invalid state load
        zaurus: fix buffer overrun on invalid state load
        ...
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      c9541f67
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging · 7f8fea8b
      Peter Maydell authored
      QOM/QTest infrastructure fixes and device conversions
      
      * -device / device_add assertion fix
      * QEMUMachine conversion to MachineClass
      * Device error handling improvements
      * QTest cleanups and test cases for some more PCI devices
      * PortIO memory leak fixes
      
      # gpg: Signature made Mon 05 May 2014 19:59:16 BST 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/qom-devices-for-peter:
        PortioList: Store PortioList in device state
        tests: Add EHCI qtest
        tests: Add ioh3420 qtest
        tests: Add intel-hda qtests
        tests: Add es1370 qtest
        tests: Add ac97 qtest
        qtest: Be paranoid about accept() addrlen argument
        qtest: Add error reporting to socket_accept()
        qtest: Assure that init_socket()'s listen() does not fail
        MAINTAINERS: Document QOM
        arm: Clean up fragile use of error_is_set() in realize() methods
        qom: Clean up fragile use of error_is_set() in set() methods
        hw: Consistently name Error ** objects errp, and not err
        hw: Consistently name Error * objects err, and not errp
        machine: Remove QEMUMachine indirection from MachineClass
        machine: Replace QEMUMachine by MachineClass in accelerator configuration
        vl.c: Replace QEMUMachine with MachineClass in QEMUMachineInitArgs
        machine: Copy QEMUMachine's fields to MachineClass
        machine: Remove obsoleted field from QEMUMachine
        qdev: Fix crash by validating the object type
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7f8fea8b
    • Cornelia Huck's avatar
      s390x/css: Don't save orb in subchannel. · 56bf1a8e
      Cornelia Huck authored
      Current css code saves the operation request block (orb) in the
      subchannel structure for later consumption by the start function
      handler. This might make sense for asynchronous execution of the
      start function (which qemu doesn't support), but not in our case;
      it would even be wrong since orb contains a reference to a local
      variable in the base ssch handler.
      
      Let's just pass the orb through the start function call chain for
      ssch; for rsch, we can pass NULL as the backend function does not
      use any information passed via the orb there.
      Acked-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
      56bf1a8e
    • Thomas Huth's avatar
      s390x/helper: Added format control bit to MMU translation · c4400206
      Thomas Huth authored
      With the EDAT-1 facility, the MMU translation can stop at the
      segment table already, pointing to a 1 MB block. And while we're
      at it, move the page table entry handling to a separate function,
      too, as suggested by Alexander Graf.
      Acked-by: default avatarAlexander Graf <agraf@suse.de>
      Signed-off-by: default avatarThomas Huth <thuth@linux.vnet.ibm.com>
      Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
      c4400206
    • Thomas Huth's avatar
      s390x/helper: Fixed real-to-absolute address translation · 422f32c5
      Thomas Huth authored
      The real-to-absolute address translation in mmu_translate() was
      missing the second part for translating the page at the prefix
      address back to the 0 page. And while we're at it, also moved the
      code into a separate helper function since this might come in
      handy for other parts of the code, too.
      Signed-off-by: default avatarThomas Huth <thuth@linux.vnet.ibm.com>
      Reviewed-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
      Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
      Signed-off-by: default avatarJens Freimann <jfrei@linux.vnet.ibm.com>
      Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
      422f32c5
  2. 06 May, 2014 4 commits
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-6' into staging · 951916d0
      Peter Maydell authored
      ohci live migration.
      mtp bugfixes.
      
      # gpg: Signature made Mon 05 May 2014 12:08:48 BST using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-usb-6:
        usb: mtp: reply INCOMPLETE_TRANSFER on read errors
        usb: mtp: fix possible buffer overflow
        usb: mtp: drop data-out hexdump
        usb: mtp: avoid empty description string
        usb: mtp: fix error path memory leak
        usb: mtp: fix serial (must be exact 32 chars)
        usb: mtp: fix version (is decimal not bcd)
        usb: mtp: fix usb_mtp_add_u64
        usb: mtp: replace debug printfs with trace points
        usb-ohci: Add vmstate descriptor
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      951916d0
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-smbios-2' into staging · 98983704
      Peter Maydell authored
      smbios: make qemu generate smbios tables.
      
      # gpg: Signature made Mon 05 May 2014 12:20:27 BST using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-smbios-2:
        SMBIOS: Build aggregate smbios tables and entry point
        SMBIOS: Use bitmaps to prevent incompatible comand line options
        SMBIOS: Use macro to set smbios defaults
        SMBIOS: Update header file definitions
        SMBIOS: Rename symbols to better reflect future use
        E820: Add interface for accessing e820 table
        pc: add 2.1 machine type
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      98983704
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/rth/tgt-axp' into staging · 03e2bfee
      Peter Maydell authored
      * remotes/rth/tgt-axp:
        target-alpha: Fix RDUSP
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      03e2bfee
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/riku/linux-user-for-upstream' into staging · cf972928
      Peter Maydell authored
      * remotes/riku/linux-user-for-upstream:
        linux-user: fix getrusage and wait4 failures with invalid rusage struct
        linux-user/elfload.c: Support ARM HWCAP2 flags
        linux-user/elfload.c: Fix A64 code which was incorrectly acting like A32
        linux-user/elfload.c: Update ARM HWCAP bits
        linux-user/elfload.c: Fix incorrect ARM HWCAP bits
        linux-user: remove configure option for setting uname release
        linux-user: move uname functions to uname.c
        linux-user: rename cpu-uname -> uname
        linux-user/signal.c: Set fault address in AArch64 signal info
        linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct
        linux-user: Handle arches with llseek instead of _llseek
        linux-user: Add support for SCM_CREDENTIALS.
        linux-user: Move if-elses to a switch statement.
        linux-user: Assert stack used for auxvec, envp, argv
        linux-user: Add /proc/self/exe open forwarding
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      cf972928
  3. 05 May, 2014 26 commits